xref: /onnv-gate/usr/src/uts/common/gssapi/include/gssapiP_dummy.h (revision 0:68f95e015346)
1*0Sstevel@tonic-gate /*
2*0Sstevel@tonic-gate  * CDDL HEADER START
3*0Sstevel@tonic-gate  *
4*0Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*0Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
6*0Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
7*0Sstevel@tonic-gate  * with the License.
8*0Sstevel@tonic-gate  *
9*0Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*0Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
11*0Sstevel@tonic-gate  * See the License for the specific language governing permissions
12*0Sstevel@tonic-gate  * and limitations under the License.
13*0Sstevel@tonic-gate  *
14*0Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
15*0Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*0Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
17*0Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
18*0Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
19*0Sstevel@tonic-gate  *
20*0Sstevel@tonic-gate  * CDDL HEADER END
21*0Sstevel@tonic-gate  */
22*0Sstevel@tonic-gate /*
23*0Sstevel@tonic-gate  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24*0Sstevel@tonic-gate  * Use is subject to license terms.
25*0Sstevel@tonic-gate  */
26*0Sstevel@tonic-gate 
27*0Sstevel@tonic-gate #ifndef	_GSSAPIP_DUMMY_H
28*0Sstevel@tonic-gate #define	_GSSAPIP_DUMMY_H
29*0Sstevel@tonic-gate 
30*0Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
31*0Sstevel@tonic-gate 
32*0Sstevel@tonic-gate #ifdef	__cplusplus
33*0Sstevel@tonic-gate extern "C" {
34*0Sstevel@tonic-gate #endif
35*0Sstevel@tonic-gate 
36*0Sstevel@tonic-gate #include <gssapi/gssapi.h>
37*0Sstevel@tonic-gate 
38*0Sstevel@tonic-gate #define	SEC_CONTEXT_TOKEN 1
39*0Sstevel@tonic-gate #define	DUMMY_SIZE_OF_INT 4
40*0Sstevel@tonic-gate 
41*0Sstevel@tonic-gate typedef void * dummy_token_t;
42*0Sstevel@tonic-gate 
43*0Sstevel@tonic-gate /* dummy name structure for internal representation. */
44*0Sstevel@tonic-gate typedef struct {
45*0Sstevel@tonic-gate 	gss_OID type;
46*0Sstevel@tonic-gate 	gss_buffer_t buffer;
47*0Sstevel@tonic-gate } dummy_name_desc, *dummy_name_t;
48*0Sstevel@tonic-gate 
49*0Sstevel@tonic-gate /* Structure for context handle */
50*0Sstevel@tonic-gate typedef struct {
51*0Sstevel@tonic-gate 	OM_uint32 last_stat;
52*0Sstevel@tonic-gate 	int token_number;
53*0Sstevel@tonic-gate 	int established;
54*0Sstevel@tonic-gate } dummy_gss_ctx_id_rec, *dummy_gss_ctx_id_t;
55*0Sstevel@tonic-gate 
56*0Sstevel@tonic-gate /* Dummy oid structure */
57*0Sstevel@tonic-gate static const gss_OID_desc dummy_oids[] = {
58*0Sstevel@tonic-gate 	{10, "\053\006\001\004\001\052\002\032\001\002"},
59*0Sstevel@tonic-gate };
60*0Sstevel@tonic-gate const gss_OID_desc * const gss_mech_dummy = dummy_oids+0;
61*0Sstevel@tonic-gate static const gss_OID_set_desc dummy_oidsets[] = {
62*0Sstevel@tonic-gate 	{1, (gss_OID) dummy_oids+0},
63*0Sstevel@tonic-gate };
64*0Sstevel@tonic-gate const gss_OID_set_desc * const gss_mech_set_dummy = dummy_oidsets+0;
65*0Sstevel@tonic-gate 
66*0Sstevel@tonic-gate #define	TWRITE_STR(ptr, str, len) \
67*0Sstevel@tonic-gate 	(void) memcpy((ptr), (char *) (str), (len)); \
68*0Sstevel@tonic-gate 	(ptr) += (len);
69*0Sstevel@tonic-gate #ifndef	_KERNEL
70*0Sstevel@tonic-gate 
71*0Sstevel@tonic-gate #ifdef DEBUG_ON
72*0Sstevel@tonic-gate 
73*0Sstevel@tonic-gate #define	dprintf(a) printf(a)
74*0Sstevel@tonic-gate #define	dprintf1(a, b) printf(a, b)
75*0Sstevel@tonic-gate 
76*0Sstevel@tonic-gate #else
77*0Sstevel@tonic-gate 
78*0Sstevel@tonic-gate #define	dprintf(a)
79*0Sstevel@tonic-gate #define	dprintf1(a, b)
80*0Sstevel@tonic-gate #define	DUMMY_STATIC
81*0Sstevel@tonic-gate 
82*0Sstevel@tonic-gate #endif	/* DEBUG_ON */
83*0Sstevel@tonic-gate 
84*0Sstevel@tonic-gate #else	/* _KERNEL */
85*0Sstevel@tonic-gate 
86*0Sstevel@tonic-gate #if defined(DEBUG) && !defined(DUMMY_MECH_DEBUG)
87*0Sstevel@tonic-gate #define	DUMMY_MECH_DEBUG
88*0Sstevel@tonic-gate #endif
89*0Sstevel@tonic-gate 
90*0Sstevel@tonic-gate #ifdef DUMMY_MECH_DEBUG
91*0Sstevel@tonic-gate #define	DUMMY_MECH_LOG(A, B, C) \
92*0Sstevel@tonic-gate 	((void)((dummy_mech_log & (A)) && (printf((B), (C)), TRUE)))
93*0Sstevel@tonic-gate #define	DUMMY_MECH_LOG0(A, B)   \
94*0Sstevel@tonic-gate 	((void)((dummy_mech_log & (A)) && (printf(B), TRUE)))
95*0Sstevel@tonic-gate #else
96*0Sstevel@tonic-gate #define	DUMMY_MECH_LOG(A, B, C)
97*0Sstevel@tonic-gate #define	DUMMY_MECH_LOG0(A, B)
98*0Sstevel@tonic-gate 
99*0Sstevel@tonic-gate #endif
100*0Sstevel@tonic-gate 
101*0Sstevel@tonic-gate #define	dprintf(a)	DUMMY_MECH_LOG0(8, a)
102*0Sstevel@tonic-gate #define	dprintf1(a, b)	DUMMY_MECH_LOG(8, a, b)
103*0Sstevel@tonic-gate #define	DUMMY_STATIC	static
104*0Sstevel@tonic-gate 
105*0Sstevel@tonic-gate #endif	/* _KERNEL */
106*0Sstevel@tonic-gate 
107*0Sstevel@tonic-gate /*
108*0Sstevel@tonic-gate  * declarations of internal name mechanism functions
109*0Sstevel@tonic-gate  */
110*0Sstevel@tonic-gate 
111*0Sstevel@tonic-gate OM_uint32 dummy_gss_acquire_cred
112*0Sstevel@tonic-gate 	(
113*0Sstevel@tonic-gate 		void *,			/* dummy context */
114*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
115*0Sstevel@tonic-gate 		gss_name_t,		/* desired_name */
116*0Sstevel@tonic-gate 		OM_uint32,		/* time_req */
117*0Sstevel@tonic-gate 		gss_OID_set,		/* desired_mechs */
118*0Sstevel@tonic-gate 		gss_cred_usage_t,	/* cred_usage */
119*0Sstevel@tonic-gate 		gss_cred_id_t *,	/* output_cred_handle */
120*0Sstevel@tonic-gate 		gss_OID_set *,		/* actual_mechs */
121*0Sstevel@tonic-gate 		OM_uint32 *		/* time_rec */
122*0Sstevel@tonic-gate 	/* */);
123*0Sstevel@tonic-gate 
124*0Sstevel@tonic-gate OM_uint32 dummy_gss_release_cred
125*0Sstevel@tonic-gate 	(
126*0Sstevel@tonic-gate 		void *,			/* dummy context */
127*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
128*0Sstevel@tonic-gate 		gss_cred_id_t *		/* cred_handle */
129*0Sstevel@tonic-gate 	/* */);
130*0Sstevel@tonic-gate 
131*0Sstevel@tonic-gate OM_uint32 dummy_gss_init_sec_context
132*0Sstevel@tonic-gate 	(
133*0Sstevel@tonic-gate 		void *,			/* dummy context */
134*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
135*0Sstevel@tonic-gate 		gss_cred_id_t,		/* claimant_cred_handle */
136*0Sstevel@tonic-gate 		gss_ctx_id_t *,		/* context_handle */
137*0Sstevel@tonic-gate 		gss_name_t,		/* target_name */
138*0Sstevel@tonic-gate 		gss_OID,		/* mech_type */
139*0Sstevel@tonic-gate 		OM_uint32,		/* req_flags */
140*0Sstevel@tonic-gate 		OM_uint32,		/* time_req */
141*0Sstevel@tonic-gate 		gss_channel_bindings_t, /* input_chan_bindings */
142*0Sstevel@tonic-gate 		gss_buffer_t,		/* input_token */
143*0Sstevel@tonic-gate 		gss_OID *,		/* actual_mech_type */
144*0Sstevel@tonic-gate 		gss_buffer_t,		/* output_token */
145*0Sstevel@tonic-gate 		OM_uint32 *,		/* ret_flags */
146*0Sstevel@tonic-gate 		OM_uint32 *		/* time_rec */
147*0Sstevel@tonic-gate 	/* */);
148*0Sstevel@tonic-gate 
149*0Sstevel@tonic-gate OM_uint32 dummy_gss_accept_sec_context
150*0Sstevel@tonic-gate 	(
151*0Sstevel@tonic-gate 		void *,			/* dummy context */
152*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
153*0Sstevel@tonic-gate 		gss_ctx_id_t *,		/* context_handle */
154*0Sstevel@tonic-gate 		gss_cred_id_t,		/* verifier_cred_handle */
155*0Sstevel@tonic-gate 		gss_buffer_t,		/* input_token_buffer */
156*0Sstevel@tonic-gate 		gss_channel_bindings_t, /* input_chan_bindings */
157*0Sstevel@tonic-gate 		gss_name_t *,		/* src_name */
158*0Sstevel@tonic-gate 		gss_OID *,		/* mech_type */
159*0Sstevel@tonic-gate 		gss_buffer_t,		/* output_token */
160*0Sstevel@tonic-gate 		OM_uint32 *,		/* ret_flags */
161*0Sstevel@tonic-gate 		OM_uint32 *,		/* time_rec */
162*0Sstevel@tonic-gate 		gss_cred_id_t *		/* delegated_cred_handle */
163*0Sstevel@tonic-gate 	/* */);
164*0Sstevel@tonic-gate 
165*0Sstevel@tonic-gate OM_uint32 dummy_gss_process_context_token
166*0Sstevel@tonic-gate 	(
167*0Sstevel@tonic-gate 		void *,			/* dummy context */
168*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
169*0Sstevel@tonic-gate 		gss_ctx_id_t,		/* context_handle */
170*0Sstevel@tonic-gate 		gss_buffer_t		/* token_buffer */
171*0Sstevel@tonic-gate 	/* */);
172*0Sstevel@tonic-gate 
173*0Sstevel@tonic-gate DUMMY_STATIC OM_uint32 dummy_gss_delete_sec_context
174*0Sstevel@tonic-gate 	(
175*0Sstevel@tonic-gate 		void *,			/* dummy context */
176*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
177*0Sstevel@tonic-gate 		gss_ctx_id_t *,		/* context_handle */
178*0Sstevel@tonic-gate 		gss_buffer_t		/* output_token */
179*0Sstevel@tonic-gate #ifdef	_KERNEL
180*0Sstevel@tonic-gate 	/* */, OM_uint32
181*0Sstevel@tonic-gate #endif
182*0Sstevel@tonic-gate 	/* */);
183*0Sstevel@tonic-gate 
184*0Sstevel@tonic-gate OM_uint32 dummy_gss_context_time
185*0Sstevel@tonic-gate 	(
186*0Sstevel@tonic-gate 		void *,			/* dummy context */
187*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
188*0Sstevel@tonic-gate 		gss_ctx_id_t,		/* context_handle */
189*0Sstevel@tonic-gate 		OM_uint32 *		/* time_rec */
190*0Sstevel@tonic-gate 	/* */);
191*0Sstevel@tonic-gate 
192*0Sstevel@tonic-gate DUMMY_STATIC OM_uint32 dummy_gss_sign
193*0Sstevel@tonic-gate 	(
194*0Sstevel@tonic-gate 		void *,			/* dummy context */
195*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
196*0Sstevel@tonic-gate 		gss_ctx_id_t,		/* context_handle */
197*0Sstevel@tonic-gate 		int,			/* qop_req */
198*0Sstevel@tonic-gate 		gss_buffer_t,		/* message_buffer */
199*0Sstevel@tonic-gate 		gss_buffer_t		/* message_token */
200*0Sstevel@tonic-gate #ifdef	_KERNEL
201*0Sstevel@tonic-gate 	/* */, OM_uint32
202*0Sstevel@tonic-gate #endif
203*0Sstevel@tonic-gate 	/* */);
204*0Sstevel@tonic-gate 
205*0Sstevel@tonic-gate DUMMY_STATIC OM_uint32 dummy_gss_verify
206*0Sstevel@tonic-gate 	(
207*0Sstevel@tonic-gate 		void *,			/* dummy context */
208*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
209*0Sstevel@tonic-gate 		gss_ctx_id_t,		/* context_handle */
210*0Sstevel@tonic-gate 		gss_buffer_t,		/* message_buffer */
211*0Sstevel@tonic-gate 		gss_buffer_t,		/* token_buffer */
212*0Sstevel@tonic-gate 		int *			/* qop_state */
213*0Sstevel@tonic-gate #ifdef	_KERNEL
214*0Sstevel@tonic-gate 	/* */, OM_uint32
215*0Sstevel@tonic-gate 
216*0Sstevel@tonic-gate #endif
217*0Sstevel@tonic-gate 	/* */);
218*0Sstevel@tonic-gate /* EXPORT DELETE START */
219*0Sstevel@tonic-gate DUMMY_STATIC OM_uint32 dummy_gss_seal
220*0Sstevel@tonic-gate 	(
221*0Sstevel@tonic-gate 		void *,			/* dummy context */
222*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
223*0Sstevel@tonic-gate 		gss_ctx_id_t,		/* context_handle */
224*0Sstevel@tonic-gate 		int,			/* conf_req_flag */
225*0Sstevel@tonic-gate 		int,			/* qop_req */
226*0Sstevel@tonic-gate 		gss_buffer_t,		/* input_message_buffer */
227*0Sstevel@tonic-gate 		int *,			/* conf_state */
228*0Sstevel@tonic-gate 		gss_buffer_t		/* output_message_buffer */
229*0Sstevel@tonic-gate #ifdef	_KERNEL
230*0Sstevel@tonic-gate 	/* */, OM_uint32
231*0Sstevel@tonic-gate #endif
232*0Sstevel@tonic-gate 	/* */);
233*0Sstevel@tonic-gate 
234*0Sstevel@tonic-gate DUMMY_STATIC OM_uint32 dummy_gss_unseal
235*0Sstevel@tonic-gate 	(
236*0Sstevel@tonic-gate 		void *,			/* dummy context */
237*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
238*0Sstevel@tonic-gate 		gss_ctx_id_t,		/* context_handle */
239*0Sstevel@tonic-gate 		gss_buffer_t,		/* input_message_buffer */
240*0Sstevel@tonic-gate 		gss_buffer_t,		/* output_message_buffer */
241*0Sstevel@tonic-gate 		int *,			/* conf_state */
242*0Sstevel@tonic-gate 		int *			/* qop_state */
243*0Sstevel@tonic-gate #ifdef	_KERNEL
244*0Sstevel@tonic-gate 	/* */, OM_uint32
245*0Sstevel@tonic-gate #endif
246*0Sstevel@tonic-gate 	/* */);
247*0Sstevel@tonic-gate /* EXPORT DELETE END */
248*0Sstevel@tonic-gate 
249*0Sstevel@tonic-gate OM_uint32 dummy_gss_display_status
250*0Sstevel@tonic-gate 	(
251*0Sstevel@tonic-gate 		void *,			/* dummy context */
252*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
253*0Sstevel@tonic-gate 		OM_uint32,		/* status_value */
254*0Sstevel@tonic-gate 		int,			/* status_type */
255*0Sstevel@tonic-gate 		gss_OID,		/* mech_type */
256*0Sstevel@tonic-gate 		OM_uint32 *,		/* message_context */
257*0Sstevel@tonic-gate 		gss_buffer_t		/* status_string */
258*0Sstevel@tonic-gate 	/* */);
259*0Sstevel@tonic-gate 
260*0Sstevel@tonic-gate OM_uint32 dummy_gss_indicate_mechs
261*0Sstevel@tonic-gate 	(
262*0Sstevel@tonic-gate 		void *,			/* dummy context */
263*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
264*0Sstevel@tonic-gate 		gss_OID_set *		/* mech_set */
265*0Sstevel@tonic-gate 	/* */);
266*0Sstevel@tonic-gate 
267*0Sstevel@tonic-gate OM_uint32 dummy_gss_compare_name
268*0Sstevel@tonic-gate 	(
269*0Sstevel@tonic-gate 		void *,			/* dummy context */
270*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
271*0Sstevel@tonic-gate 		gss_name_t,		/* name1 */
272*0Sstevel@tonic-gate 		gss_name_t,		/* name2 */
273*0Sstevel@tonic-gate 		int *			/* name_equal */
274*0Sstevel@tonic-gate 	/* */);
275*0Sstevel@tonic-gate 
276*0Sstevel@tonic-gate OM_uint32 dummy_gss_display_name
277*0Sstevel@tonic-gate 	(
278*0Sstevel@tonic-gate 		void *,			/* dummy context */
279*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
280*0Sstevel@tonic-gate 		gss_name_t,		/* input_name */
281*0Sstevel@tonic-gate 		gss_buffer_t,		/* output_name_buffer */
282*0Sstevel@tonic-gate 		gss_OID *		/* output_name_type */
283*0Sstevel@tonic-gate 	/* */);
284*0Sstevel@tonic-gate 
285*0Sstevel@tonic-gate OM_uint32 dummy_gss_import_name
286*0Sstevel@tonic-gate 	(
287*0Sstevel@tonic-gate 		void *,			/* dummy context */
288*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
289*0Sstevel@tonic-gate 		gss_buffer_t,		/* input_name_buffer */
290*0Sstevel@tonic-gate 		gss_OID,		/* input_name_type */
291*0Sstevel@tonic-gate 		gss_name_t *		/* output_name */
292*0Sstevel@tonic-gate 	/* */);
293*0Sstevel@tonic-gate 
294*0Sstevel@tonic-gate OM_uint32 dummy_gss_release_name
295*0Sstevel@tonic-gate 	(
296*0Sstevel@tonic-gate 		void *,			/* dummy context */
297*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
298*0Sstevel@tonic-gate 		gss_name_t *		/* input_name */
299*0Sstevel@tonic-gate 	/* */);
300*0Sstevel@tonic-gate 
301*0Sstevel@tonic-gate OM_uint32 dummy_gss_inquire_cred
302*0Sstevel@tonic-gate 	(
303*0Sstevel@tonic-gate 		void *,			/* dummy context */
304*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
305*0Sstevel@tonic-gate 		gss_cred_id_t,		/* cred_handle */
306*0Sstevel@tonic-gate 		gss_name_t *,		/* name */
307*0Sstevel@tonic-gate 		OM_uint32 *,		/* lifetime */
308*0Sstevel@tonic-gate 		gss_cred_usage_t *,	/* cred_usage */
309*0Sstevel@tonic-gate 		gss_OID_set *		/* mechanisms */
310*0Sstevel@tonic-gate 	/* */);
311*0Sstevel@tonic-gate 
312*0Sstevel@tonic-gate OM_uint32 dummy_gss_inquire_context
313*0Sstevel@tonic-gate 	(
314*0Sstevel@tonic-gate 		void *,			/* dummy context */
315*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
316*0Sstevel@tonic-gate 		gss_ctx_id_t,		/* context_handle */
317*0Sstevel@tonic-gate 		gss_name_t *,		/* initiator_name */
318*0Sstevel@tonic-gate 		gss_name_t *,		/* acceptor_name */
319*0Sstevel@tonic-gate 		OM_uint32 *,		/* lifetime_rec */
320*0Sstevel@tonic-gate 		gss_OID *,		/* mech_type */
321*0Sstevel@tonic-gate 		OM_uint32 *,		/* ret_flags */
322*0Sstevel@tonic-gate 		int *,			/* locally_initiated */
323*0Sstevel@tonic-gate 		int *			/* open */
324*0Sstevel@tonic-gate 	/* */);
325*0Sstevel@tonic-gate 
326*0Sstevel@tonic-gate /* New V2 entry points */
327*0Sstevel@tonic-gate OM_uint32 dummy_gss_get_mic
328*0Sstevel@tonic-gate 	(
329*0Sstevel@tonic-gate 		void *,			/* dummy context */
330*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
331*0Sstevel@tonic-gate 		gss_ctx_id_t,		/* context_handle */
332*0Sstevel@tonic-gate 		gss_qop_t,		/* qop_req */
333*0Sstevel@tonic-gate 		gss_buffer_t,		/* message_buffer */
334*0Sstevel@tonic-gate 		gss_buffer_t		/* message_token */
335*0Sstevel@tonic-gate 	/* */);
336*0Sstevel@tonic-gate 
337*0Sstevel@tonic-gate OM_uint32 dummy_gss_verify_mic
338*0Sstevel@tonic-gate 	(
339*0Sstevel@tonic-gate 		void *,			/* dummy context */
340*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
341*0Sstevel@tonic-gate 		gss_ctx_id_t,		/* context_handle */
342*0Sstevel@tonic-gate 		gss_buffer_t,		/* message_buffer */
343*0Sstevel@tonic-gate 		gss_buffer_t,		/* message_token */
344*0Sstevel@tonic-gate 		gss_qop_t *		/* qop_state */
345*0Sstevel@tonic-gate 	/* */);
346*0Sstevel@tonic-gate 
347*0Sstevel@tonic-gate OM_uint32 dummy_gss_wrap
348*0Sstevel@tonic-gate 	(
349*0Sstevel@tonic-gate 		void *,			/* dummy context */
350*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
351*0Sstevel@tonic-gate 		gss_ctx_id_t,		/* context_handle */
352*0Sstevel@tonic-gate 		int,			/* conf_req_flag */
353*0Sstevel@tonic-gate 		gss_qop_t,		/* qop_req */
354*0Sstevel@tonic-gate 		gss_buffer_t,		/* input_message_buffer */
355*0Sstevel@tonic-gate 		int *,			/* conf_state */
356*0Sstevel@tonic-gate 		gss_buffer_t		/* output_message_buffer */
357*0Sstevel@tonic-gate 	/* */);
358*0Sstevel@tonic-gate 
359*0Sstevel@tonic-gate OM_uint32 dummy_gss_unwrap
360*0Sstevel@tonic-gate 	(
361*0Sstevel@tonic-gate 		void *,			/* dummy context */
362*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
363*0Sstevel@tonic-gate 		gss_ctx_id_t,		/* context_handle */
364*0Sstevel@tonic-gate 		gss_buffer_t,		/* input_message_buffer */
365*0Sstevel@tonic-gate 		gss_buffer_t,		/* output_message_buffer */
366*0Sstevel@tonic-gate 		int *,			/* conf_state */
367*0Sstevel@tonic-gate 		gss_qop_t *		/* qop_state */
368*0Sstevel@tonic-gate 	/* */);
369*0Sstevel@tonic-gate 
370*0Sstevel@tonic-gate OM_uint32 dummy_gss_wrap_size_limit
371*0Sstevel@tonic-gate 	(
372*0Sstevel@tonic-gate 		void *,			/* dummy context */
373*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
374*0Sstevel@tonic-gate 		gss_ctx_id_t,		/* context_handle */
375*0Sstevel@tonic-gate 		int,			/* conf_req_flag */
376*0Sstevel@tonic-gate 		gss_qop_t,		/* qop_req */
377*0Sstevel@tonic-gate 		OM_uint32,		/* req_output_size */
378*0Sstevel@tonic-gate 		OM_uint32 *		/* max_input_size */
379*0Sstevel@tonic-gate 	/* */);
380*0Sstevel@tonic-gate 
381*0Sstevel@tonic-gate OM_uint32 dummy_gss_add_cred
382*0Sstevel@tonic-gate 	(
383*0Sstevel@tonic-gate 		void *,			/* dummy context */
384*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
385*0Sstevel@tonic-gate 		gss_cred_id_t,		/* input_cred_handle */
386*0Sstevel@tonic-gate 		gss_name_t,		/* desired_name */
387*0Sstevel@tonic-gate 		gss_OID,		/* desired_mech */
388*0Sstevel@tonic-gate 		gss_cred_usage_t,	/* cred_usage */
389*0Sstevel@tonic-gate 		OM_uint32,		/* initiator_time_req */
390*0Sstevel@tonic-gate 		OM_uint32,		/* acceptor_time_req */
391*0Sstevel@tonic-gate 		gss_cred_id_t *,	/* output_cred_handle */
392*0Sstevel@tonic-gate 		gss_OID_set *,		/* actual_mechs */
393*0Sstevel@tonic-gate 		OM_uint32 *,		/* initiator_time_rec */
394*0Sstevel@tonic-gate 		OM_uint32 *		/* acceptor_time_rec */
395*0Sstevel@tonic-gate 	/* */);
396*0Sstevel@tonic-gate 
397*0Sstevel@tonic-gate OM_uint32 dummy_gss_inquire_cred_by_mech
398*0Sstevel@tonic-gate 	(
399*0Sstevel@tonic-gate 		void *,			/* dummy context */
400*0Sstevel@tonic-gate 		OM_uint32  *,		/* minor_status */
401*0Sstevel@tonic-gate 		gss_cred_id_t,		/* cred_handle */
402*0Sstevel@tonic-gate 		gss_OID,		/* mech_type */
403*0Sstevel@tonic-gate 		gss_name_t *,		/* name */
404*0Sstevel@tonic-gate 		OM_uint32 *,		/* initiator_lifetime */
405*0Sstevel@tonic-gate 		OM_uint32 *,		/* acceptor_lifetime */
406*0Sstevel@tonic-gate 		gss_cred_usage_t *	/* cred_usage */
407*0Sstevel@tonic-gate 	/* */);
408*0Sstevel@tonic-gate 
409*0Sstevel@tonic-gate OM_uint32 dummy_gss_export_sec_context
410*0Sstevel@tonic-gate 	(
411*0Sstevel@tonic-gate 		void *,			/* dummy context */
412*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
413*0Sstevel@tonic-gate 		gss_ctx_id_t *,		/* context_handle */
414*0Sstevel@tonic-gate 		gss_buffer_t		/* interprocess_token */
415*0Sstevel@tonic-gate 	/* */);
416*0Sstevel@tonic-gate 
417*0Sstevel@tonic-gate OM_uint32 dummy_gss_import_sec_context
418*0Sstevel@tonic-gate 	(
419*0Sstevel@tonic-gate 		void *,			/* dummy context */
420*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
421*0Sstevel@tonic-gate 		gss_buffer_t,		/* interprocess_token */
422*0Sstevel@tonic-gate 		gss_ctx_id_t *		/* context_handle */
423*0Sstevel@tonic-gate 	/* */);
424*0Sstevel@tonic-gate 
425*0Sstevel@tonic-gate #if 0
426*0Sstevel@tonic-gate OM_uint32 dummy_gss_release_oid
427*0Sstevel@tonic-gate 	(
428*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
429*0Sstevel@tonic-gate 		gss_OID *		/* oid */
430*0Sstevel@tonic-gate 	/* */);
431*0Sstevel@tonic-gate #endif
432*0Sstevel@tonic-gate 
433*0Sstevel@tonic-gate OM_uint32 dummy_gss_internal_release_oid
434*0Sstevel@tonic-gate 	(
435*0Sstevel@tonic-gate 		void *,			/* dummy context  */
436*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
437*0Sstevel@tonic-gate 		gss_OID *		/* oid */
438*0Sstevel@tonic-gate 	/* */);
439*0Sstevel@tonic-gate 
440*0Sstevel@tonic-gate OM_uint32 dummy_gss_inquire_names_for_mech
441*0Sstevel@tonic-gate 	(
442*0Sstevel@tonic-gate 		void *,		/* dummy context */
443*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor_status */
444*0Sstevel@tonic-gate 		gss_OID,		/* mechanism */
445*0Sstevel@tonic-gate 		gss_OID_set *		/* name_types */
446*0Sstevel@tonic-gate 	/* */);
447*0Sstevel@tonic-gate 
448*0Sstevel@tonic-gate OM_uint32 dummy_pname_to_uid
449*0Sstevel@tonic-gate 	(
450*0Sstevel@tonic-gate 		void *,			/* dummy context */
451*0Sstevel@tonic-gate 		OM_uint32 *,		/* minor status */
452*0Sstevel@tonic-gate 		const gss_name_t,	/* pname */
453*0Sstevel@tonic-gate 		uid_t *			/* uidOut */
454*0Sstevel@tonic-gate 	/* */);
455*0Sstevel@tonic-gate 
456*0Sstevel@tonic-gate 
457*0Sstevel@tonic-gate #ifdef	__cplusplus
458*0Sstevel@tonic-gate }
459*0Sstevel@tonic-gate #endif
460*0Sstevel@tonic-gate 
461*0Sstevel@tonic-gate #endif /* _GSSAPIP_DUMMY_H */
462