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