| api.h | | api.h | |
| /* api.h Header file for GSS-API. | | /* api.h Header file for GSS-API. | |
|
| * Copyright (C) 2003 Simon Josefsson | | * Copyright (C) 2003, 2004 Simon Josefsson | |
| * | | * | |
| * This file is part of the Generic Security Service (GSS). | | * This file is part of the Generic Security Service (GSS). | |
| * | | * | |
| * GSS is free software; you can redistribute it and/or modify it | | * GSS is free software; you can redistribute it and/or modify it | |
| * under the terms of the GNU General Public License as published by | | * under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation; either version 2 of the License, or | | * the Free Software Foundation; either version 2 of the License, or | |
| * (at your option) any later version. | | * (at your option) any later version. | |
| * | | * | |
| * GSS is distributed in the hope that it will be useful, but WITHOUT | | * GSS is distributed in the hope that it will be useful, but WITHOUT | |
| * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
| | | | |
| skipping to change at line 370 | | skipping to change at line 370 | |
| (GSS_C_ROUTINE_ERROR_MASK << GSS_C_ROUTINE_ERROR_OFFSET))) | | (GSS_C_ROUTINE_ERROR_MASK << GSS_C_ROUTINE_ERROR_OFFSET))) | |
| | | | |
| /* | | /* | |
| * Now the actual status code definitions | | * Now the actual status code definitions | |
| */ | | */ | |
| | | | |
| /* | | /* | |
| * Calling errors: | | * Calling errors: | |
| | | | |
| */ | | */ | |
|
| #define GSS_S_CALL_INACCESSIBLE_READ \ | | #define GSS_S_CALL_INACCESSIBLE_READ (1ul << GSS_C_CALLING_ERROR_OFFSET) | |
| (1ul << GSS_C_CALLING_ERROR_OFFSET) | | #define GSS_S_CALL_INACCESSIBLE_WRITE (2ul << GSS_C_CALLING_ERROR_OFFSET) | |
| #define GSS_S_CALL_INACCESSIBLE_WRITE \ | | #define GSS_S_CALL_BAD_STRUCTURE (3ul << GSS_C_CALLING_ERROR_OFFSET) | |
| (2ul << GSS_C_CALLING_ERROR_OFFSET) | | | |
| #define GSS_S_CALL_BAD_STRUCTURE \ | | | |
| (3ul << GSS_C_CALLING_ERROR_OFFSET) | | | |
| | | | |
| /* | | /* | |
| * Routine errors: | | * Routine errors: | |
| */ | | */ | |
| #define GSS_S_BAD_MECH (1ul << GSS_C_ROUTINE_ERROR_OFFSET) | | #define GSS_S_BAD_MECH (1ul << GSS_C_ROUTINE_ERROR_OFFSET) | |
| #define GSS_S_BAD_NAME (2ul << GSS_C_ROUTINE_ERROR_OFFSET) | | #define GSS_S_BAD_NAME (2ul << GSS_C_ROUTINE_ERROR_OFFSET) | |
| #define GSS_S_BAD_NAMETYPE (3ul << GSS_C_ROUTINE_ERROR_OFFSET) | | #define GSS_S_BAD_NAMETYPE (3ul << GSS_C_ROUTINE_ERROR_OFFSET) | |
| #define GSS_S_BAD_BINDINGS (4ul << GSS_C_ROUTINE_ERROR_OFFSET) | | #define GSS_S_BAD_BINDINGS (4ul << GSS_C_ROUTINE_ERROR_OFFSET) | |
| #define GSS_S_BAD_STATUS (5ul << GSS_C_ROUTINE_ERROR_OFFSET) | | #define GSS_S_BAD_STATUS (5ul << GSS_C_ROUTINE_ERROR_OFFSET) | |
| #define GSS_S_BAD_SIG (6ul << GSS_C_ROUTINE_ERROR_OFFSET) | | #define GSS_S_BAD_SIG (6ul << GSS_C_ROUTINE_ERROR_OFFSET) | |
| | | | |
| skipping to change at line 403 | | skipping to change at line 400 | |
| #define GSS_S_FAILURE (13ul << GSS_C_ROUTINE_ERROR_OFFSET) | | #define GSS_S_FAILURE (13ul << GSS_C_ROUTINE_ERROR_OFFSET) | |
| #define GSS_S_BAD_QOP (14ul << GSS_C_ROUTINE_ERROR_OFFSET) | | #define GSS_S_BAD_QOP (14ul << GSS_C_ROUTINE_ERROR_OFFSET) | |
| #define GSS_S_UNAUTHORIZED (15ul << GSS_C_ROUTINE_ERROR_OFFSET) | | #define GSS_S_UNAUTHORIZED (15ul << GSS_C_ROUTINE_ERROR_OFFSET) | |
| #define GSS_S_UNAVAILABLE (16ul << GSS_C_ROUTINE_ERROR_OFFSET) | | #define GSS_S_UNAVAILABLE (16ul << GSS_C_ROUTINE_ERROR_OFFSET) | |
| #define GSS_S_DUPLICATE_ELEMENT (17ul << GSS_C_ROUTINE_ERROR_OFFSET) | | #define GSS_S_DUPLICATE_ELEMENT (17ul << GSS_C_ROUTINE_ERROR_OFFSET) | |
| #define GSS_S_NAME_NOT_MN (18ul << GSS_C_ROUTINE_ERROR_OFFSET) | | #define GSS_S_NAME_NOT_MN (18ul << GSS_C_ROUTINE_ERROR_OFFSET) | |
| | | | |
| /* | | /* | |
| * Supplementary info bits: | | * Supplementary info bits: | |
| */ | | */ | |
|
| #define GSS_S_CONTINUE_NEEDED \ | | #define GSS_S_CONTINUE_NEEDED (1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 0)) | |
| (1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 0)) | | #define GSS_S_DUPLICATE_TOKEN (1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 1)) | |
| #define GSS_S_DUPLICATE_TOKEN \ | | #define GSS_S_OLD_TOKEN (1ul << (GSS_C_SUPPLEMENTARY_OFFSET | |
| (1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 1)) | | + 2)) | |
| #define GSS_S_OLD_TOKEN \ | | #define GSS_S_UNSEQ_TOKEN (1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 3)) | |
| (1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 2)) | | #define GSS_S_GAP_TOKEN (1ul << (GSS_C_SUPPLEMENTARY_OFFSET | |
| #define GSS_S_UNSEQ_TOKEN \ | | + 4)) | |
| (1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 3)) | | | |
| #define GSS_S_GAP_TOKEN \ | | | |
| (1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 4)) | | | |
| | | | |
|
| | | 4)) | |
| /* | | /* | |
| * Finally, function prototypes for the GSS-API routines. | | * Finally, function prototypes for the GSS-API routines. | |
| */ | | */ | |
| | | | |
|
| OM_uint32 gss_acquire_cred (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_name_t, /* desired_name */ | | gss_acquire_cred (OM_uint32 * minor_status, | |
| OM_uint32, /* time_req */ | | const gss_name_t desired_name, | |
| const gss_OID_set, /* desired_mechs */ | | OM_uint32 time_req, | |
| gss_cred_usage_t, /* cred_usage */ | | const gss_OID_set desired_mechs, | |
| gss_cred_id_t *, /* output_cred_handle */ | | gss_cred_usage_t cred_usage, | |
| gss_OID_set *, /* actual_mechs */ | | gss_cred_id_t * output_cred_handle, | |
| OM_uint32 * /* time_rec */ | | gss_OID_set * actual_mechs, OM_uint32 * time_rec); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_release_cred (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| gss_cred_id_t * /* cred_handle */ | | gss_release_cred (OM_uint32 * minor_status, gss_cred_id_t * cred_handle); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_init_sec_context (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_cred_id_t, /* initiator_cred_ha | | gss_init_sec_context (OM_uint32 * minor_status, | |
| ndle */ | | const gss_cred_id_t initiator_cred_handle, | |
| gss_ctx_id_t *, /* context_handle */ | | gss_ctx_id_t * context_handle, | |
| const gss_name_t, /* target_name */ | | const gss_name_t target_name, | |
| const gss_OID, /* mech_type */ | | const gss_OID mech_type, | |
| OM_uint32, /* req_flags */ | | OM_uint32 req_flags, | |
| OM_uint32, /* time_req */ | | OM_uint32 time_req, | |
| const gss_channel_bindings_t, | | const gss_channel_bindings_t input_chan_bindings, | |
| /* input_chan_bindings */ | | const gss_buffer_t input_token, | |
| const gss_buffer_t, /* input_token */ | | gss_OID * actual_mech_type, | |
| gss_OID *, /* actual_mech_type */ | | gss_buffer_t output_token, | |
| gss_buffer_t, /* output_token */ | | OM_uint32 * ret_flags, OM_uint32 * time_rec); | |
| OM_uint32 *, /* ret_flags */ | | | |
| OM_uint32 * /* time_rec */ | | | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_accept_sec_context (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| gss_ctx_id_t *, /* context_handle */ | | gss_accept_sec_context (OM_uint32 * minor_status, | |
| const gss_cred_id_t, /* acceptor_cred_han | | gss_ctx_id_t * context_handle, | |
| dle */ | | const gss_cred_id_t acceptor_cred_handle, | |
| const gss_buffer_t, /* input_token_buffe | | const gss_buffer_t input_token_buffer, | |
| r */ | | const gss_channel_bindings_t input_chan_bindings, | |
| const gss_channel_bindings_t, | | gss_name_t * src_name, | |
| /* input_chan_bindings */ | | gss_OID * mech_type, | |
| gss_name_t *, /* src_name */ | | gss_buffer_t output_token, | |
| gss_OID *, /* mech_type */ | | OM_uint32 * ret_flags, OM_uint32 * time_rec, | |
| gss_buffer_t, /* output_token */ | | gss_cred_id_t * delegated_cred_handle); | |
| OM_uint32 *, /* ret_flags */ | | | |
| OM_uint32 *, /* time_rec */ | | | |
| gss_cred_id_t * /* delegated_cred_ha | | | |
| ndle */ | | | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_process_context_token (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_ctx_id_t, /* context_h | | gss_process_context_token (OM_uint32 * minor_status, | |
| andle */ | | const gss_ctx_id_t context_handle, | |
| const gss_buffer_t /* token_buffer */ | | const gss_buffer_t token_buffer); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_delete_sec_context (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| gss_ctx_id_t *, /* context_handle */ | | gss_delete_sec_context (OM_uint32 * minor_status, | |
| gss_buffer_t /* output_token */ | | gss_ctx_id_t * context_handle, | |
| ); | | gss_buffer_t output_token); | |
| | | | |
|
| OM_uint32 gss_context_time (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_ctx_id_t, /* context_handle */ | | gss_context_time (OM_uint32 * minor_status, | |
| OM_uint32 * /* time_rec */ | | const gss_ctx_id_t context_handle, OM_uint32 * time_rec); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_get_mic (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_ctx_id_t, /* context_handle */ | | gss_get_mic (OM_uint32 * minor_status, | |
| gss_qop_t, /* qop_req */ | | const gss_ctx_id_t context_handle, | |
| const gss_buffer_t, /* message_buffer */ | | gss_qop_t qop_req, | |
| gss_buffer_t /* message_token */ | | const gss_buffer_t message_buffer, gss_buffer_t message_token); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_verify_mic (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_ctx_id_t, /* context_handle */ | | gss_verify_mic (OM_uint32 * minor_status, | |
| const gss_buffer_t, /* message_buffer */ | | const gss_ctx_id_t context_handle, | |
| const gss_buffer_t, /* token_buffer */ | | const gss_buffer_t message_buffer, | |
| gss_qop_t * /* qop_state */ | | const gss_buffer_t token_buffer, gss_qop_t * qop_state); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_wrap (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_ctx_id_t, /* context_handle */ | | gss_wrap (OM_uint32 * minor_status, | |
| int, /* conf_req_flag */ | | const gss_ctx_id_t context_handle, | |
| gss_qop_t, /* qop_req */ | | int conf_req_flag, | |
| const gss_buffer_t, /* input_message_buffer */ | | gss_qop_t qop_req, | |
| int *, /* conf_state */ | | const gss_buffer_t input_message_buffer, | |
| gss_buffer_t /* output_message_buffer */ | | int *conf_state, gss_buffer_t output_message_buffer); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_unwrap (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_ctx_id_t, /* context_handle */ | | gss_unwrap (OM_uint32 * minor_status, | |
| const gss_buffer_t, /* input_message_buffer */ | | const gss_ctx_id_t context_handle, | |
| gss_buffer_t, /* output_message_buffer */ | | const gss_buffer_t input_message_buffer, | |
| int *, /* conf_state */ | | gss_buffer_t output_message_buffer, | |
| gss_qop_t * /* qop_state */ | | int *conf_state, gss_qop_t * qop_state); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_display_status (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| OM_uint32, /* status_value */ | | gss_display_status (OM_uint32 * minor_status, | |
| int, /* status_type */ | | OM_uint32 status_value, | |
| const gss_OID, /* mech_type */ | | int status_type, | |
| OM_uint32 *, /* message_context */ | | const gss_OID mech_type, | |
| gss_buffer_t /* status_string */ | | OM_uint32 * message_context, gss_buffer_t status_string) | |
| ); | | ; | |
| | | | |
|
| OM_uint32 gss_indicate_mechs (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| gss_OID_set * /* mech_set */ | | gss_indicate_mechs (OM_uint32 * minor_status, gss_OID_set * mech_set); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_compare_name (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_name_t, /* name1 */ | | gss_compare_name (OM_uint32 * minor_status, | |
| const gss_name_t, /* name2 */ | | const gss_name_t name1, | |
| int * /* name_equal */ | | const gss_name_t name2, int *name_equal); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_display_name (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_name_t, /* input_name */ | | gss_display_name (OM_uint32 * minor_status, | |
| gss_buffer_t, /* output_name_buffer */ | | const gss_name_t input_name, | |
| gss_OID * /* output_name_type */ | | gss_buffer_t output_name_buffer, | |
| ); | | gss_OID * output_name_type); | |
| | | | |
|
| OM_uint32 gss_import_name (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_buffer_t, /* input_name_buffer */ | | gss_import_name (OM_uint32 * minor_status, | |
| const gss_OID, /* input_name_type */ | | const gss_buffer_t input_name_buffer, | |
| gss_name_t * /* output_name */ | | const gss_OID input_name_type, gss_name_t * output_name); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_export_name (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_name_t, /* input_name */ | | gss_export_name (OM_uint32 * minor_status, | |
| gss_buffer_t /* exported_name */ | | const gss_name_t input_name, gss_buffer_t exported_name); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_release_name (OM_uint32 *, /* minor_status */ | | OM_uint32 gss_release_name (OM_uint32 * minor_status, gss_name_t * name); | |
| gss_name_t * /* name */ | | | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_release_buffer (OM_uint32 *, /* minor_status */ | | OM_uint32 gss_release_buffer (OM_uint32 * minor_status, gss_buffer_t buffer | |
| gss_buffer_t /* buffer */ | | ); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_release_oid_set (OM_uint32 *, /* minor_status */ | | OM_uint32 gss_release_oid_set (OM_uint32 * minor_status, gss_OID_set * set) | |
| gss_OID_set * /* set */ | | ; | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_inquire_cred (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_cred_id_t, /* cred_handle */ | | gss_inquire_cred (OM_uint32 * minor_status, | |
| gss_name_t *, /* name */ | | const gss_cred_id_t cred_handle, | |
| OM_uint32 *, /* lifetime */ | | gss_name_t * name, | |
| gss_cred_usage_t *, /* cred_usage */ | | OM_uint32 * lifetime, | |
| gss_OID_set * /* mechanisms */ | | gss_cred_usage_t * cred_usage, gss_OID_set * mechanisms); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_inquire_context (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_ctx_id_t, /* context_handle */ | | gss_inquire_context (OM_uint32 * minor_status, | |
| gss_name_t *, /* src_name */ | | const gss_ctx_id_t context_handle, | |
| gss_name_t *, /* targ_name */ | | gss_name_t * src_name, | |
| OM_uint32 *, /* lifetime_rec */ | | gss_name_t * targ_name, | |
| gss_OID *, /* mech_type */ | | OM_uint32 * lifetime_rec, | |
| OM_uint32 *, /* ctx_flags */ | | gss_OID * mech_type, | |
| int *, /* locally_initiated */ | | OM_uint32 * ctx_flags, | |
| int * /* open */ | | int *locally_initiated, int *open); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_wrap_size_limit (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_ctx_id_t, /* context_handle */ | | gss_wrap_size_limit (OM_uint32 * minor_status, | |
| int, /* conf_req_flag */ | | const gss_ctx_id_t context_handle, | |
| gss_qop_t, /* qop_req */ | | int conf_req_flag, | |
| OM_uint32, /* req_output_size */ | | gss_qop_t qop_req, | |
| OM_uint32 * /* max_input_size */ | | OM_uint32 req_output_size, OM_uint32 * max_input_size); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_add_cred (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_cred_id_t, /* input_cred_handle */ | | gss_add_cred (OM_uint32 * minor_status, | |
| const gss_name_t, /* desired_name */ | | const gss_cred_id_t input_cred_handle, | |
| const gss_OID, /* desired_mech */ | | const gss_name_t desired_name, | |
| gss_cred_usage_t, /* cred_usage */ | | const gss_OID desired_mech, | |
| OM_uint32, /* initiator_time_req */ | | gss_cred_usage_t cred_usage, | |
| OM_uint32, /* acceptor_time_req */ | | OM_uint32 initiator_time_req, | |
| gss_cred_id_t *, /* output_cred_handle */ | | OM_uint32 acceptor_time_req, | |
| gss_OID_set *, /* actual_mechs */ | | gss_cred_id_t * output_cred_handle, | |
| OM_uint32 *, /* initiator_time_rec */ | | gss_OID_set * actual_mechs, | |
| OM_uint32 * /* acceptor_time_rec */ | | OM_uint32 * initiator_time_rec, OM_uint32 * acceptor_time_rec) | |
| ); | | ; | |
| | | | |
|
| OM_uint32 gss_inquire_cred_by_mech (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_cred_id_t, /* cred_hand | | gss_inquire_cred_by_mech (OM_uint32 * minor_status, | |
| le */ | | const gss_cred_id_t cred_handle, | |
| const gss_OID, /* mech_type */ | | const gss_OID mech_type, | |
| gss_name_t *, /* name */ | | gss_name_t * name, | |
| OM_uint32 *, /* initiator_lifetim | | OM_uint32 * initiator_lifetime, | |
| e */ | | OM_uint32 * acceptor_lifetime, | |
| OM_uint32 *, /* acceptor_lifetime | | gss_cred_usage_t * cred_usage); | |
| */ | | | |
| gss_cred_usage_t * /* cred_usage */ | | | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_export_sec_context (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| gss_ctx_id_t *, /* context_handle */ | | gss_export_sec_context (OM_uint32 * minor_status, | |
| gss_buffer_t /* interprocess_token */ | | gss_ctx_id_t * context_handle, | |
| ); | | gss_buffer_t interprocess_token); | |
| | | | |
|
| OM_uint32 gss_import_sec_context (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_buffer_t, /* interprocess_toke | | gss_import_sec_context (OM_uint32 * minor_status, | |
| n */ | | const gss_buffer_t interprocess_token, | |
| gss_ctx_id_t * /* context_handle */ | | gss_ctx_id_t * context_handle); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_create_empty_oid_set (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| gss_OID_set * /* oid_set */ | | gss_create_empty_oid_set (OM_uint32 * minor_status, gss_OID_set * oid_set); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_add_oid_set_member (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_OID, /* member_oid */ | | gss_add_oid_set_member (OM_uint32 * minor_status, | |
| gss_OID_set * /* oid_set */ | | const gss_OID member_oid, gss_OID_set * oid_set); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_test_oid_set_member (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_OID, /* member */ | | gss_test_oid_set_member (OM_uint32 * minor_status, | |
| const gss_OID_set, /* set */ | | const gss_OID member, | |
| int * /* present */ | | const gss_OID_set set, int *present); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_inquire_names_for_mech (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_OID, /* mechanism */ | | gss_inquire_names_for_mech (OM_uint32 * minor_status, | |
| gss_OID_set * /* name_types */ | | const gss_OID mechanism, | |
| ); | | gss_OID_set * name_types); | |
| | | | |
|
| OM_uint32 gss_inquire_mechs_for_name (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_name_t, /* input_name */ | | gss_inquire_mechs_for_name (OM_uint32 * minor_status, | |
| gss_OID_set * /* mech_types */ | | const gss_name_t input_name, | |
| ); | | gss_OID_set * mech_types); | |
| | | | |
|
| OM_uint32 gss_canonicalize_name (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_name_t, /* input_name */ | | gss_canonicalize_name (OM_uint32 * minor_status, | |
| const gss_OID, /* mech_type */ | | const gss_name_t input_name, | |
| gss_name_t * /* output_name */ | | const gss_OID mech_type, gss_name_t * output_name); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_duplicate_name (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| const gss_name_t, /* src_name */ | | gss_duplicate_name (OM_uint32 * minor_status, | |
| gss_name_t * /* dest_name */ | | const gss_name_t src_name, gss_name_t * dest_name); | |
| ); | | | |
| | | | |
| /* | | /* | |
| * The following routines are obsolete variants of gss_get_mic, | | * The following routines are obsolete variants of gss_get_mic, | |
| * gss_verify_mic, gss_wrap and gss_unwrap. They should be | | * gss_verify_mic, gss_wrap and gss_unwrap. They should be | |
| * provided by GSS-API V2 implementations for backwards | | * provided by GSS-API V2 implementations for backwards | |
| * compatibility with V1 applications. Distinct entrypoints | | * compatibility with V1 applications. Distinct entrypoints | |
| * (as opposed to #defines) should be provided, both to allow | | * (as opposed to #defines) should be provided, both to allow | |
| * GSS-API V1 applications to link against GSS-API V2 | | * GSS-API V1 applications to link against GSS-API V2 | |
| implementations, | | implementations, | |
| * and to retain the slight parameter type differences between the | | * and to retain the slight parameter type differences between the | |
| * obsolete versions of these routines and their current forms. | | * obsolete versions of these routines and their current forms. | |
| */ | | */ | |
| | | | |
|
| OM_uint32 gss_sign (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| gss_ctx_id_t, /* context_handle */ | | gss_sign (OM_uint32 * minor_status, | |
| int, /* qop_req */ | | gss_ctx_id_t context_handle, | |
| gss_buffer_t, /* message_buffer */ | | int qop_req, | |
| gss_buffer_t /* message_token */ | | gss_buffer_t message_buffer, gss_buffer_t message_token); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_verify (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| gss_ctx_id_t, /* context_handle */ | | gss_verify (OM_uint32 * minor_status, | |
| gss_buffer_t, /* message_buffer */ | | gss_ctx_id_t context_handle, | |
| gss_buffer_t, /* token_buffer */ | | gss_buffer_t message_buffer, | |
| int * /* qop_state */ | | gss_buffer_t token_buffer, int *qop_state); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_seal (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| gss_ctx_id_t, /* context_handle */ | | gss_seal (OM_uint32 * minor_status, | |
| int, /* conf_req_flag */ | | gss_ctx_id_t context_handle, | |
| int, /* qop_req */ | | int conf_req_flag, | |
| gss_buffer_t, /* input_message_buffer */ | | int qop_req, | |
| int *, /* conf_state */ | | gss_buffer_t input_message_buffer, | |
| gss_buffer_t /* output_message_buffer */ | | int *conf_state, gss_buffer_t output_message_buffer); | |
| ); | | | |
| | | | |
|
| OM_uint32 gss_unseal (OM_uint32 *, /* minor_status */ | | OM_uint32 | |
| gss_ctx_id_t, /* context_handle */ | | gss_unseal (OM_uint32 * minor_status, | |
| gss_buffer_t, /* input_message_buffer */ | | gss_ctx_id_t context_handle, | |
| gss_buffer_t, /* output_message_buffer */ | | gss_buffer_t input_message_buffer, | |
| int *, /* conf_state */ | | gss_buffer_t output_message_buffer, | |
| int * /* qop_state */ | | int *conf_state, int *qop_state); | |
| ); | | | |
| | | | |
| #endif /* GSSAPI_H_ */ | | #endif /* GSSAPI_H_ */ | |
| | | | |
End of changes. 42 change blocks. |
| 251 lines changed or deleted | | 206 lines changed or added | |
|