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