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