419
411
/* Function Prototypes */
421
OM_uint32 KRB5_CALLCONV gss_acquire_cred
422
(OM_uint32 *, /* minor_status */
423
gss_name_t, /* desired_name */
424
OM_uint32, /* time_req */
425
gss_OID_set, /* desired_mechs */
426
gss_cred_usage_t, /* cred_usage */
427
gss_cred_id_t *, /* output_cred_handle */
428
gss_OID_set *, /* actual_mechs */
429
OM_uint32 * /* time_rec */
432
OM_uint32 KRB5_CALLCONV gss_release_cred
433
(OM_uint32 *, /* minor_status */
434
gss_cred_id_t * /* cred_handle */
437
OM_uint32 KRB5_CALLCONV gss_init_sec_context
438
(OM_uint32 *, /* minor_status */
439
gss_cred_id_t, /* claimant_cred_handle */
440
gss_ctx_id_t *, /* context_handle */
441
gss_name_t, /* target_name */
442
gss_OID, /* mech_type (used to be const) */
443
OM_uint32, /* req_flags */
444
OM_uint32, /* time_req */
445
gss_channel_bindings_t, /* input_chan_bindings */
446
gss_buffer_t, /* input_token */
447
gss_OID *, /* actual_mech_type */
448
gss_buffer_t, /* output_token */
449
OM_uint32 *, /* ret_flags */
450
OM_uint32 * /* time_rec */
453
OM_uint32 KRB5_CALLCONV gss_accept_sec_context
454
(OM_uint32 *, /* minor_status */
455
gss_ctx_id_t *, /* context_handle */
456
gss_cred_id_t, /* acceptor_cred_handle */
457
gss_buffer_t, /* input_token_buffer */
458
gss_channel_bindings_t, /* input_chan_bindings */
459
gss_name_t *, /* src_name */
460
gss_OID *, /* mech_type */
461
gss_buffer_t, /* output_token */
462
OM_uint32 *, /* ret_flags */
463
OM_uint32 *, /* time_rec */
464
gss_cred_id_t * /* delegated_cred_handle */
467
OM_uint32 KRB5_CALLCONV gss_process_context_token
468
(OM_uint32 *, /* minor_status */
469
gss_ctx_id_t, /* context_handle */
470
gss_buffer_t /* token_buffer */
473
OM_uint32 KRB5_CALLCONV gss_delete_sec_context
474
(OM_uint32 *, /* minor_status */
475
gss_ctx_id_t *, /* context_handle */
476
gss_buffer_t /* output_token */
479
OM_uint32 KRB5_CALLCONV gss_context_time
480
(OM_uint32 *, /* minor_status */
481
gss_ctx_id_t, /* context_handle */
482
OM_uint32 * /* time_rec */
486
OM_uint32 KRB5_CALLCONV gss_get_mic
487
(OM_uint32 *, /* minor_status */
488
gss_ctx_id_t, /* context_handle */
489
gss_qop_t, /* qop_req */
490
gss_buffer_t, /* message_buffer */
491
gss_buffer_t /* message_token */
495
OM_uint32 KRB5_CALLCONV gss_verify_mic
496
(OM_uint32 *, /* minor_status */
497
gss_ctx_id_t, /* context_handle */
498
gss_buffer_t, /* message_buffer */
499
gss_buffer_t, /* message_token */
500
gss_qop_t * /* qop_state */
504
OM_uint32 KRB5_CALLCONV gss_wrap
505
(OM_uint32 *, /* minor_status */
506
gss_ctx_id_t, /* context_handle */
507
int, /* conf_req_flag */
508
gss_qop_t, /* qop_req */
509
gss_buffer_t, /* input_message_buffer */
510
int *, /* conf_state */
511
gss_buffer_t /* output_message_buffer */
515
OM_uint32 KRB5_CALLCONV gss_unwrap
516
(OM_uint32 *, /* minor_status */
517
gss_ctx_id_t, /* context_handle */
518
gss_buffer_t, /* input_message_buffer */
519
gss_buffer_t, /* output_message_buffer */
520
int *, /* conf_state */
521
gss_qop_t * /* qop_state */
524
OM_uint32 KRB5_CALLCONV gss_display_status
525
(OM_uint32 *, /* minor_status */
526
OM_uint32, /* status_value */
527
int, /* status_type */
528
gss_OID, /* mech_type (used to be const) */
529
OM_uint32 *, /* message_context */
530
gss_buffer_t /* status_string */
533
OM_uint32 KRB5_CALLCONV gss_indicate_mechs
534
(OM_uint32 *, /* minor_status */
535
gss_OID_set * /* mech_set */
538
OM_uint32 KRB5_CALLCONV gss_compare_name
539
(OM_uint32 *, /* minor_status */
540
gss_name_t, /* name1 */
541
gss_name_t, /* name2 */
542
int * /* name_equal */
545
OM_uint32 KRB5_CALLCONV gss_display_name
546
(OM_uint32 *, /* minor_status */
547
gss_name_t, /* input_name */
548
gss_buffer_t, /* output_name_buffer */
549
gss_OID * /* output_name_type */
552
OM_uint32 KRB5_CALLCONV gss_import_name
553
(OM_uint32 *, /* minor_status */
554
gss_buffer_t, /* input_name_buffer */
555
gss_OID, /* input_name_type(used to be const) */
556
gss_name_t * /* output_name */
559
OM_uint32 KRB5_CALLCONV gss_release_name
560
(OM_uint32 *, /* minor_status */
561
gss_name_t * /* input_name */
564
OM_uint32 KRB5_CALLCONV gss_release_buffer
565
(OM_uint32 *, /* minor_status */
566
gss_buffer_t /* buffer */
569
OM_uint32 KRB5_CALLCONV gss_release_oid_set
570
(OM_uint32 *, /* minor_status */
571
gss_OID_set * /* set */
574
OM_uint32 KRB5_CALLCONV gss_inquire_cred
575
(OM_uint32 *, /* minor_status */
576
gss_cred_id_t, /* cred_handle */
577
gss_name_t *, /* name */
578
OM_uint32 *, /* lifetime */
579
gss_cred_usage_t *, /* cred_usage */
580
gss_OID_set * /* mechanisms */
413
OM_uint32 KRB5_CALLCONV
415
OM_uint32 *, /* minor_status */
416
gss_name_t, /* desired_name */
417
OM_uint32, /* time_req */
418
gss_OID_set, /* desired_mechs */
419
gss_cred_usage_t, /* cred_usage */
420
gss_cred_id_t *, /* output_cred_handle */
421
gss_OID_set *, /* actual_mechs */
422
OM_uint32 *); /* time_rec */
424
OM_uint32 KRB5_CALLCONV
426
OM_uint32 *, /* minor_status */
427
gss_cred_id_t *); /* cred_handle */
429
OM_uint32 KRB5_CALLCONV
430
gss_init_sec_context(
431
OM_uint32 *, /* minor_status */
432
gss_cred_id_t, /* claimant_cred_handle */
433
gss_ctx_id_t *, /* context_handle */
434
gss_name_t, /* target_name */
435
gss_OID, /* mech_type (used to be const) */
436
OM_uint32, /* req_flags */
437
OM_uint32, /* time_req */
438
gss_channel_bindings_t, /* input_chan_bindings */
439
gss_buffer_t, /* input_token */
440
gss_OID *, /* actual_mech_type */
441
gss_buffer_t, /* output_token */
442
OM_uint32 *, /* ret_flags */
443
OM_uint32 *); /* time_rec */
445
OM_uint32 KRB5_CALLCONV
446
gss_accept_sec_context(
447
OM_uint32 *, /* minor_status */
448
gss_ctx_id_t *, /* context_handle */
449
gss_cred_id_t, /* acceptor_cred_handle */
450
gss_buffer_t, /* input_token_buffer */
451
gss_channel_bindings_t, /* input_chan_bindings */
452
gss_name_t *, /* src_name */
453
gss_OID *, /* mech_type */
454
gss_buffer_t, /* output_token */
455
OM_uint32 *, /* ret_flags */
456
OM_uint32 *, /* time_rec */
457
gss_cred_id_t *); /* delegated_cred_handle */
459
OM_uint32 KRB5_CALLCONV
460
gss_process_context_token(
461
OM_uint32 *, /* minor_status */
462
gss_ctx_id_t, /* context_handle */
463
gss_buffer_t); /* token_buffer */
466
OM_uint32 KRB5_CALLCONV
467
gss_delete_sec_context(
468
OM_uint32 *, /* minor_status */
469
gss_ctx_id_t *, /* context_handle */
470
gss_buffer_t); /* output_token */
473
OM_uint32 KRB5_CALLCONV
475
OM_uint32 *, /* minor_status */
476
gss_ctx_id_t, /* context_handle */
477
OM_uint32 *); /* time_rec */
481
OM_uint32 KRB5_CALLCONV
483
OM_uint32 *, /* minor_status */
484
gss_ctx_id_t, /* context_handle */
485
gss_qop_t, /* qop_req */
486
gss_buffer_t, /* message_buffer */
487
gss_buffer_t); /* message_token */
491
OM_uint32 KRB5_CALLCONV
492
gss_verify_mic(OM_uint32 *, /* minor_status */
493
gss_ctx_id_t, /* context_handle */
494
gss_buffer_t, /* message_buffer */
495
gss_buffer_t, /* message_token */
496
gss_qop_t * /* qop_state */
500
OM_uint32 KRB5_CALLCONV
502
OM_uint32 *, /* minor_status */
503
gss_ctx_id_t, /* context_handle */
504
int, /* conf_req_flag */
505
gss_qop_t, /* qop_req */
506
gss_buffer_t, /* input_message_buffer */
507
int *, /* conf_state */
508
gss_buffer_t); /* output_message_buffer */
512
OM_uint32 KRB5_CALLCONV
514
OM_uint32 *, /* minor_status */
515
gss_ctx_id_t, /* context_handle */
516
gss_buffer_t, /* input_message_buffer */
517
gss_buffer_t, /* output_message_buffer */
518
int *, /* conf_state */
519
gss_qop_t *); /* qop_state */
522
OM_uint32 KRB5_CALLCONV
524
OM_uint32 *, /* minor_status */
525
OM_uint32, /* status_value */
526
int, /* status_type */
527
gss_OID, /* mech_type (used to be const) */
528
OM_uint32 *, /* message_context */
529
gss_buffer_t); /* status_string */
532
OM_uint32 KRB5_CALLCONV
534
OM_uint32 *, /* minor_status */
535
gss_OID_set *); /* mech_set */
538
OM_uint32 KRB5_CALLCONV
540
OM_uint32 *, /* minor_status */
541
gss_name_t, /* name1 */
542
gss_name_t, /* name2 */
543
int *); /* name_equal */
546
OM_uint32 KRB5_CALLCONV
548
OM_uint32 *, /* minor_status */
549
gss_name_t, /* input_name */
550
gss_buffer_t, /* output_name_buffer */
551
gss_OID *); /* output_name_type */
554
OM_uint32 KRB5_CALLCONV
556
OM_uint32 *, /* minor_status */
557
gss_buffer_t, /* input_name_buffer */
558
gss_OID, /* input_name_type(used to be const) */
559
gss_name_t *); /* output_name */
561
OM_uint32 KRB5_CALLCONV
563
OM_uint32 *, /* minor_status */
564
gss_name_t *); /* input_name */
566
OM_uint32 KRB5_CALLCONV
568
OM_uint32 *, /* minor_status */
569
gss_buffer_t); /* buffer */
571
OM_uint32 KRB5_CALLCONV
573
OM_uint32 *, /* minor_status */
574
gss_OID_set *); /* set */
576
OM_uint32 KRB5_CALLCONV
578
OM_uint32 *, /* minor_status */
579
gss_cred_id_t, /* cred_handle */
580
gss_name_t *, /* name */
581
OM_uint32 *, /* lifetime */
582
gss_cred_usage_t *, /* cred_usage */
583
gss_OID_set *); /* mechanisms */
583
585
/* Last argument new for V2 */
584
OM_uint32 KRB5_CALLCONV gss_inquire_context
585
(OM_uint32 *, /* minor_status */
586
gss_ctx_id_t, /* context_handle */
587
gss_name_t *, /* src_name */
588
gss_name_t *, /* targ_name */
589
OM_uint32 *, /* lifetime_rec */
590
gss_OID *, /* mech_type */
591
OM_uint32 *, /* ctx_flags */
592
int *, /* locally_initiated */
597
OM_uint32 KRB5_CALLCONV gss_wrap_size_limit
598
(OM_uint32 *, /* minor_status */
599
gss_ctx_id_t, /* context_handle */
600
int, /* conf_req_flag */
601
gss_qop_t, /* qop_req */
602
OM_uint32, /* req_output_size */
603
OM_uint32 * /* max_input_size */
607
OM_uint32 KRB5_CALLCONV gss_import_name_object
608
(OM_uint32 *, /* minor_status */
609
void *, /* input_name */
610
gss_OID, /* input_name_type */
611
gss_name_t * /* output_name */
615
OM_uint32 KRB5_CALLCONV gss_export_name_object
616
(OM_uint32 *, /* minor_status */
617
gss_name_t, /* input_name */
618
gss_OID, /* desired_name_type */
619
void ** /* output_name */
623
OM_uint32 KRB5_CALLCONV gss_add_cred
624
(OM_uint32 *, /* minor_status */
625
gss_cred_id_t, /* input_cred_handle */
626
gss_name_t, /* desired_name */
627
gss_OID, /* desired_mech */
628
gss_cred_usage_t, /* cred_usage */
629
OM_uint32, /* initiator_time_req */
630
OM_uint32, /* acceptor_time_req */
631
gss_cred_id_t *, /* output_cred_handle */
632
gss_OID_set *, /* actual_mechs */
633
OM_uint32 *, /* initiator_time_rec */
634
OM_uint32 * /* acceptor_time_rec */
638
OM_uint32 KRB5_CALLCONV gss_inquire_cred_by_mech
639
(OM_uint32 *, /* minor_status */
640
gss_cred_id_t, /* cred_handle */
641
gss_OID, /* mech_type */
642
gss_name_t *, /* name */
643
OM_uint32 *, /* initiator_lifetime */
644
OM_uint32 *, /* acceptor_lifetime */
645
gss_cred_usage_t * /* cred_usage */
649
OM_uint32 KRB5_CALLCONV gss_export_sec_context
650
(OM_uint32 *, /* minor_status */
651
gss_ctx_id_t *, /* context_handle */
652
gss_buffer_t /* interprocess_token */
656
OM_uint32 KRB5_CALLCONV gss_import_sec_context
657
(OM_uint32 *, /* minor_status */
658
gss_buffer_t, /* interprocess_token */
659
gss_ctx_id_t * /* context_handle */
663
OM_uint32 KRB5_CALLCONV gss_release_oid
664
(OM_uint32 *, /* minor_status */
669
OM_uint32 KRB5_CALLCONV gss_create_empty_oid_set
670
(OM_uint32 *, /* minor_status */
671
gss_OID_set * /* oid_set */
675
OM_uint32 KRB5_CALLCONV gss_add_oid_set_member
676
(OM_uint32 *, /* minor_status */
677
gss_OID, /* member_oid */
678
gss_OID_set * /* oid_set */
682
OM_uint32 KRB5_CALLCONV gss_test_oid_set_member
683
(OM_uint32 *, /* minor_status */
684
gss_OID, /* member */
685
gss_OID_set, /* set */
690
OM_uint32 KRB5_CALLCONV gss_str_to_oid
691
(OM_uint32 *, /* minor_status */
692
gss_buffer_t, /* oid_str */
697
OM_uint32 KRB5_CALLCONV gss_oid_to_str
698
(OM_uint32 *, /* minor_status */
700
gss_buffer_t /* oid_str */
704
OM_uint32 KRB5_CALLCONV gss_inquire_names_for_mech
705
(OM_uint32 *, /* minor_status */
706
gss_OID, /* mechanism */
707
gss_OID_set * /* name_types */
711
OM_uint32 KRB5_CALLCONV gss_inquire_mechs_for_name(
712
OM_uint32 *, /* minor_status */
713
const gss_name_t, /* input_name */
714
gss_OID_set * /* mech_types */
586
OM_uint32 KRB5_CALLCONV
588
OM_uint32 *, /* minor_status */
589
gss_ctx_id_t, /* context_handle */
590
gss_name_t *, /* src_name */
591
gss_name_t *, /* targ_name */
592
OM_uint32 *, /* lifetime_rec */
593
gss_OID *, /* mech_type */
594
OM_uint32 *, /* ctx_flags */
595
int *, /* locally_initiated */
599
OM_uint32 KRB5_CALLCONV
601
OM_uint32 *, /* minor_status */
602
gss_ctx_id_t, /* context_handle */
603
int, /* conf_req_flag */
604
gss_qop_t, /* qop_req */
605
OM_uint32, /* req_output_size */
606
OM_uint32 *); /* max_input_size */
609
OM_uint32 KRB5_CALLCONV
610
gss_import_name_object(
611
OM_uint32 *, /* minor_status */
612
void *, /* input_name */
613
gss_OID, /* input_name_type */
614
gss_name_t *); /* output_name */
617
OM_uint32 KRB5_CALLCONV
618
gss_export_name_object(
619
OM_uint32 *, /* minor_status */
620
gss_name_t, /* input_name */
621
gss_OID, /* desired_name_type */
622
void **); /* output_name */
625
OM_uint32 KRB5_CALLCONV
627
OM_uint32 *, /* minor_status */
628
gss_cred_id_t, /* input_cred_handle */
629
gss_name_t, /* desired_name */
630
gss_OID, /* desired_mech */
631
gss_cred_usage_t, /* cred_usage */
632
OM_uint32, /* initiator_time_req */
633
OM_uint32, /* acceptor_time_req */
634
gss_cred_id_t *, /* output_cred_handle */
635
gss_OID_set *, /* actual_mechs */
636
OM_uint32 *, /* initiator_time_rec */
637
OM_uint32 *); /* acceptor_time_rec */
640
OM_uint32 KRB5_CALLCONV
641
gss_inquire_cred_by_mech(
642
OM_uint32 *, /* minor_status */
643
gss_cred_id_t, /* cred_handle */
644
gss_OID, /* mech_type */
645
gss_name_t *, /* name */
646
OM_uint32 *, /* initiator_lifetime */
647
OM_uint32 *, /* acceptor_lifetime */
648
gss_cred_usage_t *); /* cred_usage */
651
OM_uint32 KRB5_CALLCONV
652
gss_export_sec_context(
653
OM_uint32 *, /* minor_status */
654
gss_ctx_id_t *, /* context_handle */
655
gss_buffer_t); /* interprocess_token */
658
OM_uint32 KRB5_CALLCONV
659
gss_import_sec_context(
660
OM_uint32 *, /* minor_status */
661
gss_buffer_t, /* interprocess_token */
662
gss_ctx_id_t *); /* context_handle */
665
OM_uint32 KRB5_CALLCONV
667
OM_uint32 *, /* minor_status */
668
gss_OID *); /* oid */
671
OM_uint32 KRB5_CALLCONV
672
gss_create_empty_oid_set(
673
OM_uint32 *, /* minor_status */
674
gss_OID_set *); /* oid_set */
677
OM_uint32 KRB5_CALLCONV
678
gss_add_oid_set_member(
679
OM_uint32 *, /* minor_status */
680
gss_OID, /* member_oid */
681
gss_OID_set *); /* oid_set */
684
OM_uint32 KRB5_CALLCONV
685
gss_test_oid_set_member(
686
OM_uint32 *, /* minor_status */
687
gss_OID, /* member */
688
gss_OID_set, /* set */
689
int *); /* present */
692
OM_uint32 KRB5_CALLCONV
694
OM_uint32 *, /* minor_status */
695
gss_buffer_t, /* oid_str */
696
gss_OID *); /* oid */
699
OM_uint32 KRB5_CALLCONV
701
OM_uint32 *, /* minor_status */
703
gss_buffer_t); /* oid_str */
706
OM_uint32 KRB5_CALLCONV
707
gss_inquire_names_for_mech(
708
OM_uint32 *, /* minor_status */
709
gss_OID, /* mechanism */
710
gss_OID_set *); /* name_types */
713
OM_uint32 KRB5_CALLCONV
714
gss_inquire_mechs_for_name(
715
OM_uint32 *, /* minor_status */
716
const gss_name_t, /* input_name */
717
gss_OID_set *); /* mech_types */
718
720
* The following routines are obsolete variants of gss_get_mic, gss_wrap,
721
723
* entrypoints (as opposed to #defines) should be provided, to allow GSSAPI
722
724
* V1 applications to link against GSSAPI V2 implementations.
724
OM_uint32 KRB5_CALLCONV gss_sign
725
(OM_uint32 *, /* minor_status */
726
gss_ctx_id_t, /* context_handle */
728
gss_buffer_t, /* message_buffer */
729
gss_buffer_t /* message_token */
732
OM_uint32 KRB5_CALLCONV gss_verify
733
(OM_uint32 *, /* minor_status */
734
gss_ctx_id_t, /* context_handle */
735
gss_buffer_t, /* message_buffer */
736
gss_buffer_t, /* token_buffer */
737
int * /* qop_state */
740
OM_uint32 KRB5_CALLCONV gss_seal
741
(OM_uint32 *, /* minor_status */
742
gss_ctx_id_t, /* context_handle */
743
int, /* conf_req_flag */
745
gss_buffer_t, /* input_message_buffer */
746
int *, /* conf_state */
747
gss_buffer_t /* output_message_buffer */
750
OM_uint32 KRB5_CALLCONV gss_unseal
751
(OM_uint32 *, /* minor_status */
752
gss_ctx_id_t, /* context_handle */
753
gss_buffer_t, /* input_message_buffer */
754
gss_buffer_t, /* output_message_buffer */
755
int *, /* conf_state */
756
int * /* qop_state */
760
OM_uint32 KRB5_CALLCONV gss_export_name
761
(OM_uint32 *, /* minor_status */
762
const gss_name_t, /* input_name */
763
gss_buffer_t /* exported_name */
767
OM_uint32 KRB5_CALLCONV gss_duplicate_name
768
(OM_uint32 *, /* minor_status */
769
const gss_name_t, /* input_name */
770
gss_name_t * /* dest_name */
774
OM_uint32 KRB5_CALLCONV gss_canonicalize_name
775
(OM_uint32 *, /* minor_status */
776
const gss_name_t, /* input_name */
777
const gss_OID, /* mech_type */
778
gss_name_t * /* output_name */
783
/* New Likewise API */
784
OM_uint32 KRB5_CALLCONV gss_inquire_context2
785
(OM_uint32 *, /* minor_status */
786
gss_ctx_id_t, /* context_handle */
787
gss_name_t *, /* src_name */
788
gss_name_t *, /* targ_name */
789
OM_uint32 *, /* lifetime_rec */
790
gss_OID *, /* mech_type */
791
OM_uint32 *, /* ctx_flags */
792
int *, /* locally_initiated */
726
OM_uint32 KRB5_CALLCONV
728
OM_uint32 *, /* minor_status */
729
gss_ctx_id_t, /* context_handle */
731
gss_buffer_t, /* message_buffer */
732
gss_buffer_t); /* message_token */
734
OM_uint32 KRB5_CALLCONV
736
OM_uint32 *, /* minor_status */
737
gss_ctx_id_t, /* context_handle */
738
gss_buffer_t, /* message_buffer */
739
gss_buffer_t, /* token_buffer */
740
int *); /* qop_state */
742
OM_uint32 KRB5_CALLCONV
744
OM_uint32 *, /* minor_status */
745
gss_ctx_id_t, /* context_handle */
746
int, /* conf_req_flag */
748
gss_buffer_t, /* input_message_buffer */
749
int *, /* conf_state */
750
gss_buffer_t); /* output_message_buffer */
752
OM_uint32 KRB5_CALLCONV
754
OM_uint32 *, /* minor_status */
755
gss_ctx_id_t, /* context_handle */
756
gss_buffer_t, /* input_message_buffer */
757
gss_buffer_t, /* output_message_buffer */
758
int *, /* conf_state */
759
int *); /* qop_state */
762
OM_uint32 KRB5_CALLCONV
764
OM_uint32 *, /* minor_status */
765
const gss_name_t, /* input_name */
766
gss_buffer_t); /* exported_name */
769
OM_uint32 KRB5_CALLCONV
771
OM_uint32 *, /* minor_status */
772
const gss_name_t, /* input_name */
773
gss_name_t *); /* dest_name */
776
OM_uint32 KRB5_CALLCONV
777
gss_canonicalize_name(
778
OM_uint32 *, /* minor_status */
779
const gss_name_t, /* input_name */
780
const gss_OID, /* mech_type */
781
gss_name_t *); /* output_name */
797
783
#if TARGET_OS_MAC
798
# pragma options align=reset
801
787
#ifdef __cplusplus