Path: blob/master/src/java.security.jgss/share/native/libj2gss/gssapi.h
41149 views
/*1* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425/* This is the gssapi.h prologue. */26/* It contains some choice pieces of autoconf.h */27#define GSS_SIZEOF_INT 428#define GSS_SIZEOF_LONG 429#define GSS_SIZEOF_SHORT 23031#ifndef _GSSAPI_H_32#define _GSSAPI_H_3334#if defined(__MACH__) && defined(__APPLE__)35# include <TargetConditionals.h>36# if TARGET_RT_MAC_CFM37# error "Use KfM 4.0 SDK headers for CFM compilation."38# endif39#endif4041#ifdef __cplusplus42extern "C" {43#endif /* __cplusplus */4445// Condition was copied from46// Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/gssapi/gssapi.h47#if TARGET_OS_MAC && (defined(__ppc__) || defined(__ppc64__) || defined(__i386__) || defined(__x86_64__))48# pragma pack(push,2)49#endif5051/*52* First, include stddef.h to get size_t defined.53*/54#include <stddef.h>5556/*57* POSIX says that sys/types.h is where size_t is defined.58*/59#include <sys/types.h>6061struct gss_name_struct;62typedef struct gss_name_struct * gss_name_t;63typedef const struct gss_name_struct *gss_const_name_t;6465struct gss_cred_id_struct;66typedef struct gss_cred_id_struct * gss_cred_id_t;67typedef const struct gss_cred_id_struct *gss_const_cred_id_t;6869struct gss_ctx_id_struct;70typedef struct gss_ctx_id_struct * gss_ctx_id_t;71typedef const struct gss_ctx_id_struct *gss_const_ctx_id_t;7273/*74* The following type must be defined as the smallest natural unsigned integer75* supported by the platform that has at least 32 bits of precision.76*/77#if (GSS_SIZEOF_SHORT == 4)78typedef unsigned short gss_uint32;79typedef short gss_int32;80#elif (GSS_SIZEOF_INT == 4)81typedef unsigned int gss_uint32;82typedef int gss_int32;83#elif (GSS_SIZEOF_LONG == 4)84typedef unsigned long gss_uint32;85typedef long gss_int32;86#endif8788typedef gss_uint32 OM_uint32;8990typedef struct gss_OID_desc_struct {91OM_uint32 length;92void *elements;93} gss_OID_desc, *gss_OID;94typedef const gss_OID_desc * gss_const_OID;9596typedef struct gss_OID_set_desc_struct {97size_t count;98gss_OID elements;99} gss_OID_set_desc, *gss_OID_set;100typedef const gss_OID_set_desc * gss_const_OID_set;101102typedef struct gss_buffer_desc_struct {103size_t length;104void *value;105} gss_buffer_desc, *gss_buffer_t;106typedef const gss_buffer_desc * gss_const_buffer_t;107108typedef struct gss_channel_bindings_struct {109OM_uint32 initiator_addrtype;110gss_buffer_desc initiator_address;111OM_uint32 acceptor_addrtype;112gss_buffer_desc acceptor_address;113gss_buffer_desc application_data;114} *gss_channel_bindings_t;115typedef const struct gss_channel_bindings_struct *gss_const_channel_bindings_t;116117/*118* For now, define a QOP-type as an OM_uint32119*/120typedef OM_uint32 gss_qop_t;121typedef int gss_cred_usage_t;122123/*124* Flag bits for context-level services.125*/126#define GSS_C_DELEG_FLAG 1127#define GSS_C_MUTUAL_FLAG 2128#define GSS_C_REPLAY_FLAG 4129#define GSS_C_SEQUENCE_FLAG 8130#define GSS_C_CONF_FLAG 16131#define GSS_C_INTEG_FLAG 32132#define GSS_C_ANON_FLAG 64133#define GSS_C_PROT_READY_FLAG 128134#define GSS_C_TRANS_FLAG 256135#define GSS_C_DELEG_POLICY_FLAG 32768136137/*138* Credential usage options139*/140#define GSS_C_BOTH 0141#define GSS_C_INITIATE 1142#define GSS_C_ACCEPT 2143144/*145* Status code types for gss_display_status146*/147#define GSS_C_GSS_CODE 1148#define GSS_C_MECH_CODE 2149150/*151* The constant definitions for channel-bindings address families152*/153#define GSS_C_AF_UNSPEC 0154#define GSS_C_AF_LOCAL 1155#define GSS_C_AF_INET 2156#define GSS_C_AF_IMPLINK 3157#define GSS_C_AF_PUP 4158#define GSS_C_AF_CHAOS 5159#define GSS_C_AF_NS 6160#define GSS_C_AF_NBS 7161#define GSS_C_AF_ECMA 8162#define GSS_C_AF_DATAKIT 9163#define GSS_C_AF_CCITT 10164#define GSS_C_AF_SNA 11165#define GSS_C_AF_DECnet 12166#define GSS_C_AF_DLI 13167#define GSS_C_AF_LAT 14168#define GSS_C_AF_HYLINK 15169#define GSS_C_AF_APPLETALK 16170#define GSS_C_AF_BSC 17171#define GSS_C_AF_DSS 18172#define GSS_C_AF_OSI 19173#define GSS_C_AF_X25 21174175#define GSS_C_AF_NULLADDR 255176177/*178* Various Null values.179*/180#define GSS_C_NO_NAME ((gss_name_t) 0)181#define GSS_C_NO_BUFFER ((gss_buffer_t) 0)182#define GSS_C_NO_OID ((gss_OID) 0)183#define GSS_C_NO_OID_SET ((gss_OID_set) 0)184#define GSS_C_NO_CONTEXT ((gss_ctx_id_t) 0)185#define GSS_C_NO_CREDENTIAL ((gss_cred_id_t) 0)186#define GSS_C_NO_CHANNEL_BINDINGS ((gss_channel_bindings_t) 0)187#define GSS_C_EMPTY_BUFFER {0, NULL}188189/*190* Some alternate names for a couple of the above values. These are defined191* for V1 compatibility.192*/193#define GSS_C_NULL_OID GSS_C_NO_OID194#define GSS_C_NULL_OID_SET GSS_C_NO_OID_SET195196/*197* Define the default Quality of Protection for per-message services. Note198* that an implementation that offers multiple levels of QOP may either reserve199* a value (for example zero, as assumed here) to mean "default protection", or200* alternatively may simply equate GSS_C_QOP_DEFAULT to a specific explicit201* QOP value. However a value of 0 should always be interpreted by a GSSAPI202* implementation as a request for the default protection level.203*/204#define GSS_C_QOP_DEFAULT 0205206/*207* Expiration time of 2^32-1 seconds means infinite lifetime for a208* credential or security context209*/210#define GSS_C_INDEFINITE ((OM_uint32) 0xfffffffful)211212213/* Major status codes */214215#define GSS_S_COMPLETE 0216217/*218* Some "helper" definitions to make the status code macros obvious.219*/220#define GSS_C_CALLING_ERROR_OFFSET 24221#define GSS_C_ROUTINE_ERROR_OFFSET 16222#define GSS_C_SUPPLEMENTARY_OFFSET 0223#define GSS_C_CALLING_ERROR_MASK ((OM_uint32) 0377ul)224#define GSS_C_ROUTINE_ERROR_MASK ((OM_uint32) 0377ul)225#define GSS_C_SUPPLEMENTARY_MASK ((OM_uint32) 0177777ul)226227/*228* The macros that test status codes for error conditions. Note that the229* GSS_ERROR() macro has changed slightly from the V1 GSSAPI so that it now230* evaluates its argument only once.231*/232#define GSS_CALLING_ERROR(x) \233((x) & (GSS_C_CALLING_ERROR_MASK << GSS_C_CALLING_ERROR_OFFSET))234#define GSS_ROUTINE_ERROR(x) \235((x) & (GSS_C_ROUTINE_ERROR_MASK << GSS_C_ROUTINE_ERROR_OFFSET))236#define GSS_SUPPLEMENTARY_INFO(x) \237((x) & (GSS_C_SUPPLEMENTARY_MASK << GSS_C_SUPPLEMENTARY_OFFSET))238#define GSS_ERROR(x) \239((x) & ((GSS_C_CALLING_ERROR_MASK << GSS_C_CALLING_ERROR_OFFSET) | \240(GSS_C_ROUTINE_ERROR_MASK << GSS_C_ROUTINE_ERROR_OFFSET)))241242/*243* Now the actual status code definitions244*/245246/*247* Calling errors:248*/249#define GSS_S_CALL_INACCESSIBLE_READ \250(((OM_uint32) 1ul) << GSS_C_CALLING_ERROR_OFFSET)251#define GSS_S_CALL_INACCESSIBLE_WRITE \252(((OM_uint32) 2ul) << GSS_C_CALLING_ERROR_OFFSET)253#define GSS_S_CALL_BAD_STRUCTURE \254(((OM_uint32) 3ul) << GSS_C_CALLING_ERROR_OFFSET)255256/*257* Routine errors:258*/259#define GSS_S_BAD_MECH (((OM_uint32) 1ul) << GSS_C_ROUTINE_ERROR_OFFSET)260#define GSS_S_BAD_NAME (((OM_uint32) 2ul) << GSS_C_ROUTINE_ERROR_OFFSET)261#define GSS_S_BAD_NAMETYPE (((OM_uint32) 3ul) << GSS_C_ROUTINE_ERROR_OFFSET)262#define GSS_S_BAD_BINDINGS (((OM_uint32) 4ul) << GSS_C_ROUTINE_ERROR_OFFSET)263#define GSS_S_BAD_STATUS (((OM_uint32) 5ul) << GSS_C_ROUTINE_ERROR_OFFSET)264#define GSS_S_BAD_SIG (((OM_uint32) 6ul) << GSS_C_ROUTINE_ERROR_OFFSET)265#define GSS_S_NO_CRED (((OM_uint32) 7ul) << GSS_C_ROUTINE_ERROR_OFFSET)266#define GSS_S_NO_CONTEXT (((OM_uint32) 8ul) << GSS_C_ROUTINE_ERROR_OFFSET)267#define GSS_S_DEFECTIVE_TOKEN (((OM_uint32) 9ul) << GSS_C_ROUTINE_ERROR_OFFSET)268#define GSS_S_DEFECTIVE_CREDENTIAL \269(((OM_uint32) 10ul) << GSS_C_ROUTINE_ERROR_OFFSET)270#define GSS_S_CREDENTIALS_EXPIRED \271(((OM_uint32) 11ul) << GSS_C_ROUTINE_ERROR_OFFSET)272#define GSS_S_CONTEXT_EXPIRED \273(((OM_uint32) 12ul) << GSS_C_ROUTINE_ERROR_OFFSET)274#define GSS_S_FAILURE (((OM_uint32) 13ul) << GSS_C_ROUTINE_ERROR_OFFSET)275#define GSS_S_BAD_QOP (((OM_uint32) 14ul) << GSS_C_ROUTINE_ERROR_OFFSET)276#define GSS_S_UNAUTHORIZED (((OM_uint32) 15ul) << GSS_C_ROUTINE_ERROR_OFFSET)277#define GSS_S_UNAVAILABLE (((OM_uint32) 16ul) << GSS_C_ROUTINE_ERROR_OFFSET)278#define GSS_S_DUPLICATE_ELEMENT \279(((OM_uint32) 17ul) << GSS_C_ROUTINE_ERROR_OFFSET)280#define GSS_S_NAME_NOT_MN \281(((OM_uint32) 18ul) << GSS_C_ROUTINE_ERROR_OFFSET)282283/*284* Supplementary info bits:285*/286#define GSS_S_CONTINUE_NEEDED (1 << (GSS_C_SUPPLEMENTARY_OFFSET + 0))287#define GSS_S_DUPLICATE_TOKEN (1 << (GSS_C_SUPPLEMENTARY_OFFSET + 1))288#define GSS_S_OLD_TOKEN (1 << (GSS_C_SUPPLEMENTARY_OFFSET + 2))289#define GSS_S_UNSEQ_TOKEN (1 << (GSS_C_SUPPLEMENTARY_OFFSET + 3))290#define GSS_S_GAP_TOKEN (1 << (GSS_C_SUPPLEMENTARY_OFFSET + 4))291292293/*294* Finally, function prototypes for the GSSAPI routines.295*/296297#if defined (_WIN32) && defined (_MSC_VER)298# ifdef GSS_DLL_FILE299# define GSS_DLLIMP __declspec(dllexport)300# else301# define GSS_DLLIMP __declspec(dllimport)302# endif303#else304# define GSS_DLLIMP305#endif306307/* Reserved static storage for GSS_oids. Comments are quotes from RFC 2744.308*309* The implementation must reserve static storage for a310* gss_OID_desc object containing the value311* {10, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x01"},312* corresponding to an object-identifier value of313* {iso(1) member-body(2) United States(840) mit(113554)314* infosys(1) gssapi(2) generic(1) user_name(1)}. The constant315* GSS_C_NT_USER_NAME should be initialized to point316* to that gss_OID_desc.317*/318GSS_DLLIMP extern gss_OID GSS_C_NT_USER_NAME;319320/*321* The implementation must reserve static storage for a322* gss_OID_desc object containing the value323* {10, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x02"},324* corresponding to an object-identifier value of325* {iso(1) member-body(2) United States(840) mit(113554)326* infosys(1) gssapi(2) generic(1) machine_uid_name(2)}.327* The constant GSS_C_NT_MACHINE_UID_NAME should be328* initialized to point to that gss_OID_desc.329*/330GSS_DLLIMP extern gss_OID GSS_C_NT_MACHINE_UID_NAME;331332/*333* The implementation must reserve static storage for a334* gss_OID_desc object containing the value335* {10, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x03"},336* corresponding to an object-identifier value of337* {iso(1) member-body(2) United States(840) mit(113554)338* infosys(1) gssapi(2) generic(1) string_uid_name(3)}.339* The constant GSS_C_NT_STRING_UID_NAME should be340* initialized to point to that gss_OID_desc.341*/342GSS_DLLIMP extern gss_OID GSS_C_NT_STRING_UID_NAME;343344/*345* The implementation must reserve static storage for a346* gss_OID_desc object containing the value347* {6, (void *)"\x2b\x06\x01\x05\x06\x02"},348* corresponding to an object-identifier value of349* {iso(1) org(3) dod(6) internet(1) security(5)350* nametypes(6) gss-host-based-services(2)). The constant351* GSS_C_NT_HOSTBASED_SERVICE_X should be initialized to point352* to that gss_OID_desc. This is a deprecated OID value, and353* implementations wishing to support hostbased-service names354* should instead use the GSS_C_NT_HOSTBASED_SERVICE OID,355* defined below, to identify such names;356* GSS_C_NT_HOSTBASED_SERVICE_X should be accepted a synonym357* for GSS_C_NT_HOSTBASED_SERVICE when presented as an input358* parameter, but should not be emitted by GSS-API359* implementations360*/361GSS_DLLIMP extern gss_OID GSS_C_NT_HOSTBASED_SERVICE_X;362363/*364* The implementation must reserve static storage for a365* gss_OID_desc object containing the value366* {10, (void *)"\x2a\x86\x48\x86\xf7\x12"367* "\x01\x02\x01\x04"}, corresponding to an368* object-identifier value of {iso(1) member-body(2)369* Unites States(840) mit(113554) infosys(1) gssapi(2)370* generic(1) service_name(4)}. The constant371* GSS_C_NT_HOSTBASED_SERVICE should be initialized372* to point to that gss_OID_desc.373*/374GSS_DLLIMP extern gss_OID GSS_C_NT_HOSTBASED_SERVICE;375376/*377* The implementation must reserve static storage for a378* gss_OID_desc object containing the value379* {6, (void *)"\x2b\x06\01\x05\x06\x03"},380* corresponding to an object identifier value of381* {1(iso), 3(org), 6(dod), 1(internet), 5(security),382* 6(nametypes), 3(gss-anonymous-name)}. The constant383* and GSS_C_NT_ANONYMOUS should be initialized to point384* to that gss_OID_desc.385*/386GSS_DLLIMP extern gss_OID GSS_C_NT_ANONYMOUS;387388389/*390* The implementation must reserve static storage for a391* gss_OID_desc object containing the value392* {6, (void *)"\x2b\x06\x01\x05\x06\x04"},393* corresponding to an object-identifier value of394* {1(iso), 3(org), 6(dod), 1(internet), 5(security),395* 6(nametypes), 4(gss-api-exported-name)}. The constant396* GSS_C_NT_EXPORT_NAME should be initialized to point397* to that gss_OID_desc.398*/399GSS_DLLIMP extern gss_OID GSS_C_NT_EXPORT_NAME;400401402/* Function Prototypes */403404GSS_DLLIMP OM_uint32 gss_acquire_cred(405OM_uint32 *, /* minor_status */406gss_const_name_t, /* desired_name */407OM_uint32, /* time_req */408gss_const_OID_set, /* desired_mechs */409gss_cred_usage_t, /* cred_usage */410gss_cred_id_t *, /* output_cred_handle */411gss_OID_set *, /* actual_mechs */412OM_uint32 * /* time_rec */413);414415GSS_DLLIMP OM_uint32 gss_release_cred(416OM_uint32 *, /* minor_status */417gss_cred_id_t * /* cred_handle */418);419420GSS_DLLIMP OM_uint32 gss_init_sec_context(421OM_uint32 *, /* minor_status */422gss_const_cred_id_t, /* claimant_cred_handle */423gss_ctx_id_t *, /* context_handle */424gss_const_name_t, /* target_name */425gss_const_OID, /* mech_type */426OM_uint32, /* req_flags */427OM_uint32, /* time_req */428gss_const_channel_bindings_t, /* input_chan_bindings */429gss_const_buffer_t, /* input_token */430gss_OID *, /* actual_mech_type */431gss_buffer_t, /* output_token */432OM_uint32 *, /* ret_flags */433OM_uint32 * /* time_rec */434);435436GSS_DLLIMP OM_uint32 gss_accept_sec_context(437OM_uint32 *, /* minor_status */438gss_ctx_id_t *, /* context_handle */439gss_const_cred_id_t, /* acceptor_cred_handle */440gss_const_buffer_t, /* input_token_buffer */441gss_const_channel_bindings_t, /* input_chan_bindings */442gss_name_t *, /* src_name */443gss_OID *, /* mech_type */444gss_buffer_t, /* output_token */445OM_uint32 *, /* ret_flags */446OM_uint32 *, /* time_rec */447gss_cred_id_t * /* delegated_cred_handle */448);449450GSS_DLLIMP OM_uint32 gss_process_context_token(451OM_uint32 *, /* minor_status */452gss_const_ctx_id_t, /* context_handle */453gss_const_buffer_t /* token_buffer */454);455456GSS_DLLIMP OM_uint32 gss_delete_sec_context(457OM_uint32 *, /* minor_status */458gss_ctx_id_t *, /* context_handle */459gss_buffer_t /* output_token */460);461462GSS_DLLIMP OM_uint32 gss_context_time(463OM_uint32 *, /* minor_status */464gss_const_ctx_id_t, /* context_handle */465OM_uint32 * /* time_rec */466);467468/* New for V2 */469GSS_DLLIMP OM_uint32 gss_get_mic(470OM_uint32 *, /* minor_status */471gss_const_ctx_id_t, /* context_handle */472gss_qop_t, /* qop_req */473gss_const_buffer_t, /* message_buffer */474gss_buffer_t /* message_token */475);476477/* New for V2 */478GSS_DLLIMP OM_uint32 gss_verify_mic(479OM_uint32 *, /* minor_status */480gss_const_ctx_id_t, /* context_handle */481gss_const_buffer_t, /* message_buffer */482gss_const_buffer_t, /* message_token */483gss_qop_t * /* qop_state */484);485486/* New for V2 */487GSS_DLLIMP OM_uint32 gss_wrap(488OM_uint32 *, /* minor_status */489gss_const_ctx_id_t, /* context_handle */490int, /* conf_req_flag */491gss_qop_t, /* qop_req */492gss_const_buffer_t, /* input_message_buffer */493int *, /* conf_state */494gss_buffer_t /* output_message_buffer */495);496497/* New for V2 */498GSS_DLLIMP OM_uint32 gss_unwrap(499OM_uint32 *, /* minor_status */500gss_const_ctx_id_t, /* context_handle */501gss_const_buffer_t, /* input_message_buffer */502gss_buffer_t, /* output_message_buffer */503int *, /* conf_state */504gss_qop_t * /* qop_state */505);506507GSS_DLLIMP OM_uint32 gss_display_status(508OM_uint32 *, /* minor_status */509OM_uint32, /* status_value */510int, /* status_type */511gss_const_OID, /* mech_type (used to be const) */512OM_uint32 *, /* message_context */513gss_buffer_t /* status_string */514);515516GSS_DLLIMP OM_uint32 gss_indicate_mechs(517OM_uint32 *, /* minor_status */518gss_OID_set * /* mech_set */519);520521GSS_DLLIMP OM_uint32 gss_compare_name(522OM_uint32 *, /* minor_status */523gss_const_name_t, /* name1 */524gss_const_name_t, /* name2 */525int * /* name_equal */526);527528GSS_DLLIMP OM_uint32 gss_display_name(529OM_uint32 *, /* minor_status */530gss_const_name_t, /* input_name */531gss_buffer_t, /* output_name_buffer */532gss_OID * /* output_name_type */533);534535GSS_DLLIMP OM_uint32 gss_import_name(536OM_uint32 *, /* minor_status */537gss_const_buffer_t, /* input_name_buffer */538gss_const_OID, /* input_name_type(used to be const) */539gss_name_t * /* output_name */540);541542GSS_DLLIMP OM_uint32 gss_release_name(543OM_uint32 *, /* minor_status */544gss_name_t * /* input_name */545);546547GSS_DLLIMP OM_uint32 gss_release_buffer(548OM_uint32 *, /* minor_status */549gss_buffer_t /* buffer */550);551552GSS_DLLIMP OM_uint32 gss_release_oid_set(553OM_uint32 *, /* minor_status */554gss_OID_set * /* set */555);556557GSS_DLLIMP OM_uint32 gss_inquire_cred(558OM_uint32 *, /* minor_status */559gss_const_cred_id_t, /* cred_handle */560gss_name_t *, /* name */561OM_uint32 *, /* lifetime */562gss_cred_usage_t *, /* cred_usage */563gss_OID_set * /* mechanisms */564);565566/* Last argument new for V2 */567GSS_DLLIMP OM_uint32 gss_inquire_context(568OM_uint32 *, /* minor_status */569gss_const_ctx_id_t, /* context_handle */570gss_name_t *, /* src_name */571gss_name_t *, /* targ_name */572OM_uint32 *, /* lifetime_rec */573gss_OID *, /* mech_type */574OM_uint32 *, /* ctx_flags */575int *, /* locally_initiated */576int * /* open */577);578579/* New for V2 */580GSS_DLLIMP OM_uint32 gss_wrap_size_limit(581OM_uint32 *, /* minor_status */582gss_const_ctx_id_t, /* context_handle */583int, /* conf_req_flag */584gss_qop_t, /* qop_req */585OM_uint32, /* req_output_size */586OM_uint32 * /* max_input_size */587);588589/* New for V2 */590GSS_DLLIMP OM_uint32 gss_add_cred(591OM_uint32 *, /* minor_status */592gss_const_cred_id_t, /* input_cred_handle */593gss_const_name_t, /* desired_name */594gss_const_OID, /* desired_mech */595gss_cred_usage_t, /* cred_usage */596OM_uint32, /* initiator_time_req */597OM_uint32, /* acceptor_time_req */598gss_cred_id_t *, /* output_cred_handle */599gss_OID_set *, /* actual_mechs */600OM_uint32 *, /* initiator_time_rec */601OM_uint32 * /* acceptor_time_rec */602);603604/* New for V2 */605GSS_DLLIMP OM_uint32 gss_inquire_cred_by_mech(606OM_uint32 *, /* minor_status */607gss_const_cred_id_t, /* cred_handle */608gss_const_OID, /* mech_type */609gss_name_t *, /* name */610OM_uint32 *, /* initiator_lifetime */611OM_uint32 *, /* acceptor_lifetime */612gss_cred_usage_t * /* cred_usage */613);614615/* New for V2 */616GSS_DLLIMP OM_uint32 gss_export_sec_context(617OM_uint32 *, /* minor_status */618gss_ctx_id_t *, /* context_handle */619gss_buffer_t /* interprocess_token */620);621622/* New for V2 */623GSS_DLLIMP OM_uint32 gss_import_sec_context(624OM_uint32 *, /* minor_status */625gss_const_buffer_t, /* interprocess_token */626gss_ctx_id_t * /* context_handle */627);628629/* New for V2 */630GSS_DLLIMP OM_uint32 gss_release_oid(631OM_uint32 *, /* minor_status */632gss_OID * /* oid */633);634635/* New for V2 */636GSS_DLLIMP OM_uint32 gss_create_empty_oid_set(637OM_uint32 *, /* minor_status */638gss_OID_set * /* oid_set */639);640641/* New for V2 */642GSS_DLLIMP OM_uint32 gss_add_oid_set_member(643OM_uint32 *, /* minor_status */644gss_const_OID, /* member_oid */645gss_OID_set * /* oid_set */646);647648/* New for V2 */649GSS_DLLIMP OM_uint32 gss_test_oid_set_member(650OM_uint32 *, /* minor_status */651gss_const_OID, /* member */652gss_const_OID_set, /* set */653int * /* present */654);655656/* New for V2 */657GSS_DLLIMP OM_uint32 gss_str_to_oid(658OM_uint32 *, /* minor_status */659gss_const_buffer_t, /* oid_str */660gss_OID * /* oid */661);662663/* New for V2 */664GSS_DLLIMP OM_uint32 gss_oid_to_str(665OM_uint32 *, /* minor_status */666gss_OID, /* oid */667gss_buffer_t /* oid_str */668);669670/* New for V2 */671GSS_DLLIMP OM_uint32 gss_inquire_names_for_mech(672OM_uint32 *, /* minor_status */673gss_const_OID, /* mechanism */674gss_OID_set * /* name_types */675);676677/* New for V2 */678GSS_DLLIMP OM_uint32 gss_export_name(679OM_uint32 *, /* minor_status */680gss_const_name_t, /* input_name */681gss_buffer_t /* exported_name */682);683684/* New for V2 */685GSS_DLLIMP OM_uint32 gss_duplicate_name(686OM_uint32 *, /* minor_status */687gss_const_name_t, /* input_name */688gss_name_t * /* dest_name */689);690691/* New for V2 */692GSS_DLLIMP OM_uint32 gss_canonicalize_name(693OM_uint32 *, /* minor_status */694gss_const_name_t, /* input_name */695gss_const_OID, /* mech_type */696gss_name_t * /* output_name */697);698699#if TARGET_OS_MAC && (defined(__ppc__) || defined(__ppc64__) || defined(__i386__) || defined(__x86_64__))700# pragma pack(pop)701#endif702703#ifdef __cplusplus704}705#endif706707#endif /* _GSSAPI_H_ */708709710