17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * CDDL HEADER START 37c478bd9Sstevel@tonic-gate * 47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 57c478bd9Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 67c478bd9Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 77c478bd9Sstevel@tonic-gate * with the License. 87c478bd9Sstevel@tonic-gate * 97c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 107c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 117c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 127c478bd9Sstevel@tonic-gate * and limitations under the License. 137c478bd9Sstevel@tonic-gate * 147c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 157c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 167c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 177c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 187c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 197c478bd9Sstevel@tonic-gate * 207c478bd9Sstevel@tonic-gate * CDDL HEADER END 217c478bd9Sstevel@tonic-gate */ 227c478bd9Sstevel@tonic-gate /* 237c478bd9Sstevel@tonic-gate * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 247c478bd9Sstevel@tonic-gate * Use is subject to license terms. 257c478bd9Sstevel@tonic-gate */ 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gate #ifndef _GSSAPIP_DUMMY_H 287c478bd9Sstevel@tonic-gate #define _GSSAPIP_DUMMY_H 297c478bd9Sstevel@tonic-gate 307c478bd9Sstevel@tonic-gate #ifdef __cplusplus 317c478bd9Sstevel@tonic-gate extern "C" { 327c478bd9Sstevel@tonic-gate #endif 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gate #include <gssapi/gssapi.h> 357c478bd9Sstevel@tonic-gate 367c478bd9Sstevel@tonic-gate #define SEC_CONTEXT_TOKEN 1 377c478bd9Sstevel@tonic-gate #define DUMMY_SIZE_OF_INT 4 387c478bd9Sstevel@tonic-gate 397c478bd9Sstevel@tonic-gate typedef void * dummy_token_t; 407c478bd9Sstevel@tonic-gate 417c478bd9Sstevel@tonic-gate /* dummy name structure for internal representation. */ 427c478bd9Sstevel@tonic-gate typedef struct { 437c478bd9Sstevel@tonic-gate gss_OID type; 447c478bd9Sstevel@tonic-gate gss_buffer_t buffer; 457c478bd9Sstevel@tonic-gate } dummy_name_desc, *dummy_name_t; 467c478bd9Sstevel@tonic-gate 477c478bd9Sstevel@tonic-gate /* Structure for context handle */ 487c478bd9Sstevel@tonic-gate typedef struct { 497c478bd9Sstevel@tonic-gate OM_uint32 last_stat; 507c478bd9Sstevel@tonic-gate int token_number; 517c478bd9Sstevel@tonic-gate int established; 527c478bd9Sstevel@tonic-gate } dummy_gss_ctx_id_rec, *dummy_gss_ctx_id_t; 537c478bd9Sstevel@tonic-gate 547c478bd9Sstevel@tonic-gate /* Dummy oid structure */ 557c478bd9Sstevel@tonic-gate static const gss_OID_desc dummy_oids[] = { 567c478bd9Sstevel@tonic-gate {10, "\053\006\001\004\001\052\002\032\001\002"}, 577c478bd9Sstevel@tonic-gate }; 587c478bd9Sstevel@tonic-gate const gss_OID_desc * const gss_mech_dummy = dummy_oids+0; 597c478bd9Sstevel@tonic-gate static const gss_OID_set_desc dummy_oidsets[] = { 607c478bd9Sstevel@tonic-gate {1, (gss_OID) dummy_oids+0}, 617c478bd9Sstevel@tonic-gate }; 627c478bd9Sstevel@tonic-gate const gss_OID_set_desc * const gss_mech_set_dummy = dummy_oidsets+0; 637c478bd9Sstevel@tonic-gate 647c478bd9Sstevel@tonic-gate #define TWRITE_STR(ptr, str, len) \ 657c478bd9Sstevel@tonic-gate (void) memcpy((ptr), (char *) (str), (len)); \ 667c478bd9Sstevel@tonic-gate (ptr) += (len); 677c478bd9Sstevel@tonic-gate #ifndef _KERNEL 687c478bd9Sstevel@tonic-gate 697c478bd9Sstevel@tonic-gate #ifdef DEBUG_ON 707c478bd9Sstevel@tonic-gate 717c478bd9Sstevel@tonic-gate #define dprintf(a) printf(a) 727c478bd9Sstevel@tonic-gate #define dprintf1(a, b) printf(a, b) 737c478bd9Sstevel@tonic-gate 747c478bd9Sstevel@tonic-gate #else 757c478bd9Sstevel@tonic-gate 767c478bd9Sstevel@tonic-gate #define dprintf(a) 777c478bd9Sstevel@tonic-gate #define dprintf1(a, b) 787c478bd9Sstevel@tonic-gate #define DUMMY_STATIC 797c478bd9Sstevel@tonic-gate 807c478bd9Sstevel@tonic-gate #endif /* DEBUG_ON */ 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gate #else /* _KERNEL */ 837c478bd9Sstevel@tonic-gate 847c478bd9Sstevel@tonic-gate #if defined(DEBUG) && !defined(DUMMY_MECH_DEBUG) 857c478bd9Sstevel@tonic-gate #define DUMMY_MECH_DEBUG 867c478bd9Sstevel@tonic-gate #endif 877c478bd9Sstevel@tonic-gate 887c478bd9Sstevel@tonic-gate #ifdef DUMMY_MECH_DEBUG 897c478bd9Sstevel@tonic-gate #define DUMMY_MECH_LOG(A, B, C) \ 907c478bd9Sstevel@tonic-gate ((void)((dummy_mech_log & (A)) && (printf((B), (C)), TRUE))) 917c478bd9Sstevel@tonic-gate #define DUMMY_MECH_LOG0(A, B) \ 927c478bd9Sstevel@tonic-gate ((void)((dummy_mech_log & (A)) && (printf(B), TRUE))) 937c478bd9Sstevel@tonic-gate #else 947c478bd9Sstevel@tonic-gate #define DUMMY_MECH_LOG(A, B, C) 957c478bd9Sstevel@tonic-gate #define DUMMY_MECH_LOG0(A, B) 967c478bd9Sstevel@tonic-gate 977c478bd9Sstevel@tonic-gate #endif 987c478bd9Sstevel@tonic-gate 997c478bd9Sstevel@tonic-gate #define dprintf(a) DUMMY_MECH_LOG0(8, a) 1007c478bd9Sstevel@tonic-gate #define dprintf1(a, b) DUMMY_MECH_LOG(8, a, b) 1017c478bd9Sstevel@tonic-gate #define DUMMY_STATIC static 1027c478bd9Sstevel@tonic-gate 1037c478bd9Sstevel@tonic-gate #endif /* _KERNEL */ 1047c478bd9Sstevel@tonic-gate 1057c478bd9Sstevel@tonic-gate /* 1067c478bd9Sstevel@tonic-gate * declarations of internal name mechanism functions 1077c478bd9Sstevel@tonic-gate */ 1087c478bd9Sstevel@tonic-gate 1097c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_acquire_cred 1107c478bd9Sstevel@tonic-gate ( 1117c478bd9Sstevel@tonic-gate void *, /* dummy context */ 1127c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 1137c478bd9Sstevel@tonic-gate gss_name_t, /* desired_name */ 1147c478bd9Sstevel@tonic-gate OM_uint32, /* time_req */ 1157c478bd9Sstevel@tonic-gate gss_OID_set, /* desired_mechs */ 1167c478bd9Sstevel@tonic-gate gss_cred_usage_t, /* cred_usage */ 1177c478bd9Sstevel@tonic-gate gss_cred_id_t *, /* output_cred_handle */ 1187c478bd9Sstevel@tonic-gate gss_OID_set *, /* actual_mechs */ 1197c478bd9Sstevel@tonic-gate OM_uint32 * /* time_rec */ 1207c478bd9Sstevel@tonic-gate /* */); 1217c478bd9Sstevel@tonic-gate 1227c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_release_cred 1237c478bd9Sstevel@tonic-gate ( 1247c478bd9Sstevel@tonic-gate void *, /* dummy context */ 1257c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 1267c478bd9Sstevel@tonic-gate gss_cred_id_t * /* cred_handle */ 1277c478bd9Sstevel@tonic-gate /* */); 1287c478bd9Sstevel@tonic-gate 1297c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_init_sec_context 1307c478bd9Sstevel@tonic-gate ( 1317c478bd9Sstevel@tonic-gate void *, /* dummy context */ 1327c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 1337c478bd9Sstevel@tonic-gate gss_cred_id_t, /* claimant_cred_handle */ 1347c478bd9Sstevel@tonic-gate gss_ctx_id_t *, /* context_handle */ 1357c478bd9Sstevel@tonic-gate gss_name_t, /* target_name */ 1367c478bd9Sstevel@tonic-gate gss_OID, /* mech_type */ 1377c478bd9Sstevel@tonic-gate OM_uint32, /* req_flags */ 1387c478bd9Sstevel@tonic-gate OM_uint32, /* time_req */ 1397c478bd9Sstevel@tonic-gate gss_channel_bindings_t, /* input_chan_bindings */ 1407c478bd9Sstevel@tonic-gate gss_buffer_t, /* input_token */ 1417c478bd9Sstevel@tonic-gate gss_OID *, /* actual_mech_type */ 1427c478bd9Sstevel@tonic-gate gss_buffer_t, /* output_token */ 1437c478bd9Sstevel@tonic-gate OM_uint32 *, /* ret_flags */ 1447c478bd9Sstevel@tonic-gate OM_uint32 * /* time_rec */ 1457c478bd9Sstevel@tonic-gate /* */); 1467c478bd9Sstevel@tonic-gate 1477c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_accept_sec_context 1487c478bd9Sstevel@tonic-gate ( 1497c478bd9Sstevel@tonic-gate void *, /* dummy context */ 1507c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 1517c478bd9Sstevel@tonic-gate gss_ctx_id_t *, /* context_handle */ 1527c478bd9Sstevel@tonic-gate gss_cred_id_t, /* verifier_cred_handle */ 1537c478bd9Sstevel@tonic-gate gss_buffer_t, /* input_token_buffer */ 1547c478bd9Sstevel@tonic-gate gss_channel_bindings_t, /* input_chan_bindings */ 1557c478bd9Sstevel@tonic-gate gss_name_t *, /* src_name */ 1567c478bd9Sstevel@tonic-gate gss_OID *, /* mech_type */ 1577c478bd9Sstevel@tonic-gate gss_buffer_t, /* output_token */ 1587c478bd9Sstevel@tonic-gate OM_uint32 *, /* ret_flags */ 1597c478bd9Sstevel@tonic-gate OM_uint32 *, /* time_rec */ 1607c478bd9Sstevel@tonic-gate gss_cred_id_t * /* delegated_cred_handle */ 1617c478bd9Sstevel@tonic-gate /* */); 1627c478bd9Sstevel@tonic-gate 1637c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_process_context_token 1647c478bd9Sstevel@tonic-gate ( 1657c478bd9Sstevel@tonic-gate void *, /* dummy context */ 1667c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 1677c478bd9Sstevel@tonic-gate gss_ctx_id_t, /* context_handle */ 1687c478bd9Sstevel@tonic-gate gss_buffer_t /* token_buffer */ 1697c478bd9Sstevel@tonic-gate /* */); 1707c478bd9Sstevel@tonic-gate 1717c478bd9Sstevel@tonic-gate DUMMY_STATIC OM_uint32 dummy_gss_delete_sec_context 1727c478bd9Sstevel@tonic-gate ( 1737c478bd9Sstevel@tonic-gate void *, /* dummy context */ 1747c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 1757c478bd9Sstevel@tonic-gate gss_ctx_id_t *, /* context_handle */ 1767c478bd9Sstevel@tonic-gate gss_buffer_t /* output_token */ 1777c478bd9Sstevel@tonic-gate #ifdef _KERNEL 1787c478bd9Sstevel@tonic-gate /* */, OM_uint32 1797c478bd9Sstevel@tonic-gate #endif 1807c478bd9Sstevel@tonic-gate /* */); 1817c478bd9Sstevel@tonic-gate 1827c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_context_time 1837c478bd9Sstevel@tonic-gate ( 1847c478bd9Sstevel@tonic-gate void *, /* dummy context */ 1857c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 1867c478bd9Sstevel@tonic-gate gss_ctx_id_t, /* context_handle */ 1877c478bd9Sstevel@tonic-gate OM_uint32 * /* time_rec */ 1887c478bd9Sstevel@tonic-gate /* */); 1897c478bd9Sstevel@tonic-gate 1907c478bd9Sstevel@tonic-gate DUMMY_STATIC OM_uint32 dummy_gss_sign 1917c478bd9Sstevel@tonic-gate ( 1927c478bd9Sstevel@tonic-gate void *, /* dummy context */ 1937c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 1947c478bd9Sstevel@tonic-gate gss_ctx_id_t, /* context_handle */ 1957c478bd9Sstevel@tonic-gate int, /* qop_req */ 1967c478bd9Sstevel@tonic-gate gss_buffer_t, /* message_buffer */ 1977c478bd9Sstevel@tonic-gate gss_buffer_t /* message_token */ 1987c478bd9Sstevel@tonic-gate #ifdef _KERNEL 1997c478bd9Sstevel@tonic-gate /* */, OM_uint32 2007c478bd9Sstevel@tonic-gate #endif 2017c478bd9Sstevel@tonic-gate /* */); 2027c478bd9Sstevel@tonic-gate 2037c478bd9Sstevel@tonic-gate DUMMY_STATIC OM_uint32 dummy_gss_verify 2047c478bd9Sstevel@tonic-gate ( 2057c478bd9Sstevel@tonic-gate void *, /* dummy context */ 2067c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 2077c478bd9Sstevel@tonic-gate gss_ctx_id_t, /* context_handle */ 2087c478bd9Sstevel@tonic-gate gss_buffer_t, /* message_buffer */ 2097c478bd9Sstevel@tonic-gate gss_buffer_t, /* token_buffer */ 2107c478bd9Sstevel@tonic-gate int * /* qop_state */ 2117c478bd9Sstevel@tonic-gate #ifdef _KERNEL 2127c478bd9Sstevel@tonic-gate /* */, OM_uint32 2137c478bd9Sstevel@tonic-gate 2147c478bd9Sstevel@tonic-gate #endif 2157c478bd9Sstevel@tonic-gate /* */); 216*694c35faSJosef 'Jeff' Sipek 2177c478bd9Sstevel@tonic-gate DUMMY_STATIC OM_uint32 dummy_gss_seal 2187c478bd9Sstevel@tonic-gate ( 2197c478bd9Sstevel@tonic-gate void *, /* dummy context */ 2207c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 2217c478bd9Sstevel@tonic-gate gss_ctx_id_t, /* context_handle */ 2227c478bd9Sstevel@tonic-gate int, /* conf_req_flag */ 2237c478bd9Sstevel@tonic-gate int, /* qop_req */ 2247c478bd9Sstevel@tonic-gate gss_buffer_t, /* input_message_buffer */ 2257c478bd9Sstevel@tonic-gate int *, /* conf_state */ 2267c478bd9Sstevel@tonic-gate gss_buffer_t /* output_message_buffer */ 2277c478bd9Sstevel@tonic-gate #ifdef _KERNEL 2287c478bd9Sstevel@tonic-gate /* */, OM_uint32 2297c478bd9Sstevel@tonic-gate #endif 2307c478bd9Sstevel@tonic-gate /* */); 2317c478bd9Sstevel@tonic-gate 2327c478bd9Sstevel@tonic-gate DUMMY_STATIC OM_uint32 dummy_gss_unseal 2337c478bd9Sstevel@tonic-gate ( 2347c478bd9Sstevel@tonic-gate void *, /* dummy context */ 2357c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 2367c478bd9Sstevel@tonic-gate gss_ctx_id_t, /* context_handle */ 2377c478bd9Sstevel@tonic-gate gss_buffer_t, /* input_message_buffer */ 2387c478bd9Sstevel@tonic-gate gss_buffer_t, /* output_message_buffer */ 2397c478bd9Sstevel@tonic-gate int *, /* conf_state */ 2407c478bd9Sstevel@tonic-gate int * /* qop_state */ 2417c478bd9Sstevel@tonic-gate #ifdef _KERNEL 2427c478bd9Sstevel@tonic-gate /* */, OM_uint32 2437c478bd9Sstevel@tonic-gate #endif 2447c478bd9Sstevel@tonic-gate /* */); 2457c478bd9Sstevel@tonic-gate 2467c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_display_status 2477c478bd9Sstevel@tonic-gate ( 2487c478bd9Sstevel@tonic-gate void *, /* dummy context */ 2497c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 2507c478bd9Sstevel@tonic-gate OM_uint32, /* status_value */ 2517c478bd9Sstevel@tonic-gate int, /* status_type */ 2527c478bd9Sstevel@tonic-gate gss_OID, /* mech_type */ 2537c478bd9Sstevel@tonic-gate OM_uint32 *, /* message_context */ 2547c478bd9Sstevel@tonic-gate gss_buffer_t /* status_string */ 2557c478bd9Sstevel@tonic-gate /* */); 2567c478bd9Sstevel@tonic-gate 2577c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_indicate_mechs 2587c478bd9Sstevel@tonic-gate ( 2597c478bd9Sstevel@tonic-gate void *, /* dummy context */ 2607c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 2617c478bd9Sstevel@tonic-gate gss_OID_set * /* mech_set */ 2627c478bd9Sstevel@tonic-gate /* */); 2637c478bd9Sstevel@tonic-gate 2647c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_compare_name 2657c478bd9Sstevel@tonic-gate ( 2667c478bd9Sstevel@tonic-gate void *, /* dummy context */ 2677c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 2687c478bd9Sstevel@tonic-gate gss_name_t, /* name1 */ 2697c478bd9Sstevel@tonic-gate gss_name_t, /* name2 */ 2707c478bd9Sstevel@tonic-gate int * /* name_equal */ 2717c478bd9Sstevel@tonic-gate /* */); 2727c478bd9Sstevel@tonic-gate 2737c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_display_name 2747c478bd9Sstevel@tonic-gate ( 2757c478bd9Sstevel@tonic-gate void *, /* dummy context */ 2767c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 2777c478bd9Sstevel@tonic-gate gss_name_t, /* input_name */ 2787c478bd9Sstevel@tonic-gate gss_buffer_t, /* output_name_buffer */ 2797c478bd9Sstevel@tonic-gate gss_OID * /* output_name_type */ 2807c478bd9Sstevel@tonic-gate /* */); 2817c478bd9Sstevel@tonic-gate 2827c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_import_name 2837c478bd9Sstevel@tonic-gate ( 2847c478bd9Sstevel@tonic-gate void *, /* dummy context */ 2857c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 2867c478bd9Sstevel@tonic-gate gss_buffer_t, /* input_name_buffer */ 2877c478bd9Sstevel@tonic-gate gss_OID, /* input_name_type */ 2887c478bd9Sstevel@tonic-gate gss_name_t * /* output_name */ 2897c478bd9Sstevel@tonic-gate /* */); 2907c478bd9Sstevel@tonic-gate 2917c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_release_name 2927c478bd9Sstevel@tonic-gate ( 2937c478bd9Sstevel@tonic-gate void *, /* dummy context */ 2947c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 2957c478bd9Sstevel@tonic-gate gss_name_t * /* input_name */ 2967c478bd9Sstevel@tonic-gate /* */); 2977c478bd9Sstevel@tonic-gate 2987c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_inquire_cred 2997c478bd9Sstevel@tonic-gate ( 3007c478bd9Sstevel@tonic-gate void *, /* dummy context */ 3017c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 3027c478bd9Sstevel@tonic-gate gss_cred_id_t, /* cred_handle */ 3037c478bd9Sstevel@tonic-gate gss_name_t *, /* name */ 3047c478bd9Sstevel@tonic-gate OM_uint32 *, /* lifetime */ 3057c478bd9Sstevel@tonic-gate gss_cred_usage_t *, /* cred_usage */ 3067c478bd9Sstevel@tonic-gate gss_OID_set * /* mechanisms */ 3077c478bd9Sstevel@tonic-gate /* */); 3087c478bd9Sstevel@tonic-gate 3097c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_inquire_context 3107c478bd9Sstevel@tonic-gate ( 3117c478bd9Sstevel@tonic-gate void *, /* dummy context */ 3127c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 3137c478bd9Sstevel@tonic-gate gss_ctx_id_t, /* context_handle */ 3147c478bd9Sstevel@tonic-gate gss_name_t *, /* initiator_name */ 3157c478bd9Sstevel@tonic-gate gss_name_t *, /* acceptor_name */ 3167c478bd9Sstevel@tonic-gate OM_uint32 *, /* lifetime_rec */ 3177c478bd9Sstevel@tonic-gate gss_OID *, /* mech_type */ 3187c478bd9Sstevel@tonic-gate OM_uint32 *, /* ret_flags */ 3197c478bd9Sstevel@tonic-gate int *, /* locally_initiated */ 3207c478bd9Sstevel@tonic-gate int * /* open */ 3217c478bd9Sstevel@tonic-gate /* */); 3227c478bd9Sstevel@tonic-gate 3237c478bd9Sstevel@tonic-gate /* New V2 entry points */ 3247c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_get_mic 3257c478bd9Sstevel@tonic-gate ( 3267c478bd9Sstevel@tonic-gate void *, /* dummy context */ 3277c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 3287c478bd9Sstevel@tonic-gate gss_ctx_id_t, /* context_handle */ 3297c478bd9Sstevel@tonic-gate gss_qop_t, /* qop_req */ 3307c478bd9Sstevel@tonic-gate gss_buffer_t, /* message_buffer */ 3317c478bd9Sstevel@tonic-gate gss_buffer_t /* message_token */ 3327c478bd9Sstevel@tonic-gate /* */); 3337c478bd9Sstevel@tonic-gate 3347c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_verify_mic 3357c478bd9Sstevel@tonic-gate ( 3367c478bd9Sstevel@tonic-gate void *, /* dummy context */ 3377c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 3387c478bd9Sstevel@tonic-gate gss_ctx_id_t, /* context_handle */ 3397c478bd9Sstevel@tonic-gate gss_buffer_t, /* message_buffer */ 3407c478bd9Sstevel@tonic-gate gss_buffer_t, /* message_token */ 3417c478bd9Sstevel@tonic-gate gss_qop_t * /* qop_state */ 3427c478bd9Sstevel@tonic-gate /* */); 3437c478bd9Sstevel@tonic-gate 3447c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_wrap 3457c478bd9Sstevel@tonic-gate ( 3467c478bd9Sstevel@tonic-gate void *, /* dummy context */ 3477c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 3487c478bd9Sstevel@tonic-gate gss_ctx_id_t, /* context_handle */ 3497c478bd9Sstevel@tonic-gate int, /* conf_req_flag */ 3507c478bd9Sstevel@tonic-gate gss_qop_t, /* qop_req */ 3517c478bd9Sstevel@tonic-gate gss_buffer_t, /* input_message_buffer */ 3527c478bd9Sstevel@tonic-gate int *, /* conf_state */ 3537c478bd9Sstevel@tonic-gate gss_buffer_t /* output_message_buffer */ 3547c478bd9Sstevel@tonic-gate /* */); 3557c478bd9Sstevel@tonic-gate 3567c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_unwrap 3577c478bd9Sstevel@tonic-gate ( 3587c478bd9Sstevel@tonic-gate void *, /* dummy context */ 3597c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 3607c478bd9Sstevel@tonic-gate gss_ctx_id_t, /* context_handle */ 3617c478bd9Sstevel@tonic-gate gss_buffer_t, /* input_message_buffer */ 3627c478bd9Sstevel@tonic-gate gss_buffer_t, /* output_message_buffer */ 3637c478bd9Sstevel@tonic-gate int *, /* conf_state */ 3647c478bd9Sstevel@tonic-gate gss_qop_t * /* qop_state */ 3657c478bd9Sstevel@tonic-gate /* */); 3667c478bd9Sstevel@tonic-gate 3677c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_wrap_size_limit 3687c478bd9Sstevel@tonic-gate ( 3697c478bd9Sstevel@tonic-gate void *, /* dummy context */ 3707c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 3717c478bd9Sstevel@tonic-gate gss_ctx_id_t, /* context_handle */ 3727c478bd9Sstevel@tonic-gate int, /* conf_req_flag */ 3737c478bd9Sstevel@tonic-gate gss_qop_t, /* qop_req */ 3747c478bd9Sstevel@tonic-gate OM_uint32, /* req_output_size */ 3757c478bd9Sstevel@tonic-gate OM_uint32 * /* max_input_size */ 3767c478bd9Sstevel@tonic-gate /* */); 3777c478bd9Sstevel@tonic-gate 3787c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_add_cred 3797c478bd9Sstevel@tonic-gate ( 3807c478bd9Sstevel@tonic-gate void *, /* dummy context */ 3817c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 3827c478bd9Sstevel@tonic-gate gss_cred_id_t, /* input_cred_handle */ 3837c478bd9Sstevel@tonic-gate gss_name_t, /* desired_name */ 3847c478bd9Sstevel@tonic-gate gss_OID, /* desired_mech */ 3857c478bd9Sstevel@tonic-gate gss_cred_usage_t, /* cred_usage */ 3867c478bd9Sstevel@tonic-gate OM_uint32, /* initiator_time_req */ 3877c478bd9Sstevel@tonic-gate OM_uint32, /* acceptor_time_req */ 3887c478bd9Sstevel@tonic-gate gss_cred_id_t *, /* output_cred_handle */ 3897c478bd9Sstevel@tonic-gate gss_OID_set *, /* actual_mechs */ 3907c478bd9Sstevel@tonic-gate OM_uint32 *, /* initiator_time_rec */ 3917c478bd9Sstevel@tonic-gate OM_uint32 * /* acceptor_time_rec */ 3927c478bd9Sstevel@tonic-gate /* */); 3937c478bd9Sstevel@tonic-gate 3947c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_inquire_cred_by_mech 3957c478bd9Sstevel@tonic-gate ( 3967c478bd9Sstevel@tonic-gate void *, /* dummy context */ 3977c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 3987c478bd9Sstevel@tonic-gate gss_cred_id_t, /* cred_handle */ 3997c478bd9Sstevel@tonic-gate gss_OID, /* mech_type */ 4007c478bd9Sstevel@tonic-gate gss_name_t *, /* name */ 4017c478bd9Sstevel@tonic-gate OM_uint32 *, /* initiator_lifetime */ 4027c478bd9Sstevel@tonic-gate OM_uint32 *, /* acceptor_lifetime */ 4037c478bd9Sstevel@tonic-gate gss_cred_usage_t * /* cred_usage */ 4047c478bd9Sstevel@tonic-gate /* */); 4057c478bd9Sstevel@tonic-gate 4067c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_export_sec_context 4077c478bd9Sstevel@tonic-gate ( 4087c478bd9Sstevel@tonic-gate void *, /* dummy context */ 4097c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 4107c478bd9Sstevel@tonic-gate gss_ctx_id_t *, /* context_handle */ 4117c478bd9Sstevel@tonic-gate gss_buffer_t /* interprocess_token */ 4127c478bd9Sstevel@tonic-gate /* */); 4137c478bd9Sstevel@tonic-gate 4147c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_import_sec_context 4157c478bd9Sstevel@tonic-gate ( 4167c478bd9Sstevel@tonic-gate void *, /* dummy context */ 4177c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 4187c478bd9Sstevel@tonic-gate gss_buffer_t, /* interprocess_token */ 4197c478bd9Sstevel@tonic-gate gss_ctx_id_t * /* context_handle */ 4207c478bd9Sstevel@tonic-gate /* */); 4217c478bd9Sstevel@tonic-gate 4227c478bd9Sstevel@tonic-gate #if 0 4237c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_release_oid 4247c478bd9Sstevel@tonic-gate ( 4257c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 4267c478bd9Sstevel@tonic-gate gss_OID * /* oid */ 4277c478bd9Sstevel@tonic-gate /* */); 4287c478bd9Sstevel@tonic-gate #endif 4297c478bd9Sstevel@tonic-gate 4307c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_internal_release_oid 4317c478bd9Sstevel@tonic-gate ( 4327c478bd9Sstevel@tonic-gate void *, /* dummy context */ 4337c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 4347c478bd9Sstevel@tonic-gate gss_OID * /* oid */ 4357c478bd9Sstevel@tonic-gate /* */); 4367c478bd9Sstevel@tonic-gate 4377c478bd9Sstevel@tonic-gate OM_uint32 dummy_gss_inquire_names_for_mech 4387c478bd9Sstevel@tonic-gate ( 4397c478bd9Sstevel@tonic-gate void *, /* dummy context */ 4407c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor_status */ 4417c478bd9Sstevel@tonic-gate gss_OID, /* mechanism */ 4427c478bd9Sstevel@tonic-gate gss_OID_set * /* name_types */ 4437c478bd9Sstevel@tonic-gate /* */); 4447c478bd9Sstevel@tonic-gate 4457c478bd9Sstevel@tonic-gate OM_uint32 dummy_pname_to_uid 4467c478bd9Sstevel@tonic-gate ( 4477c478bd9Sstevel@tonic-gate void *, /* dummy context */ 4487c478bd9Sstevel@tonic-gate OM_uint32 *, /* minor status */ 4497c478bd9Sstevel@tonic-gate const gss_name_t, /* pname */ 4507c478bd9Sstevel@tonic-gate uid_t * /* uidOut */ 4517c478bd9Sstevel@tonic-gate /* */); 4527c478bd9Sstevel@tonic-gate 4537c478bd9Sstevel@tonic-gate 4547c478bd9Sstevel@tonic-gate #ifdef __cplusplus 4557c478bd9Sstevel@tonic-gate } 4567c478bd9Sstevel@tonic-gate #endif 4577c478bd9Sstevel@tonic-gate 4587c478bd9Sstevel@tonic-gate #endif /* _GSSAPIP_DUMMY_H */ 459