No need for getline.h.
[shishi.git] / lib / kerberos5.c
blob610f4e1f1fdb77e5aba102b9bad75cf3a41db88c
2 #include <libtasn1.h>
4 extern const ASN1_ARRAY_TYPE shishi_asn1_tab[]={
5 {"KerberosV5Spec2",536872976,0},
6 {0,1610612748,0},
7 {"iso",1073741825,"1"},
8 {"identified-organization",1073741825,"3"},
9 {"dod",1073741825,"6"},
10 {"internet",1073741825,"1"},
11 {"security",1073741825,"5"},
12 {"kerberosV5",1073741825,"2"},
13 {"modules",1073741825,"4"},
14 {"krb5spec2",1,"2"},
15 {"id-krb5",1879048204,0},
16 {"iso",1073741825,"1"},
17 {"identified-organization",1073741825,"3"},
18 {"dod",1073741825,"6"},
19 {"internet",1073741825,"1"},
20 {"security",1073741825,"5"},
21 {"kerberosV5",1,"2"},
22 {"Int32",1073741827,0},
23 {"UInt32",1611137027,0},
24 {"0",10,"4294967295"},
25 {"Microseconds",1611137027,0},
26 {"0",10,"999999"},
27 {"KerberosString",1073741851,0},
28 {"Realm",1073741826,"KerberosString"},
29 {"PrincipalName",1610612741,0},
30 {"name-type",1610620930,"Int32"},
31 {0,2056,"0"},
32 {"name-string",536879115,0},
33 {0,1073743880,"1"},
34 {0,2,"KerberosString"},
35 {"KerberosTime",1082130449,0},
36 {"HostAddress",1610612741,0},
37 {"addr-type",1610620930,"Int32"},
38 {0,2056,"0"},
39 {"address",536879111,0},
40 {0,2056,"1"},
41 {"HostAddresses",1610612747,0},
42 {0,2,"HostAddress"},
43 {"AuthorizationData",1610612747,0},
44 {0,536870917,0},
45 {"ad-type",1610620930,"Int32"},
46 {0,2056,"0"},
47 {"ad-data",536879111,0},
48 {0,2056,"1"},
49 {"PA-DATA",1610612741,0},
50 {"padata-type",1610620930,"Int32"},
51 {0,2056,"1"},
52 {"padata-value",536879111,0},
53 {0,2056,"2"},
54 {"KerberosFlags",1075838982,0},
55 {"EncryptedData",1610612741,0},
56 {"etype",1610620930,"Int32"},
57 {0,2056,"0"},
58 {"kvno",1610637314,"UInt32"},
59 {0,2056,"1"},
60 {"cipher",536879111,0},
61 {0,2056,"2"},
62 {"EncryptionKey",1610612741,0},
63 {"keytype",1610620930,"Int32"},
64 {0,2056,"0"},
65 {"keyvalue",536879111,0},
66 {0,2056,"1"},
67 {"Checksum",1610612741,0},
68 {"cksumtype",1610620930,"Int32"},
69 {0,2056,"0"},
70 {"checksum",536879111,0},
71 {0,2056,"1"},
72 {"Ticket",1610620933,0},
73 {0,1073744904,"1"},
74 {"tkt-vno",1610620931,0},
75 {0,2056,"0"},
76 {"realm",1610620930,"Realm"},
77 {0,2056,"1"},
78 {"sname",1610620930,"PrincipalName"},
79 {0,2056,"2"},
80 {"enc-part",536879106,"EncryptedData"},
81 {0,2056,"3"},
82 {"EncTicketPart",1610620933,0},
83 {0,1073744904,"3"},
84 {"flags",1610620930,"TicketFlags"},
85 {0,2056,"0"},
86 {"key",1610620930,"EncryptionKey"},
87 {0,2056,"1"},
88 {"crealm",1610620930,"Realm"},
89 {0,2056,"2"},
90 {"cname",1610620930,"PrincipalName"},
91 {0,2056,"3"},
92 {"transited",1610620930,"TransitedEncoding"},
93 {0,2056,"4"},
94 {"authtime",1610620930,"KerberosTime"},
95 {0,2056,"5"},
96 {"starttime",1610637314,"KerberosTime"},
97 {0,2056,"6"},
98 {"endtime",1610620930,"KerberosTime"},
99 {0,2056,"7"},
100 {"renew-till",1610637314,"KerberosTime"},
101 {0,2056,"8"},
102 {"caddr",1610637314,"HostAddresses"},
103 {0,2056,"9"},
104 {"authorization-data",536895490,"AuthorizationData"},
105 {0,2056,"10"},
106 {"TransitedEncoding",1610612741,0},
107 {"tr-type",1610620930,"Int32"},
108 {0,2056,"0"},
109 {"contents",536879111,0},
110 {0,2056,"1"},
111 {"TicketFlags",1073741826,"KerberosFlags"},
112 {"AS-REQ",1610620930,"KDC-REQ"},
113 {0,3080,"10"},
114 {"TGS-REQ",1610620930,"KDC-REQ"},
115 {0,3080,"12"},
116 {"KDC-REQ",1610612741,0},
117 {"pvno",1610620931,0},
118 {0,2056,"1"},
119 {"msg-type",1610620931,0},
120 {0,2056,"2"},
121 {"padata",1610637323,0},
122 {0,1073743880,"3"},
123 {0,2,"PA-DATA"},
124 {"req-body",536879106,"KDC-REQ-BODY"},
125 {0,2056,"4"},
126 {"KDC-REQ-BODY",1610612741,0},
127 {"kdc-options",1610620930,"KDCOptions"},
128 {0,2056,"0"},
129 {"cname",1610637314,"PrincipalName"},
130 {0,2056,"1"},
131 {"realm",1610620930,"Realm"},
132 {0,2056,"2"},
133 {"sname",1610637314,"PrincipalName"},
134 {0,2056,"3"},
135 {"from",1610637314,"KerberosTime"},
136 {0,2056,"4"},
137 {"till",1610620930,"KerberosTime"},
138 {0,2056,"5"},
139 {"rtime",1610637314,"KerberosTime"},
140 {0,2056,"6"},
141 {"nonce",1610620930,"UInt32"},
142 {0,2056,"7"},
143 {"etype",1610620939,0},
144 {0,1073743880,"8"},
145 {0,2,"Int32"},
146 {"addresses",1610637314,"HostAddresses"},
147 {0,2056,"9"},
148 {"enc-authorization-data",1610637314,"EncryptedData"},
149 {0,2056,"10"},
150 {"additional-tickets",536895499,0},
151 {0,1073743880,"11"},
152 {0,2,"Ticket"},
153 {"KDCOptions",1073741826,"KerberosFlags"},
154 {"AS-REP",1610620930,"KDC-REP"},
155 {0,3080,"11"},
156 {"TGS-REP",1610620930,"KDC-REP"},
157 {0,3080,"13"},
158 {"KDC-REP",1610612741,0},
159 {"pvno",1610620931,0},
160 {0,2056,"0"},
161 {"msg-type",1610620931,0},
162 {0,2056,"1"},
163 {"padata",1610637323,0},
164 {0,1073743880,"2"},
165 {0,2,"PA-DATA"},
166 {"crealm",1610620930,"Realm"},
167 {0,2056,"3"},
168 {"cname",1610620930,"PrincipalName"},
169 {0,2056,"4"},
170 {"ticket",1610620930,"Ticket"},
171 {0,2056,"5"},
172 {"enc-part",536879106,"EncryptedData"},
173 {0,2056,"6"},
174 {"EncASRepPart",1610620930,"EncKDCRepPart"},
175 {0,3080,"25"},
176 {"EncTGSRepPart",1610620930,"EncKDCRepPart"},
177 {0,3080,"26"},
178 {"EncKDCRepPart",1610612741,0},
179 {"key",1610620930,"EncryptionKey"},
180 {0,2056,"0"},
181 {"last-req",1610620930,"LastReq"},
182 {0,2056,"1"},
183 {"nonce",1610620930,"UInt32"},
184 {0,2056,"2"},
185 {"key-expiration",1610637314,"KerberosTime"},
186 {0,2056,"3"},
187 {"flags",1610620930,"TicketFlags"},
188 {0,2056,"4"},
189 {"authtime",1610620930,"KerberosTime"},
190 {0,2056,"5"},
191 {"starttime",1610637314,"KerberosTime"},
192 {0,2056,"6"},
193 {"endtime",1610620930,"KerberosTime"},
194 {0,2056,"7"},
195 {"renew-till",1610637314,"KerberosTime"},
196 {0,2056,"8"},
197 {"srealm",1610620930,"Realm"},
198 {0,2056,"9"},
199 {"sname",1610620930,"PrincipalName"},
200 {0,2056,"10"},
201 {"caddr",536895490,"HostAddresses"},
202 {0,2056,"11"},
203 {"LastReq",1610612747,0},
204 {0,536870917,0},
205 {"lr-type",1610620930,"Int32"},
206 {0,2056,"0"},
207 {"lr-value",536879106,"KerberosTime"},
208 {0,2056,"1"},
209 {"AP-REQ",1610620933,0},
210 {0,1073744904,"14"},
211 {"pvno",1610620931,0},
212 {0,2056,"0"},
213 {"msg-type",1610620931,0},
214 {0,2056,"1"},
215 {"ap-options",1610620930,"APOptions"},
216 {0,2056,"2"},
217 {"ticket",1610620930,"Ticket"},
218 {0,2056,"3"},
219 {"authenticator",536879106,"EncryptedData"},
220 {0,2056,"4"},
221 {"APOptions",1073741826,"KerberosFlags"},
222 {"Authenticator",1610620933,0},
223 {0,1073744904,"2"},
224 {"authenticator-vno",1610620931,0},
225 {0,2056,"0"},
226 {"crealm",1610620930,"Realm"},
227 {0,2056,"1"},
228 {"cname",1610620930,"PrincipalName"},
229 {0,2056,"2"},
230 {"cksum",1610637314,"Checksum"},
231 {0,2056,"3"},
232 {"cusec",1610620930,"Microseconds"},
233 {0,2056,"4"},
234 {"ctime",1610620930,"KerberosTime"},
235 {0,2056,"5"},
236 {"subkey",1610637314,"EncryptionKey"},
237 {0,2056,"6"},
238 {"seq-number",1610637314,"UInt32"},
239 {0,2056,"7"},
240 {"authorization-data",536895490,"AuthorizationData"},
241 {0,2056,"8"},
242 {"AP-REP",1610620933,0},
243 {0,1073744904,"15"},
244 {"pvno",1610620931,0},
245 {0,2056,"0"},
246 {"msg-type",1610620931,0},
247 {0,2056,"1"},
248 {"enc-part",536879106,"EncryptedData"},
249 {0,2056,"2"},
250 {"EncAPRepPart",1610620933,0},
251 {0,1073744904,"27"},
252 {"ctime",1610620930,"KerberosTime"},
253 {0,2056,"0"},
254 {"cusec",1610620930,"Microseconds"},
255 {0,2056,"1"},
256 {"subkey",1610637314,"EncryptionKey"},
257 {0,2056,"2"},
258 {"seq-number",536895490,"UInt32"},
259 {0,2056,"3"},
260 {"KRB-SAFE",1610620933,0},
261 {0,1073744904,"20"},
262 {"pvno",1610620931,0},
263 {0,2056,"0"},
264 {"msg-type",1610620931,0},
265 {0,2056,"1"},
266 {"safe-body",1610620930,"KRB-SAFE-BODY"},
267 {0,2056,"2"},
268 {"cksum",536879106,"Checksum"},
269 {0,2056,"3"},
270 {"KRB-SAFE-BODY",1610612741,0},
271 {"user-data",1610620935,0},
272 {0,2056,"0"},
273 {"timestamp",1610637314,"KerberosTime"},
274 {0,2056,"1"},
275 {"usec",1610637314,"Microseconds"},
276 {0,2056,"2"},
277 {"seq-number",1610637314,"UInt32"},
278 {0,2056,"3"},
279 {"s-address",1610620930,"HostAddress"},
280 {0,2056,"4"},
281 {"r-address",536895490,"HostAddress"},
282 {0,2056,"5"},
283 {"KRB-PRIV",1610620933,0},
284 {0,1073744904,"21"},
285 {"pvno",1610620931,0},
286 {0,2056,"0"},
287 {"msg-type",1610620931,0},
288 {0,2056,"1"},
289 {"enc-part",536879106,"EncryptedData"},
290 {0,2056,"3"},
291 {"EncKrbPrivPart",1610620933,0},
292 {0,1073744904,"28"},
293 {"user-data",1610620935,0},
294 {0,2056,"0"},
295 {"timestamp",1610637314,"KerberosTime"},
296 {0,2056,"1"},
297 {"usec",1610637314,"Microseconds"},
298 {0,2056,"2"},
299 {"seq-number",1610637314,"UInt32"},
300 {0,2056,"3"},
301 {"s-address",1610620930,"HostAddress"},
302 {0,2056,"4"},
303 {"r-address",536895490,"HostAddress"},
304 {0,2056,"5"},
305 {"KRB-CRED",1610620933,0},
306 {0,1073744904,"22"},
307 {"pvno",1610620931,0},
308 {0,2056,"0"},
309 {"msg-type",1610620931,0},
310 {0,2056,"1"},
311 {"tickets",1610620939,0},
312 {0,1073743880,"2"},
313 {0,2,"Ticket"},
314 {"enc-part",536879106,"EncryptedData"},
315 {0,2056,"3"},
316 {"EncKrbCredPart",1610620933,0},
317 {0,1073744904,"29"},
318 {"ticket-info",1610620939,0},
319 {0,1073743880,"0"},
320 {0,2,"KrbCredInfo"},
321 {"nonce",1610637314,"UInt32"},
322 {0,2056,"1"},
323 {"timestamp",1610637314,"KerberosTime"},
324 {0,2056,"2"},
325 {"usec",1610637314,"Microseconds"},
326 {0,2056,"3"},
327 {"s-address",1610637314,"HostAddress"},
328 {0,2056,"4"},
329 {"r-address",536895490,"HostAddress"},
330 {0,2056,"5"},
331 {"KrbCredInfo",1610612741,0},
332 {"key",1610620930,"EncryptionKey"},
333 {0,2056,"0"},
334 {"prealm",1610637314,"Realm"},
335 {0,2056,"1"},
336 {"pname",1610637314,"PrincipalName"},
337 {0,2056,"2"},
338 {"flags",1610637314,"TicketFlags"},
339 {0,2056,"3"},
340 {"authtime",1610637314,"KerberosTime"},
341 {0,2056,"4"},
342 {"starttime",1610637314,"KerberosTime"},
343 {0,2056,"5"},
344 {"endtime",1610637314,"KerberosTime"},
345 {0,2056,"6"},
346 {"renew-till",1610637314,"KerberosTime"},
347 {0,2056,"7"},
348 {"srealm",1610637314,"Realm"},
349 {0,2056,"8"},
350 {"sname",1610637314,"PrincipalName"},
351 {0,2056,"9"},
352 {"caddr",536895490,"HostAddresses"},
353 {0,2056,"10"},
354 {"KRB-ERROR",1610620933,0},
355 {0,1073744904,"30"},
356 {"pvno",1610620931,0},
357 {0,2056,"0"},
358 {"msg-type",1610620931,0},
359 {0,2056,"1"},
360 {"ctime",1610637314,"KerberosTime"},
361 {0,2056,"2"},
362 {"cusec",1610637314,"Microseconds"},
363 {0,2056,"3"},
364 {"stime",1610620930,"KerberosTime"},
365 {0,2056,"4"},
366 {"susec",1610620930,"Microseconds"},
367 {0,2056,"5"},
368 {"error-code",1610620930,"Int32"},
369 {0,2056,"6"},
370 {"crealm",1610637314,"Realm"},
371 {0,2056,"7"},
372 {"cname",1610637314,"PrincipalName"},
373 {0,2056,"8"},
374 {"realm",1610620930,"Realm"},
375 {0,2056,"9"},
376 {"sname",1610620930,"PrincipalName"},
377 {0,2056,"10"},
378 {"e-text",1610637314,"KerberosString"},
379 {0,2056,"11"},
380 {"e-data",536895495,0},
381 {0,2056,"12"},
382 {"METHOD-DATA",1610612747,0},
383 {0,2,"PA-DATA"},
384 {"TYPED-DATA",1612709899,0},
385 {"MAX",1074266122,"1"},
386 {0,536870917,0},
387 {"data-type",1610620930,"Int32"},
388 {0,2056,"0"},
389 {"data-value",536895495,0},
390 {0,2056,"1"},
391 {"PA-ENC-TIMESTAMP",1073741826,"EncryptedData"},
392 {"PA-ENC-TS-ENC",1610612741,0},
393 {"patimestamp",1610620930,"KerberosTime"},
394 {0,2056,"0"},
395 {"pausec",536895490,"Microseconds"},
396 {0,2056,"1"},
397 {"ETYPE-INFO-ENTRY",1610612741,0},
398 {"etype",1610620930,"Int32"},
399 {0,2056,"0"},
400 {"salt",536895495,0},
401 {0,2056,"1"},
402 {"ETYPE-INFO",1610612747,0},
403 {0,2,"ETYPE-INFO-ENTRY"},
404 {"ETYPE-INFO2-ENTRY",1610612741,0},
405 {"etype",1610620930,"Int32"},
406 {0,2056,"0"},
407 {"salt",1610637314,"KerberosString"},
408 {0,2056,"1"},
409 {"s2kparams",536895495,0},
410 {0,2056,"2"},
411 {"ETYPE-INFO2",1612709899,0},
412 {"MAX",1074266122,"1"},
413 {0,2,"ETYPE-INFO2-ENTRY"},
414 {"AD-IF-RELEVANT",1073741826,"AuthorizationData"},
415 {"AD-KDCIssued",1610612741,0},
416 {"ad-checksum",1610620930,"Checksum"},
417 {0,2056,"0"},
418 {"i-realm",1610637314,"Realm"},
419 {0,2056,"1"},
420 {"i-sname",1610637314,"PrincipalName"},
421 {0,2056,"2"},
422 {"elements",536879106,"AuthorizationData"},
423 {0,2056,"3"},
424 {"AD-AND-OR",1610612741,0},
425 {"condition-count",1610620930,"Int32"},
426 {0,2056,"0"},
427 {"elements",536879106,"AuthorizationData"},
428 {0,2056,"1"},
429 {"AD-MANDATORY-FOR-KDC",2,"AuthorizationData"},
430 {0,0,0}