0N/A/*
2362N/A * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/A/* This is the gssapi.h prologue. */
0N/A/* It contains some choice pieces of autoconf.h */
0N/A#define GSS_SIZEOF_INT 4
0N/A#define GSS_SIZEOF_LONG 4
0N/A#define GSS_SIZEOF_SHORT 2
0N/A
0N/A#ifndef _GSSAPI_H_
0N/A#define _GSSAPI_H_
0N/A
0N/A#ifdef __cplusplus
0N/Aextern "C" {
0N/A#endif /* __cplusplus */
0N/A
0N/A/*
0N/A * First, include stddef.h to get size_t defined.
0N/A */
0N/A#include <stddef.h>
0N/A
0N/A/*
0N/A * POSIX says that sys/types.h is where size_t is defined.
0N/A */
0N/A#include <sys/types.h>
0N/A
0N/Atypedef void * gss_name_t;
0N/Atypedef void * gss_cred_id_t;
0N/Atypedef void * gss_ctx_id_t;
0N/A
0N/A/*
0N/A * The following type must be defined as the smallest natural unsigned integer
0N/A * supported by the platform that has at least 32 bits of precision.
0N/A */
0N/A#if (GSS_SIZEOF_SHORT == 4)
0N/Atypedef unsigned short gss_uint32;
0N/Atypedef short gss_int32;
0N/A#elif (GSS_SIZEOF_INT == 4)
0N/Atypedef unsigned int gss_uint32;
0N/Atypedef int gss_int32;
0N/A#elif (GSS_SIZEOF_LONG == 4)
0N/Atypedef unsigned long gss_uint32;
0N/Atypedef long gss_int32;
0N/A#endif
0N/A
0N/Atypedef gss_uint32 OM_uint32;
0N/A
0N/Atypedef struct gss_OID_desc_struct {
0N/A OM_uint32 length;
0N/A void *elements;
0N/A} gss_OID_desc, *gss_OID;
0N/A
0N/Atypedef struct gss_OID_set_desc_struct {
0N/A size_t count;
0N/A gss_OID elements;
0N/A} gss_OID_set_desc, *gss_OID_set;
0N/A
0N/Atypedef struct gss_buffer_desc_struct {
0N/A size_t length;
0N/A void *value;
0N/A} gss_buffer_desc, *gss_buffer_t;
0N/A
0N/Atypedef struct gss_channel_bindings_struct {
0N/A OM_uint32 initiator_addrtype;
0N/A gss_buffer_desc initiator_address;
0N/A OM_uint32 acceptor_addrtype;
0N/A gss_buffer_desc acceptor_address;
0N/A gss_buffer_desc application_data;
0N/A} *gss_channel_bindings_t;
0N/A
0N/A/*
0N/A * For now, define a QOP-type as an OM_uint32
0N/A */
0N/Atypedef OM_uint32 gss_qop_t;
0N/Atypedef int gss_cred_usage_t;
0N/A
0N/A/*
0N/A * Flag bits for context-level services.
0N/A */
0N/A#define GSS_C_DELEG_FLAG 1
0N/A#define GSS_C_MUTUAL_FLAG 2
0N/A#define GSS_C_REPLAY_FLAG 4
0N/A#define GSS_C_SEQUENCE_FLAG 8
0N/A#define GSS_C_CONF_FLAG 16
0N/A#define GSS_C_INTEG_FLAG 32
0N/A#define GSS_C_ANON_FLAG 64
0N/A#define GSS_C_PROT_READY_FLAG 128
0N/A#define GSS_C_TRANS_FLAG 256
0N/A
0N/A/*
0N/A * Credential usage options
0N/A */
0N/A#define GSS_C_BOTH 0
0N/A#define GSS_C_INITIATE 1
0N/A#define GSS_C_ACCEPT 2
0N/A
0N/A/*
0N/A * Status code types for gss_display_status
0N/A */
0N/A#define GSS_C_GSS_CODE 1
0N/A#define GSS_C_MECH_CODE 2
0N/A
0N/A/*
0N/A * The constant definitions for channel-bindings address families
0N/A */
0N/A#define GSS_C_AF_UNSPEC 0
0N/A#define GSS_C_AF_LOCAL 1
0N/A#define GSS_C_AF_INET 2
0N/A#define GSS_C_AF_IMPLINK 3
0N/A#define GSS_C_AF_PUP 4
0N/A#define GSS_C_AF_CHAOS 5
0N/A#define GSS_C_AF_NS 6
0N/A#define GSS_C_AF_NBS 7
0N/A#define GSS_C_AF_ECMA 8
0N/A#define GSS_C_AF_DATAKIT 9
0N/A#define GSS_C_AF_CCITT 10
0N/A#define GSS_C_AF_SNA 11
0N/A#define GSS_C_AF_DECnet 12
0N/A#define GSS_C_AF_DLI 13
0N/A#define GSS_C_AF_LAT 14
0N/A#define GSS_C_AF_HYLINK 15
0N/A#define GSS_C_AF_APPLETALK 16
0N/A#define GSS_C_AF_BSC 17
0N/A#define GSS_C_AF_DSS 18
0N/A#define GSS_C_AF_OSI 19
0N/A#define GSS_C_AF_X25 21
0N/A
0N/A#define GSS_C_AF_NULLADDR 255
0N/A
0N/A/*
0N/A * Various Null values.
0N/A */
0N/A#define GSS_C_NO_NAME ((gss_name_t) 0)
0N/A#define GSS_C_NO_BUFFER ((gss_buffer_t) 0)
0N/A#define GSS_C_NO_OID ((gss_OID) 0)
0N/A#define GSS_C_NO_OID_SET ((gss_OID_set) 0)
0N/A#define GSS_C_NO_CONTEXT ((gss_ctx_id_t) 0)
0N/A#define GSS_C_NO_CREDENTIAL ((gss_cred_id_t) 0)
0N/A#define GSS_C_NO_CHANNEL_BINDINGS ((gss_channel_bindings_t) 0)
0N/A#define GSS_C_EMPTY_BUFFER {0, NULL}
0N/A
0N/A/*
0N/A * Some alternate names for a couple of the above values. These are defined
0N/A * for V1 compatibility.
0N/A */
0N/A#define GSS_C_NULL_OID GSS_C_NO_OID
0N/A#define GSS_C_NULL_OID_SET GSS_C_NO_OID_SET
0N/A
0N/A/*
0N/A * Define the default Quality of Protection for per-message services. Note
0N/A * that an implementation that offers multiple levels of QOP may either reserve
0N/A * a value (for example zero, as assumed here) to mean "default protection", or
0N/A * alternatively may simply equate GSS_C_QOP_DEFAULT to a specific explicit
0N/A * QOP value. However a value of 0 should always be interpreted by a GSSAPI
0N/A * implementation as a request for the default protection level.
0N/A */
0N/A#define GSS_C_QOP_DEFAULT 0
0N/A
0N/A/*
0N/A * Expiration time of 2^32-1 seconds means infinite lifetime for a
0N/A * credential or security context
0N/A */
0N/A#define GSS_C_INDEFINITE ((OM_uint32) 0xfffffffful)
0N/A
0N/A
0N/A/* Major status codes */
0N/A
0N/A#define GSS_S_COMPLETE 0
0N/A
0N/A/*
0N/A * Some "helper" definitions to make the status code macros obvious.
0N/A */
0N/A#define GSS_C_CALLING_ERROR_OFFSET 24
0N/A#define GSS_C_ROUTINE_ERROR_OFFSET 16
0N/A#define GSS_C_SUPPLEMENTARY_OFFSET 0
0N/A#define GSS_C_CALLING_ERROR_MASK ((OM_uint32) 0377ul)
0N/A#define GSS_C_ROUTINE_ERROR_MASK ((OM_uint32) 0377ul)
0N/A#define GSS_C_SUPPLEMENTARY_MASK ((OM_uint32) 0177777ul)
0N/A
0N/A/*
0N/A * The macros that test status codes for error conditions. Note that the
0N/A * GSS_ERROR() macro has changed slightly from the V1 GSSAPI so that it now
0N/A * evaluates its argument only once.
0N/A */
0N/A#define GSS_CALLING_ERROR(x) \
0N/A ((x) & (GSS_C_CALLING_ERROR_MASK << GSS_C_CALLING_ERROR_OFFSET))
0N/A#define GSS_ROUTINE_ERROR(x) \
0N/A ((x) & (GSS_C_ROUTINE_ERROR_MASK << GSS_C_ROUTINE_ERROR_OFFSET))
0N/A#define GSS_SUPPLEMENTARY_INFO(x) \
0N/A ((x) & (GSS_C_SUPPLEMENTARY_MASK << GSS_C_SUPPLEMENTARY_OFFSET))
0N/A#define GSS_ERROR(x) \
0N/A ((x) & ((GSS_C_CALLING_ERROR_MASK << GSS_C_CALLING_ERROR_OFFSET) | \
0N/A (GSS_C_ROUTINE_ERROR_MASK << GSS_C_ROUTINE_ERROR_OFFSET)))
0N/A
0N/A/*
0N/A * Now the actual status code definitions
0N/A */
0N/A
0N/A/*
0N/A * Calling errors:
0N/A */
0N/A#define GSS_S_CALL_INACCESSIBLE_READ \
0N/A (((OM_uint32) 1ul) << GSS_C_CALLING_ERROR_OFFSET)
0N/A#define GSS_S_CALL_INACCESSIBLE_WRITE \
0N/A (((OM_uint32) 2ul) << GSS_C_CALLING_ERROR_OFFSET)
0N/A#define GSS_S_CALL_BAD_STRUCTURE \
0N/A (((OM_uint32) 3ul) << GSS_C_CALLING_ERROR_OFFSET)
0N/A
0N/A/*
0N/A * Routine errors:
0N/A */
0N/A#define GSS_S_BAD_MECH (((OM_uint32) 1ul) << GSS_C_ROUTINE_ERROR_OFFSET)
0N/A#define GSS_S_BAD_NAME (((OM_uint32) 2ul) << GSS_C_ROUTINE_ERROR_OFFSET)
0N/A#define GSS_S_BAD_NAMETYPE (((OM_uint32) 3ul) << GSS_C_ROUTINE_ERROR_OFFSET)
0N/A#define GSS_S_BAD_BINDINGS (((OM_uint32) 4ul) << GSS_C_ROUTINE_ERROR_OFFSET)
0N/A#define GSS_S_BAD_STATUS (((OM_uint32) 5ul) << GSS_C_ROUTINE_ERROR_OFFSET)
0N/A#define GSS_S_BAD_SIG (((OM_uint32) 6ul) << GSS_C_ROUTINE_ERROR_OFFSET)
0N/A#define GSS_S_NO_CRED (((OM_uint32) 7ul) << GSS_C_ROUTINE_ERROR_OFFSET)
0N/A#define GSS_S_NO_CONTEXT (((OM_uint32) 8ul) << GSS_C_ROUTINE_ERROR_OFFSET)
0N/A#define GSS_S_DEFECTIVE_TOKEN (((OM_uint32) 9ul) << GSS_C_ROUTINE_ERROR_OFFSET)
0N/A#define GSS_S_DEFECTIVE_CREDENTIAL \
0N/A (((OM_uint32) 10ul) << GSS_C_ROUTINE_ERROR_OFFSET)
0N/A#define GSS_S_CREDENTIALS_EXPIRED \
0N/A (((OM_uint32) 11ul) << GSS_C_ROUTINE_ERROR_OFFSET)
0N/A#define GSS_S_CONTEXT_EXPIRED \
0N/A (((OM_uint32) 12ul) << GSS_C_ROUTINE_ERROR_OFFSET)
0N/A#define GSS_S_FAILURE (((OM_uint32) 13ul) << GSS_C_ROUTINE_ERROR_OFFSET)
0N/A#define GSS_S_BAD_QOP (((OM_uint32) 14ul) << GSS_C_ROUTINE_ERROR_OFFSET)
0N/A#define GSS_S_UNAUTHORIZED (((OM_uint32) 15ul) << GSS_C_ROUTINE_ERROR_OFFSET)
0N/A#define GSS_S_UNAVAILABLE (((OM_uint32) 16ul) << GSS_C_ROUTINE_ERROR_OFFSET)
0N/A#define GSS_S_DUPLICATE_ELEMENT \
0N/A (((OM_uint32) 17ul) << GSS_C_ROUTINE_ERROR_OFFSET)
0N/A#define GSS_S_NAME_NOT_MN \
0N/A (((OM_uint32) 18ul) << GSS_C_ROUTINE_ERROR_OFFSET)
0N/A
0N/A/*
0N/A * Supplementary info bits:
0N/A */
0N/A#define GSS_S_CONTINUE_NEEDED (1 << (GSS_C_SUPPLEMENTARY_OFFSET + 0))
0N/A#define GSS_S_DUPLICATE_TOKEN (1 << (GSS_C_SUPPLEMENTARY_OFFSET + 1))
0N/A#define GSS_S_OLD_TOKEN (1 << (GSS_C_SUPPLEMENTARY_OFFSET + 2))
0N/A#define GSS_S_UNSEQ_TOKEN (1 << (GSS_C_SUPPLEMENTARY_OFFSET + 3))
0N/A#define GSS_S_GAP_TOKEN (1 << (GSS_C_SUPPLEMENTARY_OFFSET + 4))
0N/A
0N/A
0N/A/*
0N/A * Finally, function prototypes for the GSSAPI routines.
0N/A */
0N/A
0N/A#if defined (_WIN32) && defined (_MSC_VER)
0N/A# ifdef GSS_DLL_FILE
0N/A# define GSS_DLLIMP __declspec(dllexport)
0N/A# else
0N/A# define GSS_DLLIMP __declspec(dllimport)
0N/A# endif
0N/A#else
0N/A# define GSS_DLLIMP
0N/A#endif
0N/A
0N/A/* Reserved static storage for GSS_oids. Comments are quotes from RFC 2744.
0N/A *
0N/A * The implementation must reserve static storage for a
0N/A * gss_OID_desc object containing the value
0N/A * {10, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x01"},
0N/A * corresponding to an object-identifier value of
0N/A * {iso(1) member-body(2) United States(840) mit(113554)
0N/A * infosys(1) gssapi(2) generic(1) user_name(1)}. The constant
0N/A * GSS_C_NT_USER_NAME should be initialized to point
0N/A * to that gss_OID_desc.
0N/A */
0N/AGSS_DLLIMP extern gss_OID GSS_C_NT_USER_NAME;
0N/A
0N/A/*
0N/A * The implementation must reserve static storage for a
0N/A * gss_OID_desc object containing the value
0N/A * {10, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x02"},
0N/A * corresponding to an object-identifier value of
0N/A * {iso(1) member-body(2) United States(840) mit(113554)
0N/A * infosys(1) gssapi(2) generic(1) machine_uid_name(2)}.
0N/A * The constant GSS_C_NT_MACHINE_UID_NAME should be
0N/A * initialized to point to that gss_OID_desc.
0N/A */
0N/AGSS_DLLIMP extern gss_OID GSS_C_NT_MACHINE_UID_NAME;
0N/A
0N/A/*
0N/A * The implementation must reserve static storage for a
0N/A * gss_OID_desc object containing the value
0N/A * {10, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x03"},
0N/A * corresponding to an object-identifier value of
0N/A * {iso(1) member-body(2) United States(840) mit(113554)
0N/A * infosys(1) gssapi(2) generic(1) string_uid_name(3)}.
0N/A * The constant GSS_C_NT_STRING_UID_NAME should be
0N/A * initialized to point to that gss_OID_desc.
0N/A */
0N/AGSS_DLLIMP extern gss_OID GSS_C_NT_STRING_UID_NAME;
0N/A
0N/A/*
0N/A * The implementation must reserve static storage for a
0N/A * gss_OID_desc object containing the value
0N/A * {6, (void *)"\x2b\x06\x01\x05\x06\x02"},
0N/A * corresponding to an object-identifier value of
0N/A * {iso(1) org(3) dod(6) internet(1) security(5)
0N/A * nametypes(6) gss-host-based-services(2)). The constant
0N/A * GSS_C_NT_HOSTBASED_SERVICE_X should be initialized to point
0N/A * to that gss_OID_desc. This is a deprecated OID value, and
0N/A * implementations wishing to support hostbased-service names
0N/A * should instead use the GSS_C_NT_HOSTBASED_SERVICE OID,
0N/A * defined below, to identify such names;
0N/A * GSS_C_NT_HOSTBASED_SERVICE_X should be accepted a synonym
0N/A * for GSS_C_NT_HOSTBASED_SERVICE when presented as an input
0N/A * parameter, but should not be emitted by GSS-API
0N/A * implementations
0N/A */
0N/AGSS_DLLIMP extern gss_OID GSS_C_NT_HOSTBASED_SERVICE_X;
0N/A
0N/A/*
0N/A * The implementation must reserve static storage for a
0N/A * gss_OID_desc object containing the value
0N/A * {10, (void *)"\x2a\x86\x48\x86\xf7\x12"
0N/A * "\x01\x02\x01\x04"}, corresponding to an
0N/A * object-identifier value of {iso(1) member-body(2)
0N/A * Unites States(840) mit(113554) infosys(1) gssapi(2)
0N/A * generic(1) service_name(4)}. The constant
0N/A * GSS_C_NT_HOSTBASED_SERVICE should be initialized
0N/A * to point to that gss_OID_desc.
0N/A */
0N/AGSS_DLLIMP extern gss_OID GSS_C_NT_HOSTBASED_SERVICE;
0N/A
0N/A/*
0N/A * The implementation must reserve static storage for a
0N/A * gss_OID_desc object containing the value
0N/A * {6, (void *)"\x2b\x06\01\x05\x06\x03"},
0N/A * corresponding to an object identifier value of
0N/A * {1(iso), 3(org), 6(dod), 1(internet), 5(security),
0N/A * 6(nametypes), 3(gss-anonymous-name)}. The constant
0N/A * and GSS_C_NT_ANONYMOUS should be initialized to point
0N/A * to that gss_OID_desc.
0N/A */
0N/AGSS_DLLIMP extern gss_OID GSS_C_NT_ANONYMOUS;
0N/A
0N/A
0N/A/*
0N/A * The implementation must reserve static storage for a
0N/A * gss_OID_desc object containing the value
0N/A * {6, (void *)"\x2b\x06\x01\x05\x06\x04"},
0N/A * corresponding to an object-identifier value of
0N/A * {1(iso), 3(org), 6(dod), 1(internet), 5(security),
0N/A * 6(nametypes), 4(gss-api-exported-name)}. The constant
0N/A * GSS_C_NT_EXPORT_NAME should be initialized to point
0N/A * to that gss_OID_desc.
0N/A */
0N/AGSS_DLLIMP extern gss_OID GSS_C_NT_EXPORT_NAME;
0N/A
0N/A
0N/A/* Function Prototypes */
0N/A
0N/AOM_uint32 gss_acquire_cred(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_name_t, /* desired_name */
0N/A OM_uint32, /* time_req */
0N/A gss_OID_set, /* desired_mechs */
0N/A gss_cred_usage_t, /* cred_usage */
0N/A gss_cred_id_t *, /* output_cred_handle */
0N/A gss_OID_set *, /* actual_mechs */
0N/A OM_uint32 * /* time_rec */
0N/A);
0N/A
0N/AOM_uint32 gss_release_cred(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_cred_id_t * /* cred_handle */
0N/A);
0N/A
0N/AOM_uint32 gss_init_sec_context(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_cred_id_t, /* claimant_cred_handle */
0N/A gss_ctx_id_t *, /* context_handle */
0N/A gss_name_t, /* target_name */
0N/A gss_OID, /* mech_type (used to be const) */
0N/A OM_uint32, /* req_flags */
0N/A OM_uint32, /* time_req */
0N/A gss_channel_bindings_t, /* input_chan_bindings */
0N/A gss_buffer_t, /* input_token */
0N/A gss_OID *, /* actual_mech_type */
0N/A gss_buffer_t, /* output_token */
0N/A OM_uint32 *, /* ret_flags */
0N/A OM_uint32 * /* time_rec */
0N/A);
0N/A
0N/AOM_uint32 gss_accept_sec_context(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_ctx_id_t *, /* context_handle */
0N/A gss_cred_id_t, /* acceptor_cred_handle */
0N/A gss_buffer_t, /* input_token_buffer */
0N/A gss_channel_bindings_t, /* input_chan_bindings */
0N/A gss_name_t *, /* src_name */
0N/A gss_OID *, /* mech_type */
0N/A gss_buffer_t, /* output_token */
0N/A OM_uint32 *, /* ret_flags */
0N/A OM_uint32 *, /* time_rec */
0N/A gss_cred_id_t * /* delegated_cred_handle */
0N/A);
0N/A
0N/AOM_uint32 gss_process_context_token(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_ctx_id_t, /* context_handle */
0N/A gss_buffer_t /* token_buffer */
0N/A);
0N/A
0N/AOM_uint32 gss_delete_sec_context(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_ctx_id_t *, /* context_handle */
0N/A gss_buffer_t /* output_token */
0N/A);
0N/A
0N/AOM_uint32 gss_context_time(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_ctx_id_t, /* context_handle */
0N/A OM_uint32 * /* time_rec */
0N/A);
0N/A
0N/A/* New for V2 */
0N/AOM_uint32 gss_get_mic(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_ctx_id_t, /* context_handle */
0N/A gss_qop_t, /* qop_req */
0N/A gss_buffer_t, /* message_buffer */
0N/A gss_buffer_t /* message_token */
0N/A);
0N/A
0N/A/* New for V2 */
0N/AOM_uint32 gss_verify_mic(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_ctx_id_t, /* context_handle */
0N/A gss_buffer_t, /* message_buffer */
0N/A gss_buffer_t, /* message_token */
0N/A gss_qop_t * /* qop_state */
0N/A);
0N/A
0N/A/* New for V2 */
0N/AOM_uint32 gss_wrap(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_ctx_id_t, /* context_handle */
0N/A int, /* conf_req_flag */
0N/A gss_qop_t, /* qop_req */
0N/A gss_buffer_t, /* input_message_buffer */
0N/A int *, /* conf_state */
0N/A gss_buffer_t /* output_message_buffer */
0N/A);
0N/A
0N/A/* New for V2 */
0N/AOM_uint32 gss_unwrap(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_ctx_id_t, /* context_handle */
0N/A gss_buffer_t, /* input_message_buffer */
0N/A gss_buffer_t, /* output_message_buffer */
0N/A int *, /* conf_state */
0N/A gss_qop_t * /* qop_state */
0N/A);
0N/A
0N/AOM_uint32 gss_display_status(
0N/A OM_uint32 *, /* minor_status */
0N/A OM_uint32, /* status_value */
0N/A int, /* status_type */
0N/A gss_OID, /* mech_type (used to be const) */
0N/A OM_uint32 *, /* message_context */
0N/A gss_buffer_t /* status_string */
0N/A);
0N/A
0N/AOM_uint32 gss_indicate_mechs(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_OID_set * /* mech_set */
0N/A);
0N/A
0N/AOM_uint32 gss_compare_name(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_name_t, /* name1 */
0N/A gss_name_t, /* name2 */
0N/A int * /* name_equal */
0N/A);
0N/A
0N/AOM_uint32 gss_display_name(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_name_t, /* input_name */
0N/A gss_buffer_t, /* output_name_buffer */
0N/A gss_OID * /* output_name_type */
0N/A);
0N/A
0N/AOM_uint32 gss_import_name(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_buffer_t, /* input_name_buffer */
0N/A gss_OID, /* input_name_type(used to be const) */
0N/A gss_name_t * /* output_name */
0N/A);
0N/A
0N/AOM_uint32 gss_release_name(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_name_t * /* input_name */
0N/A);
0N/A
0N/AOM_uint32 gss_release_buffer(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_buffer_t /* buffer */
0N/A);
0N/A
0N/AOM_uint32 gss_release_oid_set(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_OID_set * /* set */
0N/A);
0N/A
0N/AOM_uint32 gss_inquire_cred(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_cred_id_t, /* cred_handle */
0N/A gss_name_t *, /* name */
0N/A OM_uint32 *, /* lifetime */
0N/A gss_cred_usage_t *, /* cred_usage */
0N/A gss_OID_set * /* mechanisms */
0N/A);
0N/A
0N/A/* Last argument new for V2 */
0N/AOM_uint32 gss_inquire_context(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_ctx_id_t, /* context_handle */
0N/A gss_name_t *, /* src_name */
0N/A gss_name_t *, /* targ_name */
0N/A OM_uint32 *, /* lifetime_rec */
0N/A gss_OID *, /* mech_type */
0N/A OM_uint32 *, /* ctx_flags */
0N/A int *, /* locally_initiated */
0N/A int * /* open */
0N/A);
0N/A
0N/A/* New for V2 */
0N/AOM_uint32 gss_wrap_size_limit(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_ctx_id_t, /* context_handle */
0N/A int, /* conf_req_flag */
0N/A gss_qop_t, /* qop_req */
0N/A OM_uint32, /* req_output_size */
0N/A OM_uint32 * /* max_input_size */
0N/A);
0N/A
0N/A/* New for V2 */
0N/AOM_uint32 gss_add_cred(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_cred_id_t, /* input_cred_handle */
0N/A gss_name_t, /* desired_name */
0N/A gss_OID, /* desired_mech */
0N/A gss_cred_usage_t, /* cred_usage */
0N/A OM_uint32, /* initiator_time_req */
0N/A OM_uint32, /* acceptor_time_req */
0N/A gss_cred_id_t *, /* output_cred_handle */
0N/A gss_OID_set *, /* actual_mechs */
0N/A OM_uint32 *, /* initiator_time_rec */
0N/A OM_uint32 * /* acceptor_time_rec */
0N/A);
0N/A
0N/A/* New for V2 */
0N/AOM_uint32 gss_inquire_cred_by_mech(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_cred_id_t, /* cred_handle */
0N/A gss_OID, /* mech_type */
0N/A gss_name_t *, /* name */
0N/A OM_uint32 *, /* initiator_lifetime */
0N/A OM_uint32 *, /* acceptor_lifetime */
0N/A gss_cred_usage_t * /* cred_usage */
0N/A);
0N/A
0N/A/* New for V2 */
0N/AOM_uint32 gss_export_sec_context(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_ctx_id_t *, /* context_handle */
0N/A gss_buffer_t /* interprocess_token */
0N/A);
0N/A
0N/A/* New for V2 */
0N/AOM_uint32 gss_import_sec_context(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_buffer_t, /* interprocess_token */
0N/A gss_ctx_id_t * /* context_handle */
0N/A);
0N/A
0N/A/* New for V2 */
0N/AOM_uint32 gss_release_oid(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_OID * /* oid */
0N/A);
0N/A
0N/A/* New for V2 */
0N/AOM_uint32 gss_create_empty_oid_set(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_OID_set * /* oid_set */
0N/A);
0N/A
0N/A/* New for V2 */
0N/AOM_uint32 gss_add_oid_set_member(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_OID, /* member_oid */
0N/A gss_OID_set * /* oid_set */
0N/A);
0N/A
0N/A/* New for V2 */
0N/AOM_uint32 gss_test_oid_set_member(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_OID, /* member */
0N/A gss_OID_set, /* set */
0N/A int * /* present */
0N/A);
0N/A
0N/A/* New for V2 */
0N/AOM_uint32 gss_str_to_oid(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_buffer_t, /* oid_str */
0N/A gss_OID * /* oid */
0N/A);
0N/A
0N/A/* New for V2 */
0N/AOM_uint32 gss_oid_to_str(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_OID, /* oid */
0N/A gss_buffer_t /* oid_str */
0N/A);
0N/A
0N/A/* New for V2 */
0N/AOM_uint32 gss_inquire_names_for_mech(
0N/A OM_uint32 *, /* minor_status */
0N/A gss_OID, /* mechanism */
0N/A gss_OID_set * /* name_types */
0N/A);
0N/A
0N/A/* New for V2 */
0N/AOM_uint32 gss_export_name(
0N/A OM_uint32 *, /* minor_status */
0N/A const gss_name_t, /* input_name */
0N/A gss_buffer_t /* exported_name */
0N/A);
0N/A
0N/A/* New for V2 */
0N/AOM_uint32 gss_duplicate_name(
0N/A OM_uint32 *, /* minor_status */
0N/A const gss_name_t, /* input_name */
0N/A gss_name_t * /* dest_name */
0N/A);
0N/A
0N/A/* New for V2 */
0N/AOM_uint32 gss_canonicalize_name(
0N/A OM_uint32 *, /* minor_status */
0N/A const gss_name_t, /* input_name */
0N/A const gss_OID, /* mech_type */
0N/A gss_name_t * /* output_name */
0N/A);
0N/A
0N/A#ifdef __cplusplus
0N/A}
0N/A#endif
0N/A
0N/A#endif /* _GSSAPI_H_ */