xref: /freebsd/crypto/heimdal/lib/asn1/der-protos.h (revision 4fe54d7c6acb302aacc6ac18798804b26c882c13)
1 /* This is a generated file */
2 #ifndef __der_protos_h__
3 #define __der_protos_h__
4 
5 #include <stdarg.h>
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 
11 int
12 copy_heim_any (
13 	const heim_any */*from*/,
14 	heim_any */*to*/);
15 
16 int
17 copy_heim_any_set (
18 	const heim_any_set */*from*/,
19 	heim_any_set */*to*/);
20 
21 int
22 decode_heim_any (
23 	const unsigned char */*p*/,
24 	size_t /*len*/,
25 	heim_any */*data*/,
26 	size_t */*size*/);
27 
28 int
29 decode_heim_any_set (
30 	const unsigned char */*p*/,
31 	size_t /*len*/,
32 	heim_any_set */*data*/,
33 	size_t */*size*/);
34 
35 int
36 der_copy_bit_string (
37 	const heim_bit_string */*from*/,
38 	heim_bit_string */*to*/);
39 
40 int
41 der_copy_bmp_string (
42 	const heim_bmp_string */*from*/,
43 	heim_bmp_string */*to*/);
44 
45 int
46 der_copy_general_string (
47 	const heim_general_string */*from*/,
48 	heim_general_string */*to*/);
49 
50 int
51 der_copy_heim_integer (
52 	const heim_integer */*from*/,
53 	heim_integer */*to*/);
54 
55 int
56 der_copy_ia5_string (
57 	const heim_printable_string */*from*/,
58 	heim_printable_string */*to*/);
59 
60 int
61 der_copy_octet_string (
62 	const heim_octet_string */*from*/,
63 	heim_octet_string */*to*/);
64 
65 int
66 der_copy_oid (
67 	const heim_oid */*from*/,
68 	heim_oid */*to*/);
69 
70 int
71 der_copy_printable_string (
72 	const heim_printable_string */*from*/,
73 	heim_printable_string */*to*/);
74 
75 int
76 der_copy_universal_string (
77 	const heim_universal_string */*from*/,
78 	heim_universal_string */*to*/);
79 
80 int
81 der_copy_utf8string (
82 	const heim_utf8_string */*from*/,
83 	heim_utf8_string */*to*/);
84 
85 int
86 der_copy_visible_string (
87 	const heim_visible_string */*from*/,
88 	heim_visible_string */*to*/);
89 
90 void
91 der_free_bit_string (heim_bit_string */*k*/);
92 
93 void
94 der_free_bmp_string (heim_bmp_string */*k*/);
95 
96 void
97 der_free_general_string (heim_general_string */*str*/);
98 
99 void
100 der_free_heim_integer (heim_integer */*k*/);
101 
102 void
103 der_free_ia5_string (heim_ia5_string */*str*/);
104 
105 void
106 der_free_octet_string (heim_octet_string */*k*/);
107 
108 void
109 der_free_oid (heim_oid */*k*/);
110 
111 void
112 der_free_printable_string (heim_printable_string */*str*/);
113 
114 void
115 der_free_universal_string (heim_universal_string */*k*/);
116 
117 void
118 der_free_utf8string (heim_utf8_string */*str*/);
119 
120 void
121 der_free_visible_string (heim_visible_string */*str*/);
122 
123 int
124 der_get_bit_string (
125 	const unsigned char */*p*/,
126 	size_t /*len*/,
127 	heim_bit_string */*data*/,
128 	size_t */*size*/);
129 
130 int
131 der_get_bmp_string (
132 	const unsigned char */*p*/,
133 	size_t /*len*/,
134 	heim_bmp_string */*data*/,
135 	size_t */*size*/);
136 
137 int
138 der_get_boolean (
139 	const unsigned char */*p*/,
140 	size_t /*len*/,
141 	int */*data*/,
142 	size_t */*size*/);
143 
144 const char *
145 der_get_class_name (unsigned /*num*/);
146 
147 int
148 der_get_class_num (const char */*name*/);
149 
150 int
151 der_get_general_string (
152 	const unsigned char */*p*/,
153 	size_t /*len*/,
154 	heim_general_string */*str*/,
155 	size_t */*size*/);
156 
157 int
158 der_get_generalized_time (
159 	const unsigned char */*p*/,
160 	size_t /*len*/,
161 	time_t */*data*/,
162 	size_t */*size*/);
163 
164 int
165 der_get_heim_integer (
166 	const unsigned char */*p*/,
167 	size_t /*len*/,
168 	heim_integer */*data*/,
169 	size_t */*size*/);
170 
171 int
172 der_get_ia5_string (
173 	const unsigned char */*p*/,
174 	size_t /*len*/,
175 	heim_ia5_string */*str*/,
176 	size_t */*size*/);
177 
178 int
179 der_get_integer (
180 	const unsigned char */*p*/,
181 	size_t /*len*/,
182 	int */*ret*/,
183 	size_t */*size*/);
184 
185 int
186 der_get_length (
187 	const unsigned char */*p*/,
188 	size_t /*len*/,
189 	size_t */*val*/,
190 	size_t */*size*/);
191 
192 int
193 der_get_octet_string (
194 	const unsigned char */*p*/,
195 	size_t /*len*/,
196 	heim_octet_string */*data*/,
197 	size_t */*size*/);
198 
199 int
200 der_get_oid (
201 	const unsigned char */*p*/,
202 	size_t /*len*/,
203 	heim_oid */*data*/,
204 	size_t */*size*/);
205 
206 int
207 der_get_printable_string (
208 	const unsigned char */*p*/,
209 	size_t /*len*/,
210 	heim_printable_string */*str*/,
211 	size_t */*size*/);
212 
213 int
214 der_get_tag (
215 	const unsigned char */*p*/,
216 	size_t /*len*/,
217 	Der_class */*class*/,
218 	Der_type */*type*/,
219 	unsigned int */*tag*/,
220 	size_t */*size*/);
221 
222 const char *
223 der_get_tag_name (unsigned /*num*/);
224 
225 int
226 der_get_tag_num (const char */*name*/);
227 
228 const char *
229 der_get_type_name (unsigned /*num*/);
230 
231 int
232 der_get_type_num (const char */*name*/);
233 
234 int
235 der_get_universal_string (
236 	const unsigned char */*p*/,
237 	size_t /*len*/,
238 	heim_universal_string */*data*/,
239 	size_t */*size*/);
240 
241 int
242 der_get_unsigned (
243 	const unsigned char */*p*/,
244 	size_t /*len*/,
245 	unsigned */*ret*/,
246 	size_t */*size*/);
247 
248 int
249 der_get_utctime (
250 	const unsigned char */*p*/,
251 	size_t /*len*/,
252 	time_t */*data*/,
253 	size_t */*size*/);
254 
255 int
256 der_get_utf8string (
257 	const unsigned char */*p*/,
258 	size_t /*len*/,
259 	heim_utf8_string */*str*/,
260 	size_t */*size*/);
261 
262 int
263 der_get_visible_string (
264 	const unsigned char */*p*/,
265 	size_t /*len*/,
266 	heim_visible_string */*str*/,
267 	size_t */*size*/);
268 
269 int
270 der_heim_bit_string_cmp (
271 	const heim_bit_string */*p*/,
272 	const heim_bit_string */*q*/);
273 
274 int
275 der_heim_bmp_string_cmp (
276 	const heim_bmp_string */*p*/,
277 	const heim_bmp_string */*q*/);
278 
279 int
280 der_heim_integer_cmp (
281 	const heim_integer */*p*/,
282 	const heim_integer */*q*/);
283 
284 int
285 der_heim_octet_string_cmp (
286 	const heim_octet_string */*p*/,
287 	const heim_octet_string */*q*/);
288 
289 int
290 der_heim_oid_cmp (
291 	const heim_oid */*p*/,
292 	const heim_oid */*q*/);
293 
294 int
295 der_heim_universal_string_cmp (
296 	const heim_universal_string */*p*/,
297 	const heim_universal_string */*q*/);
298 
299 size_t
300 der_length_bit_string (const heim_bit_string */*k*/);
301 
302 size_t
303 der_length_bmp_string (const heim_bmp_string */*data*/);
304 
305 size_t
306 der_length_boolean (const int */*k*/);
307 
308 size_t
309 der_length_enumerated (const unsigned */*data*/);
310 
311 size_t
312 der_length_general_string (const heim_general_string */*data*/);
313 
314 size_t
315 der_length_generalized_time (const time_t */*t*/);
316 
317 size_t
318 der_length_heim_integer (const heim_integer */*k*/);
319 
320 size_t
321 der_length_ia5_string (const heim_ia5_string */*data*/);
322 
323 size_t
324 der_length_integer (const int */*data*/);
325 
326 size_t
327 der_length_len (size_t /*len*/);
328 
329 size_t
330 der_length_octet_string (const heim_octet_string */*k*/);
331 
332 size_t
333 der_length_oid (const heim_oid */*k*/);
334 
335 size_t
336 der_length_printable_string (const heim_printable_string */*data*/);
337 
338 size_t
339 der_length_universal_string (const heim_universal_string */*data*/);
340 
341 size_t
342 der_length_unsigned (const unsigned */*data*/);
343 
344 size_t
345 der_length_utctime (const time_t */*t*/);
346 
347 size_t
348 der_length_utf8string (const heim_utf8_string */*data*/);
349 
350 size_t
351 der_length_visible_string (const heim_visible_string */*data*/);
352 
353 int
354 der_match_tag (
355 	const unsigned char */*p*/,
356 	size_t /*len*/,
357 	Der_class /*class*/,
358 	Der_type /*type*/,
359 	unsigned int /*tag*/,
360 	size_t */*size*/);
361 
362 int
363 der_match_tag_and_length (
364 	const unsigned char */*p*/,
365 	size_t /*len*/,
366 	Der_class /*class*/,
367 	Der_type /*type*/,
368 	unsigned int /*tag*/,
369 	size_t */*length_ret*/,
370 	size_t */*size*/);
371 
372 int
373 der_parse_heim_oid (
374 	const char */*str*/,
375 	const char */*sep*/,
376 	heim_oid */*data*/);
377 
378 int
379 der_parse_hex_heim_integer (
380 	const char */*p*/,
381 	heim_integer */*data*/);
382 
383 int
384 der_print_heim_oid (
385 	const heim_oid */*oid*/,
386 	char /*delim*/,
387 	char **/*str*/);
388 
389 int
390 der_print_hex_heim_integer (
391 	const heim_integer */*data*/,
392 	char **/*p*/);
393 
394 int
395 der_put_bit_string (
396 	unsigned char */*p*/,
397 	size_t /*len*/,
398 	const heim_bit_string */*data*/,
399 	size_t */*size*/);
400 
401 int
402 der_put_bmp_string (
403 	unsigned char */*p*/,
404 	size_t /*len*/,
405 	const heim_bmp_string */*data*/,
406 	size_t */*size*/);
407 
408 int
409 der_put_boolean (
410 	unsigned char */*p*/,
411 	size_t /*len*/,
412 	const int */*data*/,
413 	size_t */*size*/);
414 
415 int
416 der_put_general_string (
417 	unsigned char */*p*/,
418 	size_t /*len*/,
419 	const heim_general_string */*str*/,
420 	size_t */*size*/);
421 
422 int
423 der_put_generalized_time (
424 	unsigned char */*p*/,
425 	size_t /*len*/,
426 	const time_t */*data*/,
427 	size_t */*size*/);
428 
429 int
430 der_put_heim_integer (
431 	unsigned char */*p*/,
432 	size_t /*len*/,
433 	const heim_integer */*data*/,
434 	size_t */*size*/);
435 
436 int
437 der_put_ia5_string (
438 	unsigned char */*p*/,
439 	size_t /*len*/,
440 	const heim_ia5_string */*str*/,
441 	size_t */*size*/);
442 
443 int
444 der_put_integer (
445 	unsigned char */*p*/,
446 	size_t /*len*/,
447 	const int */*v*/,
448 	size_t */*size*/);
449 
450 int
451 der_put_length (
452 	unsigned char */*p*/,
453 	size_t /*len*/,
454 	size_t /*val*/,
455 	size_t */*size*/);
456 
457 int
458 der_put_length_and_tag (
459 	unsigned char */*p*/,
460 	size_t /*len*/,
461 	size_t /*len_val*/,
462 	Der_class /*class*/,
463 	Der_type /*type*/,
464 	unsigned int /*tag*/,
465 	size_t */*size*/);
466 
467 int
468 der_put_octet_string (
469 	unsigned char */*p*/,
470 	size_t /*len*/,
471 	const heim_octet_string */*data*/,
472 	size_t */*size*/);
473 
474 int
475 der_put_oid (
476 	unsigned char */*p*/,
477 	size_t /*len*/,
478 	const heim_oid */*data*/,
479 	size_t */*size*/);
480 
481 int
482 der_put_printable_string (
483 	unsigned char */*p*/,
484 	size_t /*len*/,
485 	const heim_printable_string */*str*/,
486 	size_t */*size*/);
487 
488 int
489 der_put_tag (
490 	unsigned char */*p*/,
491 	size_t /*len*/,
492 	Der_class /*class*/,
493 	Der_type /*type*/,
494 	unsigned int /*tag*/,
495 	size_t */*size*/);
496 
497 int
498 der_put_universal_string (
499 	unsigned char */*p*/,
500 	size_t /*len*/,
501 	const heim_universal_string */*data*/,
502 	size_t */*size*/);
503 
504 int
505 der_put_unsigned (
506 	unsigned char */*p*/,
507 	size_t /*len*/,
508 	const unsigned */*v*/,
509 	size_t */*size*/);
510 
511 int
512 der_put_utctime (
513 	unsigned char */*p*/,
514 	size_t /*len*/,
515 	const time_t */*data*/,
516 	size_t */*size*/);
517 
518 int
519 der_put_utf8string (
520 	unsigned char */*p*/,
521 	size_t /*len*/,
522 	const heim_utf8_string */*str*/,
523 	size_t */*size*/);
524 
525 int
526 der_put_visible_string (
527 	unsigned char */*p*/,
528 	size_t /*len*/,
529 	const heim_visible_string */*str*/,
530 	size_t */*size*/);
531 
532 int
533 encode_heim_any (
534 	unsigned char */*p*/,
535 	size_t /*len*/,
536 	const heim_any */*data*/,
537 	size_t */*size*/);
538 
539 int
540 encode_heim_any_set (
541 	unsigned char */*p*/,
542 	size_t /*len*/,
543 	const heim_any_set */*data*/,
544 	size_t */*size*/);
545 
546 void
547 free_heim_any (heim_any */*data*/);
548 
549 void
550 free_heim_any_set (heim_any_set */*data*/);
551 
552 int
553 heim_any_cmp (
554 	const heim_any_set */*p*/,
555 	const heim_any_set */*q*/);
556 
557 size_t
558 length_heim_any (const heim_any */*data*/);
559 
560 size_t
561 length_heim_any_set (const heim_any */*data*/);
562 
563 #ifdef __cplusplus
564 }
565 #endif
566 
567 #endif /* __der_protos_h__ */
568