diff options
author | cvs2svn <admin@example.com> | 2015-03-08 16:48:49 +0000 |
---|---|---|
committer | cvs2svn <admin@example.com> | 2015-03-08 16:48:49 +0000 |
commit | decf84ba5550c1656a7fdb51b5b81969590c3f03 (patch) | |
tree | 44872802e872bdfd60730fa9cf01d9d5751251c1 /src/lib/libcrypto/krb5/krb5_asn.c | |
parent | 7a8f138352aa4eb7b65ac4b1a5fe7630fbee1427 (diff) | |
download | openbsd-libressl-v2.1.5.tar.gz openbsd-libressl-v2.1.5.tar.bz2 openbsd-libressl-v2.1.5.zip |
This commit was manufactured by cvs2git to create branch 'OPENBSD_5_7'.libressl-v2.1.5
Diffstat (limited to 'src/lib/libcrypto/krb5/krb5_asn.c')
-rw-r--r-- | src/lib/libcrypto/krb5/krb5_asn.c | 431 |
1 files changed, 0 insertions, 431 deletions
diff --git a/src/lib/libcrypto/krb5/krb5_asn.c b/src/lib/libcrypto/krb5/krb5_asn.c deleted file mode 100644 index 1a95e62935..0000000000 --- a/src/lib/libcrypto/krb5/krb5_asn.c +++ /dev/null | |||
@@ -1,431 +0,0 @@ | |||
1 | /* $OpenBSD: krb5_asn.c,v 1.3 2015/02/09 16:04:46 jsing Exp $ */ | ||
2 | /* Written by Vern Staats <staatsvr@asc.hpc.mil> for the OpenSSL project, | ||
3 | ** using ocsp/{*.h,*asn*.c} as a starting point | ||
4 | */ | ||
5 | /* ==================================================================== | ||
6 | * Copyright (c) 2000 The OpenSSL Project. All rights reserved. | ||
7 | * | ||
8 | * Redistribution and use in source and binary forms, with or without | ||
9 | * modification, are permitted provided that the following conditions | ||
10 | * are met: | ||
11 | * | ||
12 | * 1. Redistributions of source code must retain the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer. | ||
14 | * | ||
15 | * 2. Redistributions in binary form must reproduce the above copyright | ||
16 | * notice, this list of conditions and the following disclaimer in | ||
17 | * the documentation and/or other materials provided with the | ||
18 | * distribution. | ||
19 | * | ||
20 | * 3. All advertising materials mentioning features or use of this | ||
21 | * software must display the following acknowledgment: | ||
22 | * "This product includes software developed by the OpenSSL Project | ||
23 | * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" | ||
24 | * | ||
25 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
26 | * endorse or promote products derived from this software without | ||
27 | * prior written permission. For written permission, please contact | ||
28 | * licensing@OpenSSL.org. | ||
29 | * | ||
30 | * 5. Products derived from this software may not be called "OpenSSL" | ||
31 | * nor may "OpenSSL" appear in their names without prior written | ||
32 | * permission of the OpenSSL Project. | ||
33 | * | ||
34 | * 6. Redistributions of any form whatsoever must retain the following | ||
35 | * acknowledgment: | ||
36 | * "This product includes software developed by the OpenSSL Project | ||
37 | * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" | ||
38 | * | ||
39 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
40 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
41 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
42 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
43 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
44 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
45 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
46 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
47 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
48 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
49 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
50 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
51 | * ==================================================================== | ||
52 | * | ||
53 | * This product includes cryptographic software written by Eric Young | ||
54 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
55 | * Hudson (tjh@cryptsoft.com). | ||
56 | * | ||
57 | */ | ||
58 | #include <openssl/asn1.h> | ||
59 | #include <openssl/asn1t.h> | ||
60 | #include <openssl/krb5_asn.h> | ||
61 | |||
62 | |||
63 | ASN1_SEQUENCE(KRB5_ENCDATA) = { | ||
64 | ASN1_EXP(KRB5_ENCDATA, etype, ASN1_INTEGER, 0), | ||
65 | ASN1_EXP_OPT(KRB5_ENCDATA, kvno, ASN1_INTEGER, 1), | ||
66 | ASN1_EXP(KRB5_ENCDATA, cipher, ASN1_OCTET_STRING,2) | ||
67 | } ASN1_SEQUENCE_END(KRB5_ENCDATA) | ||
68 | |||
69 | |||
70 | KRB5_ENCDATA * | ||
71 | d2i_KRB5_ENCDATA(KRB5_ENCDATA **a, const unsigned char **in, long len) | ||
72 | { | ||
73 | return (KRB5_ENCDATA *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, | ||
74 | &KRB5_ENCDATA_it); | ||
75 | } | ||
76 | |||
77 | int | ||
78 | i2d_KRB5_ENCDATA(KRB5_ENCDATA *a, unsigned char **out) | ||
79 | { | ||
80 | return ASN1_item_i2d((ASN1_VALUE *)a, out, &KRB5_ENCDATA_it); | ||
81 | } | ||
82 | |||
83 | KRB5_ENCDATA * | ||
84 | KRB5_ENCDATA_new(void) | ||
85 | { | ||
86 | return (KRB5_ENCDATA *)ASN1_item_new(&KRB5_ENCDATA_it); | ||
87 | } | ||
88 | |||
89 | void | ||
90 | KRB5_ENCDATA_free(KRB5_ENCDATA *a) | ||
91 | { | ||
92 | ASN1_item_free((ASN1_VALUE *)a, &KRB5_ENCDATA_it); | ||
93 | } | ||
94 | |||
95 | |||
96 | ASN1_SEQUENCE(KRB5_PRINCNAME) = { | ||
97 | ASN1_EXP(KRB5_PRINCNAME, nametype, ASN1_INTEGER, 0), | ||
98 | ASN1_EXP_SEQUENCE_OF(KRB5_PRINCNAME, namestring, ASN1_GENERALSTRING, 1) | ||
99 | } ASN1_SEQUENCE_END(KRB5_PRINCNAME) | ||
100 | |||
101 | |||
102 | KRB5_PRINCNAME * | ||
103 | d2i_KRB5_PRINCNAME(KRB5_PRINCNAME **a, const unsigned char **in, long len) | ||
104 | { | ||
105 | return (KRB5_PRINCNAME *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, | ||
106 | &KRB5_PRINCNAME_it); | ||
107 | } | ||
108 | |||
109 | int | ||
110 | i2d_KRB5_PRINCNAME(KRB5_PRINCNAME *a, unsigned char **out) | ||
111 | { | ||
112 | return ASN1_item_i2d((ASN1_VALUE *)a, out, &KRB5_PRINCNAME_it); | ||
113 | } | ||
114 | |||
115 | KRB5_PRINCNAME * | ||
116 | KRB5_PRINCNAME_new(void) | ||
117 | { | ||
118 | return (KRB5_PRINCNAME *)ASN1_item_new(&KRB5_PRINCNAME_it); | ||
119 | } | ||
120 | |||
121 | void | ||
122 | KRB5_PRINCNAME_free(KRB5_PRINCNAME *a) | ||
123 | { | ||
124 | ASN1_item_free((ASN1_VALUE *)a, &KRB5_PRINCNAME_it); | ||
125 | } | ||
126 | |||
127 | |||
128 | /* [APPLICATION 1] = 0x61 */ | ||
129 | ASN1_SEQUENCE(KRB5_TKTBODY) = { | ||
130 | ASN1_EXP(KRB5_TKTBODY, tktvno, ASN1_INTEGER, 0), | ||
131 | ASN1_EXP(KRB5_TKTBODY, realm, ASN1_GENERALSTRING, 1), | ||
132 | ASN1_EXP(KRB5_TKTBODY, sname, KRB5_PRINCNAME, 2), | ||
133 | ASN1_EXP(KRB5_TKTBODY, encdata, KRB5_ENCDATA, 3) | ||
134 | } ASN1_SEQUENCE_END(KRB5_TKTBODY) | ||
135 | |||
136 | |||
137 | KRB5_TKTBODY * | ||
138 | d2i_KRB5_TKTBODY(KRB5_TKTBODY **a, const unsigned char **in, long len) | ||
139 | { | ||
140 | return (KRB5_TKTBODY *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, | ||
141 | &KRB5_TKTBODY_it); | ||
142 | } | ||
143 | |||
144 | int | ||
145 | i2d_KRB5_TKTBODY(KRB5_TKTBODY *a, unsigned char **out) | ||
146 | { | ||
147 | return ASN1_item_i2d((ASN1_VALUE *)a, out, &KRB5_TKTBODY_it); | ||
148 | } | ||
149 | |||
150 | KRB5_TKTBODY * | ||
151 | KRB5_TKTBODY_new(void) | ||
152 | { | ||
153 | return (KRB5_TKTBODY *)ASN1_item_new(&KRB5_TKTBODY_it); | ||
154 | } | ||
155 | |||
156 | void | ||
157 | KRB5_TKTBODY_free(KRB5_TKTBODY *a) | ||
158 | { | ||
159 | ASN1_item_free((ASN1_VALUE *)a, &KRB5_TKTBODY_it); | ||
160 | } | ||
161 | |||
162 | |||
163 | ASN1_ITEM_TEMPLATE(KRB5_TICKET) = | ||
164 | ASN1_EX_TEMPLATE_TYPE(ASN1_TFLG_EXPTAG|ASN1_TFLG_APPLICATION, 1, | ||
165 | KRB5_TICKET, KRB5_TKTBODY) | ||
166 | ASN1_ITEM_TEMPLATE_END(KRB5_TICKET) | ||
167 | |||
168 | |||
169 | KRB5_TICKET * | ||
170 | d2i_KRB5_TICKET(KRB5_TICKET **a, const unsigned char **in, long len) | ||
171 | { | ||
172 | return (KRB5_TICKET *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, | ||
173 | &KRB5_TICKET_it); | ||
174 | } | ||
175 | |||
176 | int | ||
177 | i2d_KRB5_TICKET(KRB5_TICKET *a, unsigned char **out) | ||
178 | { | ||
179 | return ASN1_item_i2d((ASN1_VALUE *)a, out, &KRB5_TICKET_it); | ||
180 | } | ||
181 | |||
182 | KRB5_TICKET * | ||
183 | KRB5_TICKET_new(void) | ||
184 | { | ||
185 | return (KRB5_TICKET *)ASN1_item_new(&KRB5_TICKET_it); | ||
186 | } | ||
187 | |||
188 | void | ||
189 | KRB5_TICKET_free(KRB5_TICKET *a) | ||
190 | { | ||
191 | ASN1_item_free((ASN1_VALUE *)a, &KRB5_TICKET_it); | ||
192 | } | ||
193 | |||
194 | |||
195 | /* [APPLICATION 14] = 0x6e */ | ||
196 | ASN1_SEQUENCE(KRB5_APREQBODY) = { | ||
197 | ASN1_EXP(KRB5_APREQBODY, pvno, ASN1_INTEGER, 0), | ||
198 | ASN1_EXP(KRB5_APREQBODY, msgtype, ASN1_INTEGER, 1), | ||
199 | ASN1_EXP(KRB5_APREQBODY, apoptions, ASN1_BIT_STRING, 2), | ||
200 | ASN1_EXP(KRB5_APREQBODY, ticket, KRB5_TICKET, 3), | ||
201 | ASN1_EXP(KRB5_APREQBODY, authenticator, KRB5_ENCDATA, 4), | ||
202 | } ASN1_SEQUENCE_END(KRB5_APREQBODY) | ||
203 | |||
204 | |||
205 | KRB5_APREQBODY * | ||
206 | d2i_KRB5_APREQBODY(KRB5_APREQBODY **a, const unsigned char **in, long len) | ||
207 | { | ||
208 | return (KRB5_APREQBODY *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, | ||
209 | &KRB5_APREQBODY_it); | ||
210 | } | ||
211 | |||
212 | int | ||
213 | i2d_KRB5_APREQBODY(KRB5_APREQBODY *a, unsigned char **out) | ||
214 | { | ||
215 | return ASN1_item_i2d((ASN1_VALUE *)a, out, &KRB5_APREQBODY_it); | ||
216 | } | ||
217 | |||
218 | KRB5_APREQBODY * | ||
219 | KRB5_APREQBODY_new(void) | ||
220 | { | ||
221 | return (KRB5_APREQBODY *)ASN1_item_new(&KRB5_APREQBODY_it); | ||
222 | } | ||
223 | |||
224 | void | ||
225 | KRB5_APREQBODY_free(KRB5_APREQBODY *a) | ||
226 | { | ||
227 | ASN1_item_free((ASN1_VALUE *)a, &KRB5_APREQBODY_it); | ||
228 | } | ||
229 | |||
230 | ASN1_ITEM_TEMPLATE(KRB5_APREQ) = | ||
231 | ASN1_EX_TEMPLATE_TYPE(ASN1_TFLG_EXPTAG|ASN1_TFLG_APPLICATION, 14, | ||
232 | KRB5_APREQ, KRB5_APREQBODY) | ||
233 | ASN1_ITEM_TEMPLATE_END(KRB5_APREQ) | ||
234 | |||
235 | |||
236 | KRB5_APREQ * | ||
237 | d2i_KRB5_APREQ(KRB5_APREQ **a, const unsigned char **in, long len) | ||
238 | { | ||
239 | return (KRB5_APREQ *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, | ||
240 | &KRB5_APREQ_it); | ||
241 | } | ||
242 | |||
243 | int | ||
244 | i2d_KRB5_APREQ(KRB5_APREQ *a, unsigned char **out) | ||
245 | { | ||
246 | return ASN1_item_i2d((ASN1_VALUE *)a, out, &KRB5_APREQ_it); | ||
247 | } | ||
248 | |||
249 | KRB5_APREQ * | ||
250 | KRB5_APREQ_new(void) | ||
251 | { | ||
252 | return (KRB5_APREQ *)ASN1_item_new(&KRB5_APREQ_it); | ||
253 | } | ||
254 | |||
255 | void | ||
256 | KRB5_APREQ_free(KRB5_APREQ *a) | ||
257 | { | ||
258 | ASN1_item_free((ASN1_VALUE *)a, &KRB5_APREQ_it); | ||
259 | } | ||
260 | |||
261 | |||
262 | /* Authenticator stuff */ | ||
263 | |||
264 | ASN1_SEQUENCE(KRB5_CHECKSUM) = { | ||
265 | ASN1_EXP(KRB5_CHECKSUM, ctype, ASN1_INTEGER, 0), | ||
266 | ASN1_EXP(KRB5_CHECKSUM, checksum, ASN1_OCTET_STRING,1) | ||
267 | } ASN1_SEQUENCE_END(KRB5_CHECKSUM) | ||
268 | |||
269 | |||
270 | KRB5_CHECKSUM * | ||
271 | d2i_KRB5_CHECKSUM(KRB5_CHECKSUM **a, const unsigned char **in, long len) | ||
272 | { | ||
273 | return (KRB5_CHECKSUM *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, | ||
274 | &KRB5_CHECKSUM_it); | ||
275 | } | ||
276 | |||
277 | int | ||
278 | i2d_KRB5_CHECKSUM(KRB5_CHECKSUM *a, unsigned char **out) | ||
279 | { | ||
280 | return ASN1_item_i2d((ASN1_VALUE *)a, out, &KRB5_CHECKSUM_it); | ||
281 | } | ||
282 | |||
283 | KRB5_CHECKSUM * | ||
284 | KRB5_CHECKSUM_new(void) | ||
285 | { | ||
286 | return (KRB5_CHECKSUM *)ASN1_item_new(&KRB5_CHECKSUM_it); | ||
287 | } | ||
288 | |||
289 | void | ||
290 | KRB5_CHECKSUM_free(KRB5_CHECKSUM *a) | ||
291 | { | ||
292 | ASN1_item_free((ASN1_VALUE *)a, &KRB5_CHECKSUM_it); | ||
293 | } | ||
294 | |||
295 | |||
296 | ASN1_SEQUENCE(KRB5_ENCKEY) = { | ||
297 | ASN1_EXP(KRB5_ENCKEY, ktype, ASN1_INTEGER, 0), | ||
298 | ASN1_EXP(KRB5_ENCKEY, keyvalue, ASN1_OCTET_STRING,1) | ||
299 | } ASN1_SEQUENCE_END(KRB5_ENCKEY) | ||
300 | |||
301 | |||
302 | KRB5_ENCKEY * | ||
303 | d2i_KRB5_ENCKEY(KRB5_ENCKEY **a, const unsigned char **in, long len) | ||
304 | { | ||
305 | return (KRB5_ENCKEY *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, | ||
306 | &KRB5_ENCKEY_it); | ||
307 | } | ||
308 | |||
309 | int | ||
310 | i2d_KRB5_ENCKEY(KRB5_ENCKEY *a, unsigned char **out) | ||
311 | { | ||
312 | return ASN1_item_i2d((ASN1_VALUE *)a, out, &KRB5_ENCKEY_it); | ||
313 | } | ||
314 | |||
315 | KRB5_ENCKEY * | ||
316 | KRB5_ENCKEY_new(void) | ||
317 | { | ||
318 | return (KRB5_ENCKEY *)ASN1_item_new(&KRB5_ENCKEY_it); | ||
319 | } | ||
320 | |||
321 | void | ||
322 | KRB5_ENCKEY_free(KRB5_ENCKEY *a) | ||
323 | { | ||
324 | ASN1_item_free((ASN1_VALUE *)a, &KRB5_ENCKEY_it); | ||
325 | } | ||
326 | |||
327 | |||
328 | /* SEQ OF SEQ; see ASN1_EXP_SEQUENCE_OF_OPT() below */ | ||
329 | ASN1_SEQUENCE(KRB5_AUTHDATA) = { | ||
330 | ASN1_EXP(KRB5_AUTHDATA, adtype, ASN1_INTEGER, 0), | ||
331 | ASN1_EXP(KRB5_AUTHDATA, addata, ASN1_OCTET_STRING,1) | ||
332 | } ASN1_SEQUENCE_END(KRB5_AUTHDATA) | ||
333 | |||
334 | |||
335 | KRB5_AUTHDATA * | ||
336 | d2i_KRB5_AUTHDATA(KRB5_AUTHDATA **a, const unsigned char **in, long len) | ||
337 | { | ||
338 | return (KRB5_AUTHDATA *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, | ||
339 | &KRB5_AUTHDATA_it); | ||
340 | } | ||
341 | |||
342 | int | ||
343 | i2d_KRB5_AUTHDATA(KRB5_AUTHDATA *a, unsigned char **out) | ||
344 | { | ||
345 | return ASN1_item_i2d((ASN1_VALUE *)a, out, &KRB5_AUTHDATA_it); | ||
346 | } | ||
347 | |||
348 | KRB5_AUTHDATA * | ||
349 | KRB5_AUTHDATA_new(void) | ||
350 | { | ||
351 | return (KRB5_AUTHDATA *)ASN1_item_new(&KRB5_AUTHDATA_it); | ||
352 | } | ||
353 | |||
354 | void | ||
355 | KRB5_AUTHDATA_free(KRB5_AUTHDATA *a) | ||
356 | { | ||
357 | ASN1_item_free((ASN1_VALUE *)a, &KRB5_AUTHDATA_it); | ||
358 | } | ||
359 | |||
360 | |||
361 | /* [APPLICATION 2] = 0x62 */ | ||
362 | ASN1_SEQUENCE(KRB5_AUTHENTBODY) = { | ||
363 | ASN1_EXP(KRB5_AUTHENTBODY, avno, ASN1_INTEGER, 0), | ||
364 | ASN1_EXP(KRB5_AUTHENTBODY, crealm, ASN1_GENERALSTRING, 1), | ||
365 | ASN1_EXP(KRB5_AUTHENTBODY, cname, KRB5_PRINCNAME, 2), | ||
366 | ASN1_EXP_OPT(KRB5_AUTHENTBODY, cksum, KRB5_CHECKSUM, 3), | ||
367 | ASN1_EXP(KRB5_AUTHENTBODY, cusec, ASN1_INTEGER, 4), | ||
368 | ASN1_EXP(KRB5_AUTHENTBODY, ctime, ASN1_GENERALIZEDTIME, 5), | ||
369 | ASN1_EXP_OPT(KRB5_AUTHENTBODY, subkey, KRB5_ENCKEY, 6), | ||
370 | ASN1_EXP_OPT(KRB5_AUTHENTBODY, seqnum, ASN1_INTEGER, 7), | ||
371 | ASN1_EXP_SEQUENCE_OF_OPT | ||
372 | (KRB5_AUTHENTBODY, authorization, KRB5_AUTHDATA, 8), | ||
373 | } ASN1_SEQUENCE_END(KRB5_AUTHENTBODY) | ||
374 | |||
375 | |||
376 | KRB5_AUTHENTBODY * | ||
377 | d2i_KRB5_AUTHENTBODY(KRB5_AUTHENTBODY **a, const unsigned char **in, long len) | ||
378 | { | ||
379 | return (KRB5_AUTHENTBODY *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, | ||
380 | &KRB5_AUTHENTBODY_it); | ||
381 | } | ||
382 | |||
383 | int | ||
384 | i2d_KRB5_AUTHENTBODY(KRB5_AUTHENTBODY *a, unsigned char **out) | ||
385 | { | ||
386 | return ASN1_item_i2d((ASN1_VALUE *)a, out, &KRB5_AUTHENTBODY_it); | ||
387 | } | ||
388 | |||
389 | KRB5_AUTHENTBODY * | ||
390 | KRB5_AUTHENTBODY_new(void) | ||
391 | { | ||
392 | return (KRB5_AUTHENTBODY *)ASN1_item_new(&KRB5_AUTHENTBODY_it); | ||
393 | } | ||
394 | |||
395 | void | ||
396 | KRB5_AUTHENTBODY_free(KRB5_AUTHENTBODY *a) | ||
397 | { | ||
398 | ASN1_item_free((ASN1_VALUE *)a, &KRB5_AUTHENTBODY_it); | ||
399 | } | ||
400 | |||
401 | ASN1_ITEM_TEMPLATE(KRB5_AUTHENT) = | ||
402 | ASN1_EX_TEMPLATE_TYPE(ASN1_TFLG_EXPTAG|ASN1_TFLG_APPLICATION, 2, | ||
403 | KRB5_AUTHENT, KRB5_AUTHENTBODY) | ||
404 | ASN1_ITEM_TEMPLATE_END(KRB5_AUTHENT) | ||
405 | |||
406 | |||
407 | KRB5_AUTHENT * | ||
408 | d2i_KRB5_AUTHENT(KRB5_AUTHENT **a, const unsigned char **in, long len) | ||
409 | { | ||
410 | return (KRB5_AUTHENT *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, | ||
411 | &KRB5_AUTHENT_it); | ||
412 | } | ||
413 | |||
414 | int | ||
415 | i2d_KRB5_AUTHENT(KRB5_AUTHENT *a, unsigned char **out) | ||
416 | { | ||
417 | return ASN1_item_i2d((ASN1_VALUE *)a, out, &KRB5_AUTHENT_it); | ||
418 | } | ||
419 | |||
420 | KRB5_AUTHENT * | ||
421 | KRB5_AUTHENT_new(void) | ||
422 | { | ||
423 | return (KRB5_AUTHENT *)ASN1_item_new(&KRB5_AUTHENT_it); | ||
424 | } | ||
425 | |||
426 | void | ||
427 | KRB5_AUTHENT_free(KRB5_AUTHENT *a) | ||
428 | { | ||
429 | ASN1_item_free((ASN1_VALUE *)a, &KRB5_AUTHENT_it); | ||
430 | } | ||
431 | |||