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 * 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 * 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 * 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. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A#
endif /* __cplusplus */ 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 * For now, define a QOP-type as an OM_uint32 0N/A * Flag bits for context-level services. 0N/A * Credential usage options 0N/A * Status code types for gss_display_status 0N/A * The constant definitions for channel-bindings address families 0N/A * Various Null values. 0N/A * Some alternate names for a couple of the above values. These are defined 0N/A * for V1 compatibility. 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 * Expiration time of 2^32-1 seconds means infinite lifetime for a 0N/A * credential or security context 0N/A/* Major status codes */ 0N/A * Some "helper" definitions to make the status code macros obvious. 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 * Now the actual status code definitions 0N/A * Supplementary info bits: 0N/A * Finally, function prototypes for the GSSAPI routines. 0N/A/* Reserved static storage for GSS_oids. Comments are quotes from RFC 2744. 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 * 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 * 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 * 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 * 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 * 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 * 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/* Function Prototypes */ 0N/A int,
/* conf_req_flag */ 0N/A int *,
/* conf_state */ 0N/A int *,
/* conf_state */ 0N/A int,
/* status_type */ 0N/A int *
/* name_equal */ 0N/A/* Last argument new for V2 */ 0N/A int *,
/* locally_initiated */ 0N/A int,
/* conf_req_flag */ 0N/A#
endif /* _GSSAPI_H_ */