xref: /netbsd-src/crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/spnego-private.h (revision 241bea01a19bbb306af27777a870b86d41cb3fda)
1 /*	$NetBSD: spnego-private.h,v 1.2 2019/12/15 22:50:48 christos Exp $	*/
2 
3 /* This is a generated file */
4 #ifndef __spnego_private_h__
5 #define __spnego_private_h__
6 
7 #include <stdarg.h>
8 
9 gssapi_mech_interface
10 __gss_spnego_initialize (void);
11 
12 OM_uint32 GSSAPI_CALLCONV
13 _gss_spnego_accept_sec_context (
14 	OM_uint32 * /*minor_status*/,
15 	gss_ctx_id_t * /*context_handle*/,
16 	gss_const_cred_id_t /*acceptor_cred_handle*/,
17 	const gss_buffer_t /*input_token_buffer*/,
18 	const gss_channel_bindings_t /*input_chan_bindings*/,
19 	gss_name_t * /*src_name*/,
20 	gss_OID * /*mech_type*/,
21 	gss_buffer_t /*output_token*/,
22 	OM_uint32 * /*ret_flags*/,
23 	OM_uint32 * /*time_rec*/,
24 	gss_cred_id_t *delegated_cred_handle );
25 
26 OM_uint32 GSSAPI_CALLCONV
27 _gss_spnego_acquire_cred (
28 	OM_uint32 */*minor_status*/,
29 	gss_const_name_t /*desired_name*/,
30 	OM_uint32 /*time_req*/,
31 	const gss_OID_set /*desired_mechs*/,
32 	gss_cred_usage_t /*cred_usage*/,
33 	gss_cred_id_t * /*output_cred_handle*/,
34 	gss_OID_set * /*actual_mechs*/,
35 	OM_uint32 * time_rec );
36 
37 OM_uint32 GSSAPI_CALLCONV
38 _gss_spnego_alloc_sec_context (
39 	OM_uint32 * /*minor_status*/,
40 	gss_ctx_id_t */*context_handle*/);
41 
42 OM_uint32 GSSAPI_CALLCONV
43 _gss_spnego_canonicalize_name (
44 	 OM_uint32 * /*minor_status*/,
45 	gss_const_name_t /*input_name*/,
46 	const gss_OID /*mech_type*/,
47 	gss_name_t * output_name );
48 
49 OM_uint32 GSSAPI_CALLCONV
50 _gss_spnego_compare_name (
51 	OM_uint32 */*minor_status*/,
52 	gss_const_name_t /*name1*/,
53 	gss_const_name_t /*name2*/,
54 	int * name_equal );
55 
56 OM_uint32 GSSAPI_CALLCONV
57 _gss_spnego_context_time (
58 	OM_uint32 */*minor_status*/,
59 	gss_const_ctx_id_t /*context_handle*/,
60 	OM_uint32 *time_rec );
61 
62 OM_uint32 GSSAPI_CALLCONV
63 _gss_spnego_delete_sec_context (
64 	OM_uint32 */*minor_status*/,
65 	gss_ctx_id_t */*context_handle*/,
66 	gss_buffer_t output_token );
67 
68 OM_uint32 GSSAPI_CALLCONV
69 _gss_spnego_display_name (
70 	OM_uint32 * /*minor_status*/,
71 	gss_const_name_t /*input_name*/,
72 	gss_buffer_t /*output_name_buffer*/,
73 	gss_OID * output_name_type );
74 
75 OM_uint32 GSSAPI_CALLCONV
76 _gss_spnego_duplicate_name (
77 	 OM_uint32 * /*minor_status*/,
78 	gss_const_name_t /*src_name*/,
79 	gss_name_t * dest_name );
80 
81 OM_uint32 GSSAPI_CALLCONV
82 _gss_spnego_export_cred (
83 	OM_uint32 */*minor_status*/,
84 	gss_cred_id_t /*cred_handle*/,
85 	gss_buffer_t /*value*/);
86 
87 OM_uint32 GSSAPI_CALLCONV
88 _gss_spnego_export_name (
89 	OM_uint32 * /*minor_status*/,
90 	gss_const_name_t /*input_name*/,
91 	gss_buffer_t exported_name );
92 
93 OM_uint32 GSSAPI_CALLCONV
94 _gss_spnego_export_sec_context (
95 	 OM_uint32 * /*minor_status*/,
96 	gss_ctx_id_t * /*context_handle*/,
97 	gss_buffer_t interprocess_token );
98 
99 OM_uint32 GSSAPI_CALLCONV
100 _gss_spnego_get_mic (
101 	OM_uint32 */*minor_status*/,
102 	gss_const_ctx_id_t /*context_handle*/,
103 	gss_qop_t /*qop_req*/,
104 	const gss_buffer_t /*message_buffer*/,
105 	gss_buffer_t message_token );
106 
107 OM_uint32 GSSAPI_CALLCONV
108 _gss_spnego_import_cred (
109 	OM_uint32 */*minor_status*/,
110 	gss_buffer_t /*value*/,
111 	gss_cred_id_t */*cred_handle*/);
112 
113 OM_uint32 GSSAPI_CALLCONV
114 _gss_spnego_import_name (
115 	OM_uint32 * /*minor_status*/,
116 	const gss_buffer_t /*name_buffer*/,
117 	const gss_OID /*name_type*/,
118 	gss_name_t * output_name );
119 
120 OM_uint32 GSSAPI_CALLCONV
121 _gss_spnego_import_sec_context (
122 	 OM_uint32 * /*minor_status*/,
123 	const gss_buffer_t /*interprocess_token*/,
124 	gss_ctx_id_t *context_handle );
125 
126 OM_uint32 GSSAPI_CALLCONV
127 _gss_spnego_indicate_mechtypelist (
128 	OM_uint32 */*minor_status*/,
129 	gss_name_t /*target_name*/,
130 	OM_uint32 (*/*func*/)(gss_name_t, gss_OID),
131 	int /*includeMSCompatOID*/,
132 	gss_const_cred_id_t /*cred_handle*/,
133 	MechTypeList */*mechtypelist*/,
134 	gss_OID */*preferred_mech*/);
135 
136 OM_uint32 GSSAPI_CALLCONV
137 _gss_spnego_init_sec_context (
138 	OM_uint32 * /*minor_status*/,
139 	gss_const_cred_id_t /*initiator_cred_handle*/,
140 	gss_ctx_id_t * /*context_handle*/,
141 	gss_const_name_t /*target_name*/,
142 	const gss_OID /*mech_type*/,
143 	OM_uint32 /*req_flags*/,
144 	OM_uint32 /*time_req*/,
145 	const gss_channel_bindings_t /*input_chan_bindings*/,
146 	const gss_buffer_t /*input_token*/,
147 	gss_OID * /*actual_mech_type*/,
148 	gss_buffer_t /*output_token*/,
149 	OM_uint32 * /*ret_flags*/,
150 	OM_uint32 * time_rec );
151 
152 OM_uint32 GSSAPI_CALLCONV
153 _gss_spnego_inquire_context (
154 	 OM_uint32 * /*minor_status*/,
155 	gss_const_ctx_id_t /*context_handle*/,
156 	gss_name_t * /*src_name*/,
157 	gss_name_t * /*targ_name*/,
158 	OM_uint32 * /*lifetime_rec*/,
159 	gss_OID * /*mech_type*/,
160 	OM_uint32 * /*ctx_flags*/,
161 	int * /*locally_initiated*/,
162 	int * open_context );
163 
164 OM_uint32 GSSAPI_CALLCONV
165 _gss_spnego_inquire_cred (
166 	OM_uint32 * /*minor_status*/,
167 	gss_const_cred_id_t /*cred_handle*/,
168 	gss_name_t * /*name*/,
169 	OM_uint32 * /*lifetime*/,
170 	gss_cred_usage_t * /*cred_usage*/,
171 	gss_OID_set * mechanisms );
172 
173 OM_uint32 GSSAPI_CALLCONV
174 _gss_spnego_inquire_cred_by_mech (
175 	 OM_uint32 * /*minor_status*/,
176 	gss_const_cred_id_t /*cred_handle*/,
177 	const gss_OID /*mech_type*/,
178 	gss_name_t * /*name*/,
179 	OM_uint32 * /*initiator_lifetime*/,
180 	OM_uint32 * /*acceptor_lifetime*/,
181 	gss_cred_usage_t * cred_usage );
182 
183 OM_uint32 GSSAPI_CALLCONV
184 _gss_spnego_inquire_cred_by_oid (
185 	OM_uint32 * /*minor_status*/,
186 	gss_const_cred_id_t /*cred_handle*/,
187 	const gss_OID /*desired_object*/,
188 	gss_buffer_set_t */*data_set*/);
189 
190 OM_uint32 GSSAPI_CALLCONV
191 _gss_spnego_inquire_mechs_for_name (
192 	 OM_uint32 * /*minor_status*/,
193 	gss_const_name_t /*input_name*/,
194 	gss_OID_set * mech_types );
195 
196 OM_uint32 GSSAPI_CALLCONV
197 _gss_spnego_inquire_names_for_mech (
198 	 OM_uint32 * /*minor_status*/,
199 	const gss_OID /*mechanism*/,
200 	gss_OID_set * name_types );
201 
202 OM_uint32 GSSAPI_CALLCONV
203 _gss_spnego_inquire_sec_context_by_oid (
204 	OM_uint32 * /*minor_status*/,
205 	gss_const_ctx_id_t /*context_handle*/,
206 	const gss_OID /*desired_object*/,
207 	gss_buffer_set_t */*data_set*/);
208 
209 OM_uint32 GSSAPI_CALLCONV
210 _gss_spnego_internal_delete_sec_context (
211 	OM_uint32 */*minor_status*/,
212 	gss_ctx_id_t */*context_handle*/,
213 	gss_buffer_t output_token );
214 
215 OM_uint32 GSSAPI_CALLCONV
216 _gss_spnego_process_context_token (
217 	OM_uint32 */*minor_status*/,
218 	gss_const_ctx_id_t /*context_handle*/,
219 	const gss_buffer_t token_buffer );
220 
221 OM_uint32 GSSAPI_CALLCONV
222 _gss_spnego_pseudo_random (
223 	OM_uint32 */*minor_status*/,
224 	gss_ctx_id_t /*context_handle*/,
225 	int /*prf_key*/,
226 	const gss_buffer_t /*prf_in*/,
227 	ssize_t /*desired_output_len*/,
228 	gss_buffer_t /*prf_out*/);
229 
230 OM_uint32 GSSAPI_CALLCONV
231 _gss_spnego_release_cred (
232 	OM_uint32 */*minor_status*/,
233 	gss_cred_id_t */*cred_handle*/);
234 
235 OM_uint32 GSSAPI_CALLCONV
236 _gss_spnego_release_name (
237 	OM_uint32 * /*minor_status*/,
238 	gss_name_t * input_name );
239 
240 OM_uint32 GSSAPI_CALLCONV
241 _gss_spnego_require_mechlist_mic (
242 	OM_uint32 */*minor_status*/,
243 	gssspnego_ctx /*ctx*/,
244 	int */*require_mic*/);
245 
246 OM_uint32 GSSAPI_CALLCONV
247 _gss_spnego_set_cred_option (
248 	OM_uint32 */*minor_status*/,
249 	gss_cred_id_t */*cred_handle*/,
250 	const gss_OID /*object*/,
251 	const gss_buffer_t /*value*/);
252 
253 OM_uint32 GSSAPI_CALLCONV
254 _gss_spnego_set_sec_context_option (
255 	OM_uint32 * /*minor_status*/,
256 	gss_ctx_id_t * /*context_handle*/,
257 	const gss_OID /*desired_object*/,
258 	const gss_buffer_t /*value*/);
259 
260 OM_uint32 GSSAPI_CALLCONV
261 _gss_spnego_unwrap (
262 	OM_uint32 * /*minor_status*/,
263 	gss_const_ctx_id_t /*context_handle*/,
264 	const gss_buffer_t /*input_message_buffer*/,
265 	gss_buffer_t /*output_message_buffer*/,
266 	int * /*conf_state*/,
267 	gss_qop_t * qop_state );
268 
269 OM_uint32 GSSAPI_CALLCONV
270 _gss_spnego_unwrap_iov (
271 	OM_uint32 */*minor_status*/,
272 	gss_ctx_id_t /*context_handle*/,
273 	int */*conf_state*/,
274 	gss_qop_t */*qop_state*/,
275 	gss_iov_buffer_desc */*iov*/,
276 	int /*iov_count*/);
277 
278 OM_uint32 GSSAPI_CALLCONV
279 _gss_spnego_verify_mic (
280 	OM_uint32 * /*minor_status*/,
281 	gss_const_ctx_id_t /*context_handle*/,
282 	const gss_buffer_t /*message_buffer*/,
283 	const gss_buffer_t /*token_buffer*/,
284 	gss_qop_t * qop_state );
285 
286 OM_uint32 GSSAPI_CALLCONV
287 _gss_spnego_wrap (
288 	OM_uint32 * /*minor_status*/,
289 	gss_const_ctx_id_t /*context_handle*/,
290 	int /*conf_req_flag*/,
291 	gss_qop_t /*qop_req*/,
292 	const gss_buffer_t /*input_message_buffer*/,
293 	int * /*conf_state*/,
294 	gss_buffer_t output_message_buffer );
295 
296 OM_uint32 GSSAPI_CALLCONV
297 _gss_spnego_wrap_iov (
298 	OM_uint32 * /*minor_status*/,
299 	gss_ctx_id_t /*context_handle*/,
300 	int /*conf_req_flag*/,
301 	gss_qop_t /*qop_req*/,
302 	int * /*conf_state*/,
303 	gss_iov_buffer_desc */*iov*/,
304 	int /*iov_count*/);
305 
306 OM_uint32 GSSAPI_CALLCONV
307 _gss_spnego_wrap_iov_length (
308 	OM_uint32 * /*minor_status*/,
309 	gss_ctx_id_t /*context_handle*/,
310 	int /*conf_req_flag*/,
311 	gss_qop_t /*qop_req*/,
312 	int */*conf_state*/,
313 	gss_iov_buffer_desc */*iov*/,
314 	int /*iov_count*/);
315 
316 OM_uint32 GSSAPI_CALLCONV
317 _gss_spnego_wrap_size_limit (
318 	 OM_uint32 * /*minor_status*/,
319 	gss_const_ctx_id_t /*context_handle*/,
320 	int /*conf_req_flag*/,
321 	gss_qop_t /*qop_req*/,
322 	OM_uint32 /*req_output_size*/,
323 	OM_uint32 * max_input_size );
324 
325 #endif /* __spnego_private_h__ */
326