1 #include "gssapi_locl.h"
6 * The implementation must reserve static storage for a
7 * gss_OID_desc object containing the value
8 * {10, (void *)"\x2a\x86\x48\x86\xf7\x12"
10 * corresponding to an object-identifier value of
11 * {iso(1) member-body(2) United States(840) mit(113554)
12 * infosys(1) gssapi(2) generic(1) user_name(1)}. The constant
13 * GSS_C_NT_USER_NAME should be initialized to point
14 * to that gss_OID_desc.
17 static gss_OID_desc gss_c_nt_user_name_oid_desc =
18 {10, (void *)"\x2a\x86\x48\x86\xf7\x12"
21 gss_OID GSS_C_NT_USER_NAME = &gss_c_nt_user_name_oid_desc;
24 * The implementation must reserve static storage for a
25 * gss_OID_desc object containing the value
26 * {10, (void *)"\x2a\x86\x48\x86\xf7\x12"
27 * "\x01\x02\x01\x02"},
28 * corresponding to an object-identifier value of
29 * {iso(1) member-body(2) United States(840) mit(113554)
30 * infosys(1) gssapi(2) generic(1) machine_uid_name(2)}.
31 * The constant GSS_C_NT_MACHINE_UID_NAME should be
32 * initialized to point to that gss_OID_desc.
35 static gss_OID_desc gss_c_nt_machine_uid_name_oid_desc =
36 {10, (void *)"\x2a\x86\x48\x86\xf7\x12"
39 gss_OID GSS_C_NT_MACHINE_UID_NAME = &gss_c_nt_machine_uid_name_oid_desc;
42 * The implementation must reserve static storage for a
43 * gss_OID_desc object containing the value
44 * {10, (void *)"\x2a\x86\x48\x86\xf7\x12"
45 * "\x01\x02\x01\x03"},
46 * corresponding to an object-identifier value of
47 * {iso(1) member-body(2) United States(840) mit(113554)
48 * infosys(1) gssapi(2) generic(1) string_uid_name(3)}.
49 * The constant GSS_C_NT_STRING_UID_NAME should be
50 * initialized to point to that gss_OID_desc.
53 static gss_OID_desc gss_c_nt_string_uid_name_oid_desc =
54 {10, (void *)"\x2a\x86\x48\x86\xf7\x12"
57 gss_OID GSS_C_NT_STRING_UID_NAME = &gss_c_nt_string_uid_name_oid_desc;
60 * The implementation must reserve static storage for a
61 * gss_OID_desc object containing the value
62 * {6, (void *)"\x2b\x06\x01\x05\x06\x02"},
63 * corresponding to an object-identifier value of
64 * {1(iso), 3(org), 6(dod), 1(internet), 5(security),
65 * 6(nametypes), 2(gss-host-based-services)}. The constant
66 * GSS_C_NT_HOSTBASED_SERVICE should be initialized to point
67 * to that gss_OID_desc.
70 static gss_OID_desc gss_c_nt_hostbased_service_oid_desc =
71 {6, (void *)"\x2b\x06\x01\x05\x06\x02"};
73 gss_OID GSS_C_NT_HOSTBASED_SERVICE = &gss_c_nt_hostbased_service_oid_desc;
76 * The implementation must reserve static storage for a
77 * gss_OID_desc object containing the value
78 * {6, (void *)"\x2b\x06\01\x05\x06\x03"},
79 * corresponding to an object identifier value of
80 * {1(iso), 3(org), 6(dod), 1(internet), 5(security),
81 * 6(nametypes), 3(gss-anonymous-name)}. The constant
82 * and GSS_C_NT_ANONYMOUS should be initialized to point
83 * to that gss_OID_desc.
86 static gss_OID_desc gss_c_nt_anonymous_oid_desc =
87 {6, (void *)"\x2b\x06\01\x05\x06\x03"};
89 gss_OID GSS_C_NT_ANONYMOUS = &gss_c_nt_anonymous_oid_desc;
92 * The implementation must reserve static storage for a
93 * gss_OID_desc object containing the value
94 * {6, (void *)"\x2b\x06\x01\x05\x06\x04"},
95 * corresponding to an object-identifier value of
96 * {1(iso), 3(org), 6(dod), 1(internet), 5(security),
97 * 6(nametypes), 4(gss-api-exported-name)}. The constant
98 * GSS_C_NT_EXPORT_NAME should be initialized to point
99 * to that gss_OID_desc.
102 static gss_OID_desc gss_c_nt_export_name_oid_desc =
103 {6, (void *)"\x2b\x06\x01\x05\x06\x04"};
105 gss_OID GSS_C_NT_EXPORT_NAME = &gss_c_nt_export_name_oid_desc;
108 * This name form shall be represented by the Object Identifier {iso(1)
109 * member-body(2) United States(840) mit(113554) infosys(1) gssapi(2)
110 * krb5(2) krb5_name(1)}. The recommended symbolic name for this type
111 * is "GSS_KRB5_NT_PRINCIPAL_NAME".
114 static gss_OID_desc gss_krb5_nt_principal_name_oid_desc =
115 {10, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x02\x01"};
117 gss_OID GSS_KRB5_NT_PRINCIPAL_NAME = &gss_krb5_nt_principal_name_oid_desc;
120 * This name form shall be represented by the Object Identifier {iso(1)
121 * member-body(2) United States(840) mit(113554) infosys(1) gssapi(2)
122 * generic(1) user_name(1)}. The recommended symbolic name for this
123 * type is "GSS_KRB5_NT_USER_NAME".
126 gss_OID GSS_KRB5_NT_USER_NAME = &gss_c_nt_user_name_oid_desc;
129 * This name form shall be represented by the Object Identifier {iso(1)
130 * member-body(2) United States(840) mit(113554) infosys(1) gssapi(2)
131 * generic(1) machine_uid_name(2)}. The recommended symbolic name for
132 * this type is "GSS_KRB5_NT_MACHINE_UID_NAME".
135 gss_OID GSS_KRB5_NT_MACHINE_UID_NAME = &gss_c_nt_machine_uid_name_oid_desc;
138 * This name form shall be represented by the Object Identifier {iso(1)
139 * member-body(2) United States(840) mit(113554) infosys(1) gssapi(2)
140 * generic(1) string_uid_name(3)}. The recommended symbolic name for
141 * this type is "GSS_KRB5_NT_STRING_UID_NAME".
144 gss_OID GSS_KRB5_NT_STRING_UID_NAME = &gss_c_nt_string_uid_name_oid_desc;
147 * To support ongoing experimentation, testing, and evolution of the
148 * specification, the Kerberos V5 GSS-API mechanism as defined in this
149 * and any successor memos will be identified with the following Object
150 * Identifier, as defined in RFC-1510, until the specification is
151 * advanced to the level of Proposed Standard RFC:
153 * {iso(1), org(3), dod(5), internet(1), security(5), kerberosv5(2)}
155 * Upon advancement to the level of Proposed Standard RFC, the Kerberos
156 * V5 GSS-API mechanism will be identified by an Object Identifier
159 * {iso(1) member-body(2) United States(840) mit(113554) infosys(1)
163 #if 0 /* This is the old OID */
165 static gss_OID_desc gss_krb5_mechanism_oid_desc =
166 {5, (void *)"\x2b\x05\x01\x05\x02"};
170 static gss_OID_desc gss_krb5_mechanism_oid_desc =
171 {9, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x02"};
173 gss_OID GSS_KRB5_MECHANISM = &gss_krb5_mechanism_oid_desc;
176 * Context for krb5 calls.
179 krb5_context gssapi_krb5_context;