No empty .Rs/.Re
[netbsd-mini2440.git] / crypto / dist / heimdal / lib / asn1 / der-protos.h
blob7bfe02ebb44987ec7ec2f14ef92007e9d24da78d
1 /* This is a generated file */
2 #ifndef __der_protos_h__
3 #define __der_protos_h__
5 #include <stdarg.h>
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
11 int
12 copy_heim_any (
13 const heim_any */*from*/,
14 heim_any */*to*/);
16 int
17 copy_heim_any_set (
18 const heim_any_set */*from*/,
19 heim_any_set */*to*/);
21 int
22 decode_heim_any (
23 const unsigned char */*p*/,
24 size_t /*len*/,
25 heim_any */*data*/,
26 size_t */*size*/);
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*/);
35 int
36 der_copy_bit_string (
37 const heim_bit_string */*from*/,
38 heim_bit_string */*to*/);
40 int
41 der_copy_bmp_string (
42 const heim_bmp_string */*from*/,
43 heim_bmp_string */*to*/);
45 int
46 der_copy_general_string (
47 const heim_general_string */*from*/,
48 heim_general_string */*to*/);
50 int
51 der_copy_heim_integer (
52 const heim_integer */*from*/,
53 heim_integer */*to*/);
55 int
56 der_copy_ia5_string (
57 const heim_printable_string */*from*/,
58 heim_printable_string */*to*/);
60 int
61 der_copy_octet_string (
62 const heim_octet_string */*from*/,
63 heim_octet_string */*to*/);
65 int
66 der_copy_oid (
67 const heim_oid */*from*/,
68 heim_oid */*to*/);
70 int
71 der_copy_printable_string (
72 const heim_printable_string */*from*/,
73 heim_printable_string */*to*/);
75 int
76 der_copy_universal_string (
77 const heim_universal_string */*from*/,
78 heim_universal_string */*to*/);
80 int
81 der_copy_utf8string (
82 const heim_utf8_string */*from*/,
83 heim_utf8_string */*to*/);
85 int
86 der_copy_visible_string (
87 const heim_visible_string */*from*/,
88 heim_visible_string */*to*/);
90 void
91 der_free_bit_string (heim_bit_string */*k*/);
93 void
94 der_free_bmp_string (heim_bmp_string */*k*/);
96 void
97 der_free_general_string (heim_general_string */*str*/);
99 void
100 der_free_heim_integer (heim_integer */*k*/);
102 void
103 der_free_ia5_string (heim_ia5_string */*str*/);
105 void
106 der_free_octet_string (heim_octet_string */*k*/);
108 void
109 der_free_oid (heim_oid */*k*/);
111 void
112 der_free_printable_string (heim_printable_string */*str*/);
114 void
115 der_free_universal_string (heim_universal_string */*k*/);
117 void
118 der_free_utf8string (heim_utf8_string */*str*/);
120 void
121 der_free_visible_string (heim_visible_string */*str*/);
124 der_get_bit_string (
125 const unsigned char */*p*/,
126 size_t /*len*/,
127 heim_bit_string */*data*/,
128 size_t */*size*/);
131 der_get_bmp_string (
132 const unsigned char */*p*/,
133 size_t /*len*/,
134 heim_bmp_string */*data*/,
135 size_t */*size*/);
138 der_get_boolean (
139 const unsigned char */*p*/,
140 size_t /*len*/,
141 int */*data*/,
142 size_t */*size*/);
144 const char *
145 der_get_class_name (unsigned /*num*/);
148 der_get_class_num (const char */*name*/);
151 der_get_general_string (
152 const unsigned char */*p*/,
153 size_t /*len*/,
154 heim_general_string */*str*/,
155 size_t */*size*/);
158 der_get_generalized_time (
159 const unsigned char */*p*/,
160 size_t /*len*/,
161 time_t */*data*/,
162 size_t */*size*/);
165 der_get_heim_integer (
166 const unsigned char */*p*/,
167 size_t /*len*/,
168 heim_integer */*data*/,
169 size_t */*size*/);
172 der_get_ia5_string (
173 const unsigned char */*p*/,
174 size_t /*len*/,
175 heim_ia5_string */*str*/,
176 size_t */*size*/);
179 der_get_integer (
180 const unsigned char */*p*/,
181 size_t /*len*/,
182 int */*ret*/,
183 size_t */*size*/);
186 der_get_length (
187 const unsigned char */*p*/,
188 size_t /*len*/,
189 size_t */*val*/,
190 size_t */*size*/);
193 der_get_octet_string (
194 const unsigned char */*p*/,
195 size_t /*len*/,
196 heim_octet_string */*data*/,
197 size_t */*size*/);
200 der_get_oid (
201 const unsigned char */*p*/,
202 size_t /*len*/,
203 heim_oid */*data*/,
204 size_t */*size*/);
207 der_get_printable_string (
208 const unsigned char */*p*/,
209 size_t /*len*/,
210 heim_printable_string */*str*/,
211 size_t */*size*/);
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*/);
222 const char *
223 der_get_tag_name (unsigned /*num*/);
226 der_get_tag_num (const char */*name*/);
228 const char *
229 der_get_type_name (unsigned /*num*/);
232 der_get_type_num (const char */*name*/);
235 der_get_universal_string (
236 const unsigned char */*p*/,
237 size_t /*len*/,
238 heim_universal_string */*data*/,
239 size_t */*size*/);
242 der_get_unsigned (
243 const unsigned char */*p*/,
244 size_t /*len*/,
245 unsigned */*ret*/,
246 size_t */*size*/);
249 der_get_utctime (
250 const unsigned char */*p*/,
251 size_t /*len*/,
252 time_t */*data*/,
253 size_t */*size*/);
256 der_get_utf8string (
257 const unsigned char */*p*/,
258 size_t /*len*/,
259 heim_utf8_string */*str*/,
260 size_t */*size*/);
263 der_get_visible_string (
264 const unsigned char */*p*/,
265 size_t /*len*/,
266 heim_visible_string */*str*/,
267 size_t */*size*/);
270 der_heim_bit_string_cmp (
271 const heim_bit_string */*p*/,
272 const heim_bit_string */*q*/);
275 der_heim_bmp_string_cmp (
276 const heim_bmp_string */*p*/,
277 const heim_bmp_string */*q*/);
280 der_heim_integer_cmp (
281 const heim_integer */*p*/,
282 const heim_integer */*q*/);
285 der_heim_octet_string_cmp (
286 const heim_octet_string */*p*/,
287 const heim_octet_string */*q*/);
290 der_heim_oid_cmp (
291 const heim_oid */*p*/,
292 const heim_oid */*q*/);
295 der_heim_universal_string_cmp (
296 const heim_universal_string */*p*/,
297 const heim_universal_string */*q*/);
299 size_t
300 der_length_bit_string (const heim_bit_string */*k*/);
302 size_t
303 der_length_bmp_string (const heim_bmp_string */*data*/);
305 size_t
306 der_length_boolean (const int */*k*/);
308 size_t
309 der_length_enumerated (const unsigned */*data*/);
311 size_t
312 der_length_general_string (const heim_general_string */*data*/);
314 size_t
315 der_length_generalized_time (const time_t */*t*/);
317 size_t
318 der_length_heim_integer (const heim_integer */*k*/);
320 size_t
321 der_length_ia5_string (const heim_ia5_string */*data*/);
323 size_t
324 der_length_integer (const int */*data*/);
326 size_t
327 der_length_len (size_t /*len*/);
329 size_t
330 der_length_octet_string (const heim_octet_string */*k*/);
332 size_t
333 der_length_oid (const heim_oid */*k*/);
335 size_t
336 der_length_printable_string (const heim_printable_string */*data*/);
338 size_t
339 der_length_universal_string (const heim_universal_string */*data*/);
341 size_t
342 der_length_unsigned (const unsigned */*data*/);
344 size_t
345 der_length_utctime (const time_t */*t*/);
347 size_t
348 der_length_utf8string (const heim_utf8_string */*data*/);
350 size_t
351 der_length_visible_string (const heim_visible_string */*data*/);
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*/);
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*/);
373 der_parse_heim_oid (
374 const char */*str*/,
375 const char */*sep*/,
376 heim_oid */*data*/);
379 der_parse_hex_heim_integer (
380 const char */*p*/,
381 heim_integer */*data*/);
384 der_print_heim_oid (
385 const heim_oid */*oid*/,
386 char /*delim*/,
387 char **/*str*/);
390 der_print_hex_heim_integer (
391 const heim_integer */*data*/,
392 char **/*p*/);
395 der_put_bit_string (
396 unsigned char */*p*/,
397 size_t /*len*/,
398 const heim_bit_string */*data*/,
399 size_t */*size*/);
402 der_put_bmp_string (
403 unsigned char */*p*/,
404 size_t /*len*/,
405 const heim_bmp_string */*data*/,
406 size_t */*size*/);
409 der_put_boolean (
410 unsigned char */*p*/,
411 size_t /*len*/,
412 const int */*data*/,
413 size_t */*size*/);
416 der_put_general_string (
417 unsigned char */*p*/,
418 size_t /*len*/,
419 const heim_general_string */*str*/,
420 size_t */*size*/);
423 der_put_generalized_time (
424 unsigned char */*p*/,
425 size_t /*len*/,
426 const time_t */*data*/,
427 size_t */*size*/);
430 der_put_heim_integer (
431 unsigned char */*p*/,
432 size_t /*len*/,
433 const heim_integer */*data*/,
434 size_t */*size*/);
437 der_put_ia5_string (
438 unsigned char */*p*/,
439 size_t /*len*/,
440 const heim_ia5_string */*str*/,
441 size_t */*size*/);
444 der_put_integer (
445 unsigned char */*p*/,
446 size_t /*len*/,
447 const int */*v*/,
448 size_t */*size*/);
451 der_put_length (
452 unsigned char */*p*/,
453 size_t /*len*/,
454 size_t /*val*/,
455 size_t */*size*/);
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*/);
468 der_put_octet_string (
469 unsigned char */*p*/,
470 size_t /*len*/,
471 const heim_octet_string */*data*/,
472 size_t */*size*/);
475 der_put_oid (
476 unsigned char */*p*/,
477 size_t /*len*/,
478 const heim_oid */*data*/,
479 size_t */*size*/);
482 der_put_printable_string (
483 unsigned char */*p*/,
484 size_t /*len*/,
485 const heim_printable_string */*str*/,
486 size_t */*size*/);
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*/);
498 der_put_universal_string (
499 unsigned char */*p*/,
500 size_t /*len*/,
501 const heim_universal_string */*data*/,
502 size_t */*size*/);
505 der_put_unsigned (
506 unsigned char */*p*/,
507 size_t /*len*/,
508 const unsigned */*v*/,
509 size_t */*size*/);
512 der_put_utctime (
513 unsigned char */*p*/,
514 size_t /*len*/,
515 const time_t */*data*/,
516 size_t */*size*/);
519 der_put_utf8string (
520 unsigned char */*p*/,
521 size_t /*len*/,
522 const heim_utf8_string */*str*/,
523 size_t */*size*/);
526 der_put_visible_string (
527 unsigned char */*p*/,
528 size_t /*len*/,
529 const heim_visible_string */*str*/,
530 size_t */*size*/);
533 encode_heim_any (
534 unsigned char */*p*/,
535 size_t /*len*/,
536 const heim_any */*data*/,
537 size_t */*size*/);
540 encode_heim_any_set (
541 unsigned char */*p*/,
542 size_t /*len*/,
543 const heim_any_set */*data*/,
544 size_t */*size*/);
546 void
547 free_heim_any (heim_any */*data*/);
549 void
550 free_heim_any_set (heim_any_set */*data*/);
553 heim_any_cmp (
554 const heim_any_set */*p*/,
555 const heim_any_set */*q*/);
557 size_t
558 length_heim_any (const heim_any */*data*/);
560 size_t
561 length_heim_any_set (const heim_any */*data*/);
563 #ifdef __cplusplus
565 #endif
567 #endif /* __der_protos_h__ */