Use new OID
[metze/heimdal/wip.git] / lib / gssapi / krb5 / external.c
1 #include "gssapi_locl.h"
2
3 RCSID("$Id$");
4
5 /*
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"
9  *              "\x01\x02\x01\x01"},
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.
15  */
16
17 static gss_OID_desc gss_c_nt_user_name_oid_desc =
18 {10, (void *)"\x2a\x86\x48\x86\xf7\x12"
19  "\x01\x02\x01\x01"};
20
21 gss_OID GSS_C_NT_USER_NAME = &gss_c_nt_user_name_oid_desc;
22
23 /*
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.
33  */
34
35 static gss_OID_desc gss_c_nt_machine_uid_name_oid_desc =
36 {10, (void *)"\x2a\x86\x48\x86\xf7\x12"
37  "\x01\x02\x01\x02"};
38
39 gss_OID GSS_C_NT_MACHINE_UID_NAME = &gss_c_nt_machine_uid_name_oid_desc;
40
41 /*
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.
51  */
52
53 static gss_OID_desc gss_c_nt_string_uid_name_oid_desc =
54 {10, (void *)"\x2a\x86\x48\x86\xf7\x12"
55  "\x01\x02\x01\x03"};
56
57 gss_OID GSS_C_NT_STRING_UID_NAME = &gss_c_nt_string_uid_name_oid_desc;
58
59 /*
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.
68  */
69
70 static gss_OID_desc gss_c_nt_hostbased_service_oid_desc =
71 {6, (void *)"\x2b\x06\x01\x05\x06\x02"};
72
73 gss_OID GSS_C_NT_HOSTBASED_SERVICE = &gss_c_nt_hostbased_service_oid_desc;
74
75 /*
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.
84  */
85
86 static gss_OID_desc gss_c_nt_anonymous_oid_desc =
87 {6, (void *)"\x2b\x06\01\x05\x06\x03"};
88
89 gss_OID GSS_C_NT_ANONYMOUS = &gss_c_nt_anonymous_oid_desc;
90
91 /*
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.
100  */
101
102 static gss_OID_desc gss_c_nt_export_name_oid_desc =
103 {6, (void *)"\x2b\x06\x01\x05\x06\x04"};
104
105 gss_OID GSS_C_NT_EXPORT_NAME = &gss_c_nt_export_name_oid_desc;
106
107 /*
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".
112  */
113
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"};
116
117 gss_OID GSS_KRB5_NT_PRINCIPAL_NAME = &gss_krb5_nt_principal_name_oid_desc;
118
119 /*
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".
124  */
125
126 gss_OID GSS_KRB5_NT_USER_NAME = &gss_c_nt_user_name_oid_desc;
127
128 /*
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".
133  */
134
135 gss_OID GSS_KRB5_NT_MACHINE_UID_NAME = &gss_c_nt_machine_uid_name_oid_desc;
136
137 /*
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".
142  */
143
144 gss_OID GSS_KRB5_NT_STRING_UID_NAME = &gss_c_nt_string_uid_name_oid_desc;
145
146 /*
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:
152  *
153  *   {iso(1), org(3), dod(5), internet(1), security(5), kerberosv5(2)}
154  *
155  *   Upon advancement to the level of Proposed Standard RFC, the Kerberos
156  *   V5 GSS-API mechanism will be identified by an Object Identifier
157  *   having the value:
158  *
159  *   {iso(1) member-body(2) United States(840) mit(113554) infosys(1)
160  *   gssapi(2) krb5(2)}
161  */
162
163 #if 0 /* This is the old OID */
164
165 static gss_OID_desc gss_krb5_mechanism_oid_desc =
166 {5, (void *)"\x2b\x05\x01\x05\x02"};
167
168 #endif
169
170 static gss_OID_desc gss_krb5_mechanism_oid_desc =
171 {9, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x02"};
172
173 gss_OID GSS_KRB5_MECHANISM = &gss_krb5_mechanism_oid_desc;
174
175 /*
176  * Context for krb5 calls.
177  */
178
179 krb5_context gssapi_krb5_context;