2 * Copyright (c) 1997, 1998, 1999 Kungliga Tekniska Högskolan
3 * (Royal Institute of Technology, Stockholm, Sweden).
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
17 * 3. All advertising materials mentioning features or use of this software
18 * must display the following acknowledgement:
19 * This product includes software developed by Kungliga Tekniska
20 * Högskolan and its contributors.
22 * 4. Neither the name of the Institute nor the names of its contributors
23 * may be used to endorse or promote products derived from this software
24 * without specific prior written permission.
26 * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
27 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
45 * First, include stddef.h to get size_t defined.
53 #include <sys/types.h>
55 #include <krb5-types.h>
58 * Now define the three implementation-dependent types.
61 typedef u_int32_t OM_uint32
;
64 * This is to avoid having to include <krb5.h>
67 struct krb5_auth_context_data
;
71 /* typedef void *gss_name_t; */
73 typedef struct Principal
*gss_name_t
;
75 typedef struct gss_ctx_id_t_desc_struct
{
76 struct krb5_auth_context_data
*auth_context
;
77 gss_name_t source
, target
;
79 enum { LOCAL
= 1, OPEN
= 2} more_flags
;
80 struct krb5_ticket
*ticket
;
83 typedef gss_ctx_id_t_desc
*gss_ctx_id_t
;
85 typedef struct gss_OID_desc_struct
{
88 } gss_OID_desc
, *gss_OID
;
90 typedef struct gss_OID_set_desc_struct
{
93 } gss_OID_set_desc
, *gss_OID_set
;
95 struct krb5_keytab_data
;
97 typedef int gss_cred_usage_t
;
99 typedef struct gss_cred_id_t_desc_struct
{
100 gss_name_t principal
;
101 struct krb5_keytab_data
*keytab
;
103 gss_cred_usage_t usage
;
104 gss_OID_set mechanisms
;
105 } gss_cred_id_t_desc
;
107 typedef gss_cred_id_t_desc
*gss_cred_id_t
;
109 typedef struct gss_buffer_desc_struct
{
112 } gss_buffer_desc
, *gss_buffer_t
;
114 typedef struct gss_channel_bindings_struct
{
115 OM_uint32 initiator_addrtype
;
116 gss_buffer_desc initiator_address
;
117 OM_uint32 acceptor_addrtype
;
118 gss_buffer_desc acceptor_address
;
119 gss_buffer_desc application_data
;
120 } *gss_channel_bindings_t
;
123 * For now, define a QOP-type as an OM_uint32
125 typedef OM_uint32 gss_qop_t
;
128 * Flag bits for context-level services.
130 #define GSS_C_DELEG_FLAG 1
131 #define GSS_C_MUTUAL_FLAG 2
132 #define GSS_C_REPLAY_FLAG 4
133 #define GSS_C_SEQUENCE_FLAG 8
134 #define GSS_C_CONF_FLAG 16
135 #define GSS_C_INTEG_FLAG 32
136 #define GSS_C_ANON_FLAG 64
137 #define GSS_C_PROT_READY_FLAG 128
138 #define GSS_C_TRANS_FLAG 256
141 * Credential usage options
144 #define GSS_C_INITIATE 1
145 #define GSS_C_ACCEPT 2
148 * Status code types for gss_display_status
150 #define GSS_C_GSS_CODE 1
151 #define GSS_C_MECH_CODE 2
154 * The constant definitions for channel-bindings address families
156 #define GSS_C_AF_UNSPEC 0
157 #define GSS_C_AF_LOCAL 1
158 #define GSS_C_AF_INET 2
159 #define GSS_C_AF_IMPLINK 3
160 #define GSS_C_AF_PUP 4
161 #define GSS_C_AF_CHAOS 5
162 #define GSS_C_AF_NS 6
163 #define GSS_C_AF_NBS 7
164 #define GSS_C_AF_ECMA 8
165 #define GSS_C_AF_DATAKIT 9
166 #define GSS_C_AF_CCITT 10
167 #define GSS_C_AF_SNA 11
168 #define GSS_C_AF_DECnet 12
169 #define GSS_C_AF_DLI 13
170 #define GSS_C_AF_LAT 14
171 #define GSS_C_AF_HYLINK 15
172 #define GSS_C_AF_APPLETALK 16
173 #define GSS_C_AF_BSC 17
174 #define GSS_C_AF_DSS 18
175 #define GSS_C_AF_OSI 19
176 #define GSS_C_AF_X25 21
177 #define GSS_C_AF_INET6 24
179 #define GSS_C_AF_NULLADDR 255
182 * Various Null values
184 #define GSS_C_NO_NAME ((gss_name_t) 0)
185 #define GSS_C_NO_BUFFER ((gss_buffer_t) 0)
186 #define GSS_C_NO_OID ((gss_OID) 0)
187 #define GSS_C_NO_OID_SET ((gss_OID_set) 0)
188 #define GSS_C_NO_CONTEXT ((gss_ctx_id_t) 0)
189 #define GSS_C_NO_CREDENTIAL ((gss_cred_id_t) 0)
190 #define GSS_C_NO_CHANNEL_BINDINGS ((gss_channel_bindings_t) 0)
191 #define GSS_C_EMPTY_BUFFER {0, NULL}
194 * Some alternate names for a couple of the above
195 * values. These are defined for V1 compatibility.
197 #define GSS_C_NULL_OID GSS_C_NO_OID
198 #define GSS_C_NULL_OID_SET GSS_C_NO_OID_SET
201 * Define the default Quality of Protection for per-message
202 * services. Note that an implementation that offers multiple
203 * levels of QOP may define GSS_C_QOP_DEFAULT to be either zero
204 * (as done here) to mean "default protection", or to a specific
205 * explicit QOP value. However, a value of 0 should always be
206 * interpreted by a GSSAPI implementation as a request for the
207 * default protection level.
209 #define GSS_C_QOP_DEFAULT 0
212 * Expiration time of 2^32-1 seconds means infinite lifetime for a
213 * credential or security context
215 #define GSS_C_INDEFINITE 0xfffffffful
218 * The implementation must reserve static storage for a
219 * gss_OID_desc object containing the value
220 * {10, (void *)"\x2a\x86\x48\x86\xf7\x12"
221 * "\x01\x02\x01\x01"},
222 * corresponding to an object-identifier value of
223 * {iso(1) member-body(2) United States(840) mit(113554)
224 * infosys(1) gssapi(2) generic(1) user_name(1)}. The constant
225 * GSS_C_NT_USER_NAME should be initialized to point
226 * to that gss_OID_desc.
228 extern gss_OID GSS_C_NT_USER_NAME
;
231 * The implementation must reserve static storage for a
232 * gss_OID_desc object containing the value
233 * {10, (void *)"\x2a\x86\x48\x86\xf7\x12"
234 * "\x01\x02\x01\x02"},
235 * corresponding to an object-identifier value of
236 * {iso(1) member-body(2) United States(840) mit(113554)
237 * infosys(1) gssapi(2) generic(1) machine_uid_name(2)}.
238 * The constant GSS_C_NT_MACHINE_UID_NAME should be
239 * initialized to point to that gss_OID_desc.
241 extern gss_OID GSS_C_NT_MACHINE_UID_NAME
;
244 * The implementation must reserve static storage for a
245 * gss_OID_desc object containing the value
246 * {10, (void *)"\x2a\x86\x48\x86\xf7\x12"
247 * "\x01\x02\x01\x03"},
248 * corresponding to an object-identifier value of
249 * {iso(1) member-body(2) United States(840) mit(113554)
250 * infosys(1) gssapi(2) generic(1) string_uid_name(3)}.
251 * The constant GSS_C_NT_STRING_UID_NAME should be
252 * initialized to point to that gss_OID_desc.
254 extern gss_OID GSS_C_NT_STRING_UID_NAME
;
257 * The implementation must reserve static storage for a
258 * gss_OID_desc object containing the value
259 * {6, (void *)"\x2b\x06\x01\x05\x06\x02"},
260 * corresponding to an object-identifier value of
261 * {1(iso), 3(org), 6(dod), 1(internet), 5(security),
262 * 6(nametypes), 2(gss-host-based-services)}. The constant
263 * GSS_C_NT_HOSTBASED_SERVICE should be initialized to point
264 * to that gss_OID_desc.
266 extern gss_OID GSS_C_NT_HOSTBASED_SERVICE
;
269 * The implementation must reserve static storage for a
270 * gss_OID_desc object containing the value
271 * {6, (void *)"\x2b\x06\01\x05\x06\x03"},
272 * corresponding to an object identifier value of
273 * {1(iso), 3(org), 6(dod), 1(internet), 5(security),
274 * 6(nametypes), 3(gss-anonymous-name)}. The constant
275 * and GSS_C_NT_ANONYMOUS should be initialized to point
276 * to that gss_OID_desc.
278 extern gss_OID GSS_C_NT_ANONYMOUS
;
281 * The implementation must reserve static storage for a
282 * gss_OID_desc object containing the value
283 * {6, (void *)"\x2b\x06\x01\x05\x06\x04"},
284 * corresponding to an object-identifier value of
285 * {1(iso), 3(org), 6(dod), 1(internet), 5(security),
286 * 6(nametypes), 4(gss-api-exported-name)}. The constant
287 * GSS_C_NT_EXPORT_NAME should be initialized to point
288 * to that gss_OID_desc.
290 extern gss_OID GSS_C_NT_EXPORT_NAME
;
293 * This if for kerberos5 names.
296 extern gss_OID GSS_KRB5_NT_PRINCIPAL_NAME
;
297 extern gss_OID GSS_KRB5_NT_USER_NAME
;
298 extern gss_OID GSS_KRB5_NT_MACHINE_UID_NAME
;
299 extern gss_OID GSS_KRB5_NT_STRING_UID_NAME
;
301 extern gss_OID GSS_KRB5_MECHANISM
;
303 /* Major status codes */
305 #define GSS_S_COMPLETE 0
308 * Some "helper" definitions to make the status code macros obvious.
310 #define GSS_C_CALLING_ERROR_OFFSET 24
311 #define GSS_C_ROUTINE_ERROR_OFFSET 16
312 #define GSS_C_SUPPLEMENTARY_OFFSET 0
313 #define GSS_C_CALLING_ERROR_MASK 0377ul
314 #define GSS_C_ROUTINE_ERROR_MASK 0377ul
315 #define GSS_C_SUPPLEMENTARY_MASK 0177777ul
318 * The macros that test status codes for error conditions.
319 * Note that the GSS_ERROR() macro has changed slightly from
320 * the V1 GSSAPI so that it now evaluates its argument
323 #define GSS_CALLING_ERROR(x) \
324 (x & (GSS_C_CALLING_ERROR_MASK << GSS_C_CALLING_ERROR_OFFSET))
325 #define GSS_ROUTINE_ERROR(x) \
326 (x & (GSS_C_ROUTINE_ERROR_MASK << GSS_C_ROUTINE_ERROR_OFFSET))
327 #define GSS_SUPPLEMENTARY_INFO(x) \
328 (x & (GSS_C_SUPPLEMENTARY_MASK << GSS_C_SUPPLEMENTARY_OFFSET))
329 #define GSS_ERROR(x) \
330 (x & ((GSS_C_CALLING_ERROR_MASK << GSS_C_CALLING_ERROR_OFFSET) | \
331 (GSS_C_ROUTINE_ERROR_MASK << GSS_C_ROUTINE_ERROR_OFFSET)))
334 * Now the actual status code definitions
340 #define GSS_S_CALL_INACCESSIBLE_READ \
341 (1ul << GSS_C_CALLING_ERROR_OFFSET)
342 #define GSS_S_CALL_INACCESSIBLE_WRITE \
343 (2ul << GSS_C_CALLING_ERROR_OFFSET)
344 #define GSS_S_CALL_BAD_STRUCTURE \
345 (3ul << GSS_C_CALLING_ERROR_OFFSET)
350 #define GSS_S_BAD_MECH (1ul << GSS_C_ROUTINE_ERROR_OFFSET)
351 #define GSS_S_BAD_NAME (2ul << GSS_C_ROUTINE_ERROR_OFFSET)
352 #define GSS_S_BAD_NAMETYPE (3ul << GSS_C_ROUTINE_ERROR_OFFSET)
354 #define GSS_S_BAD_BINDINGS (4ul << GSS_C_ROUTINE_ERROR_OFFSET)
355 #define GSS_S_BAD_STATUS (5ul << GSS_C_ROUTINE_ERROR_OFFSET)
356 #define GSS_S_BAD_SIG (6ul << GSS_C_ROUTINE_ERROR_OFFSET)
357 #define GSS_S_BAD_MIC GSS_S_BAD_SIG
358 #define GSS_S_NO_CRED (7ul << GSS_C_ROUTINE_ERROR_OFFSET)
359 #define GSS_S_NO_CONTEXT (8ul << GSS_C_ROUTINE_ERROR_OFFSET)
360 #define GSS_S_DEFECTIVE_TOKEN (9ul << GSS_C_ROUTINE_ERROR_OFFSET)
361 #define GSS_S_DEFECTIVE_CREDENTIAL (10ul << GSS_C_ROUTINE_ERROR_OFFSET)
362 #define GSS_S_CREDENTIALS_EXPIRED (11ul << GSS_C_ROUTINE_ERROR_OFFSET)
363 #define GSS_S_CONTEXT_EXPIRED (12ul << GSS_C_ROUTINE_ERROR_OFFSET)
364 #define GSS_S_FAILURE (13ul << GSS_C_ROUTINE_ERROR_OFFSET)
365 #define GSS_S_BAD_QOP (14ul << GSS_C_ROUTINE_ERROR_OFFSET)
366 #define GSS_S_UNAUTHORIZED (15ul << GSS_C_ROUTINE_ERROR_OFFSET)
367 #define GSS_S_UNAVAILABLE (16ul << GSS_C_ROUTINE_ERROR_OFFSET)
368 #define GSS_S_DUPLICATE_ELEMENT (17ul << GSS_C_ROUTINE_ERROR_OFFSET)
369 #define GSS_S_NAME_NOT_MN (18ul << GSS_C_ROUTINE_ERROR_OFFSET)
372 * Supplementary info bits:
374 #define GSS_S_CONTINUE_NEEDED (1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 0))
375 #define GSS_S_DUPLICATE_TOKEN (1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 1))
376 #define GSS_S_OLD_TOKEN (1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 2))
377 #define GSS_S_UNSEQ_TOKEN (1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 3))
378 #define GSS_S_GAP_TOKEN (1ul << (GSS_C_SUPPLEMENTARY_OFFSET + 4))
383 * 4.1.1. Non-Kerberos-specific codes
386 #define GSS_KRB5_S_G_BAD_SERVICE_NAME 1
387 /* "No @ in SERVICE-NAME name string" */
388 #define GSS_KRB5_S_G_BAD_STRING_UID 2
389 /* "STRING-UID-NAME contains nondigits" */
390 #define GSS_KRB5_S_G_NOUSER 3
391 /* "UID does not resolve to username" */
392 #define GSS_KRB5_S_G_VALIDATE_FAILED 4
393 /* "Validation error" */
394 #define GSS_KRB5_S_G_BUFFER_ALLOC 5
395 /* "Couldn't allocate gss_buffer_t data" */
396 #define GSS_KRB5_S_G_BAD_MSG_CTX 6
397 /* "Message context invalid" */
398 #define GSS_KRB5_S_G_WRONG_SIZE 7
399 /* "Buffer is the wrong size" */
400 #define GSS_KRB5_S_G_BAD_USAGE 8
401 /* "Credential usage type is unknown" */
402 #define GSS_KRB5_S_G_UNKNOWN_QOP 9
403 /* "Unknown quality of protection specified" */
406 * 4.1.2. Kerberos-specific-codes
409 #define GSS_KRB5_S_KG_CCACHE_NOMATCH 10
410 /* "Principal in credential cache does not match desired name" */
411 #define GSS_KRB5_S_KG_KEYTAB_NOMATCH 11
412 /* "No principal in keytab matches desired name" */
413 #define GSS_KRB5_S_KG_TGT_MISSING 12
414 /* "Credential cache has no TGT" */
415 #define GSS_KRB5_S_KG_NO_SUBKEY 13
416 /* "Authenticator has no subkey" */
417 #define GSS_KRB5_S_KG_CONTEXT_ESTABLISHED 14
418 /* "Context is already fully established" */
419 #define GSS_KRB5_S_KG_BAD_SIGN_TYPE 15
420 /* "Unknown signature type in token" */
421 #define GSS_KRB5_S_KG_BAD_LENGTH 16
422 /* "Invalid field length in token" */
423 #define GSS_KRB5_S_KG_CTX_INCOMPLETE 17
424 /* "Attempt to use incomplete security context" */
427 * Finally, function prototypes for the GSS-API routines.
430 OM_uint32 gss_acquire_cred
431 (OM_uint32
* minor_status
,
432 const gss_name_t desired_name
,
434 const gss_OID_set desired_mechs
,
435 gss_cred_usage_t cred_usage
,
436 gss_cred_id_t
* output_cred_handle
,
437 gss_OID_set
* actual_mechs
,
441 OM_uint32 gss_release_cred
442 (OM_uint32
* minor_status
,
443 gss_cred_id_t
* cred_handle
446 OM_uint32 gss_init_sec_context
447 (OM_uint32
* minor_status
,
448 const gss_cred_id_t initiator_cred_handle
,
449 gss_ctx_id_t
* context_handle
,
450 const gss_name_t target_name
,
451 const gss_OID mech_type
,
454 const gss_channel_bindings_t input_chan_bindings
,
455 const gss_buffer_t input_token
,
456 gss_OID
* actual_mech_type
,
457 gss_buffer_t output_token
,
458 OM_uint32
* ret_flags
,
462 OM_uint32 gss_accept_sec_context
463 (OM_uint32
* minor_status
,
464 gss_ctx_id_t
* context_handle
,
465 const gss_cred_id_t acceptor_cred_handle
,
466 const gss_buffer_t input_token_buffer
,
467 const gss_channel_bindings_t input_chan_bindings
,
468 gss_name_t
* src_name
,
470 gss_buffer_t output_token
,
471 OM_uint32
* ret_flags
,
472 OM_uint32
* time_rec
,
473 gss_cred_id_t
* delegated_cred_handle
476 OM_uint32 gss_process_context_token
477 (OM_uint32
* minor_status
,
478 const gss_ctx_id_t context_handle
,
479 const gss_buffer_t token_buffer
482 OM_uint32 gss_delete_sec_context
483 (OM_uint32
* minor_status
,
484 gss_ctx_id_t
* context_handle
,
485 gss_buffer_t output_token
488 OM_uint32 gss_context_time
489 (OM_uint32
* minor_status
,
490 const gss_ctx_id_t context_handle
,
494 OM_uint32 gss_get_mic
495 (OM_uint32
* minor_status
,
496 const gss_ctx_id_t context_handle
,
498 const gss_buffer_t message_buffer
,
499 gss_buffer_t message_token
502 OM_uint32 gss_verify_mic
503 (OM_uint32
* minor_status
,
504 const gss_ctx_id_t context_handle
,
505 const gss_buffer_t message_buffer
,
506 const gss_buffer_t token_buffer
,
507 gss_qop_t
* qop_state
511 (OM_uint32
* minor_status
,
512 const gss_ctx_id_t context_handle
,
515 const gss_buffer_t input_message_buffer
,
517 gss_buffer_t output_message_buffer
521 (OM_uint32
* minor_status
,
522 const gss_ctx_id_t context_handle
,
523 const gss_buffer_t input_message_buffer
,
524 gss_buffer_t output_message_buffer
,
526 gss_qop_t
* qop_state
529 OM_uint32 gss_display_status
530 (OM_uint32
* minor_status
,
531 OM_uint32 status_value
,
533 const gss_OID mech_type
,
534 OM_uint32
* message_context
,
535 gss_buffer_t status_string
538 OM_uint32 gss_indicate_mechs
539 (OM_uint32
* minor_status
,
540 gss_OID_set
* mech_set
543 OM_uint32 gss_compare_name
544 (OM_uint32
* minor_status
,
545 const gss_name_t name1
,
546 const gss_name_t name2
,
550 OM_uint32 gss_display_name
551 (OM_uint32
* minor_status
,
552 const gss_name_t input_name
,
553 gss_buffer_t output_name_buffer
,
554 gss_OID
* output_name_type
557 OM_uint32 gss_import_name
558 (OM_uint32
* minor_status
,
559 const gss_buffer_t input_name_buffer
,
560 const gss_OID input_name_type
,
561 gss_name_t
* output_name
564 OM_uint32 gss_export_name
565 (OM_uint32
* minor_status
,
566 const gss_name_t input_name
,
567 gss_buffer_t exported_name
570 OM_uint32 gss_release_name
571 (OM_uint32
* minor_status
,
572 gss_name_t
* input_name
575 OM_uint32 gss_release_buffer
576 (OM_uint32
* minor_status
,
580 OM_uint32 gss_release_oid_set
581 (OM_uint32
* minor_status
,
585 OM_uint32 gss_inquire_cred
586 (OM_uint32
* minor_status
,
587 const gss_cred_id_t cred_handle
,
589 OM_uint32
* lifetime
,
590 gss_cred_usage_t
* cred_usage
,
591 gss_OID_set
* mechanisms
594 OM_uint32
gss_inquire_context (
595 OM_uint32
* minor_status
,
596 const gss_ctx_id_t context_handle
,
597 gss_name_t
* src_name
,
598 gss_name_t
* targ_name
,
599 OM_uint32
* lifetime_rec
,
601 OM_uint32
* ctx_flags
,
602 int * locally_initiated
,
606 OM_uint32
gss_wrap_size_limit (
607 OM_uint32
* minor_status
,
608 const gss_ctx_id_t context_handle
,
611 OM_uint32 req_output_size
,
612 OM_uint32
* max_input_size
615 OM_uint32
gss_add_cred (
616 OM_uint32
* minor_status
,
617 const gss_cred_id_t input_cred_handle
,
618 const gss_name_t desired_name
,
619 const gss_OID desired_mech
,
620 gss_cred_usage_t cred_usage
,
621 OM_uint32 initiator_time_req
,
622 OM_uint32 acceptor_time_req
,
623 gss_cred_id_t
* output_cred_handle
,
624 gss_OID_set
* actual_mechs
,
625 OM_uint32
* initiator_time_rec
,
626 OM_uint32
* acceptor_time_rec
629 OM_uint32
gss_inquire_cred_by_mech (
630 OM_uint32
* minor_status
,
631 const gss_cred_id_t cred_handle
,
632 const gss_OID mech_type
,
634 OM_uint32
* initiator_lifetime
,
635 OM_uint32
* acceptor_lifetime
,
636 gss_cred_usage_t
* cred_usage
639 OM_uint32
gss_export_sec_context (
640 OM_uint32
* minor_status
,
641 gss_ctx_id_t
* context_handle
,
642 gss_buffer_t interprocess_token
645 OM_uint32
gss_import_sec_context (
646 OM_uint32
* minor_status
,
647 const gss_buffer_t interprocess_token
,
648 gss_ctx_id_t
* context_handle
651 OM_uint32
gss_create_empty_oid_set (
652 OM_uint32
* minor_status
,
653 gss_OID_set
* oid_set
656 OM_uint32
gss_add_oid_set_member (
657 OM_uint32
* minor_status
,
658 const gss_OID member_oid
,
659 gss_OID_set
* oid_set
662 OM_uint32
gss_test_oid_set_member (
663 OM_uint32
* minor_status
,
664 const gss_OID member
,
665 const gss_OID_set set
,
669 OM_uint32
gss_inquire_names_for_mech (
670 OM_uint32
* minor_status
,
671 const gss_OID mechanism
,
672 gss_OID_set
* name_types
675 OM_uint32
gss_inquire_mechs_for_name (
676 OM_uint32
* minor_status
,
677 const gss_name_t input_name
,
678 gss_OID_set
* mech_types
681 OM_uint32
gss_canonicalize_name (
682 OM_uint32
* minor_status
,
683 const gss_name_t input_name
,
684 const gss_OID mech_type
,
685 gss_name_t
* output_name
688 OM_uint32
gss_duplicate_name (
689 OM_uint32
* minor_status
,
690 const gss_name_t src_name
,
691 gss_name_t
* dest_name
695 * The following routines are obsolete variants of gss_get_mic,
696 * gss_verify_mic, gss_wrap and gss_unwrap. They should be
697 * provided by GSSAPI V2 implementations for backwards
698 * compatibility with V1 applications. Distinct entrypoints
699 * (as opposed to #defines) should be provided, both to allow
700 * GSSAPI V1 applications to link against GSSAPI V2 implementations,
701 * and to retain the slight parameter type differences between the
702 * obsolete versions of these routines and their current forms.
706 (OM_uint32
* minor_status
,
707 gss_ctx_id_t context_handle
,
709 gss_buffer_t message_buffer
,
710 gss_buffer_t message_token
714 (OM_uint32
* minor_status
,
715 gss_ctx_id_t context_handle
,
716 gss_buffer_t message_buffer
,
717 gss_buffer_t token_buffer
,
722 (OM_uint32
* minor_status
,
723 gss_ctx_id_t context_handle
,
726 gss_buffer_t input_message_buffer
,
728 gss_buffer_t output_message_buffer
732 (OM_uint32
* minor_status
,
733 gss_ctx_id_t context_handle
,
734 gss_buffer_t input_message_buffer
,
735 gss_buffer_t output_message_buffer
,
741 * kerberos mechanism specific functions
744 OM_uint32 gsskrb5_register_acceptor_identity
747 #endif /* GSSAPI_H_ */