1 | /* This is a generated file */
|
---|
2 | #ifndef __gsskrb5_private_h__
|
---|
3 | #define __gsskrb5_private_h__
|
---|
4 |
|
---|
5 | #include <stdarg.h>
|
---|
6 |
|
---|
7 | gssapi_mech_interface
|
---|
8 | __gss_krb5_initialize (void);
|
---|
9 |
|
---|
10 | OM_uint32
|
---|
11 | __gsskrb5_ccache_lifetime (
|
---|
12 | OM_uint32 */*minor_status*/,
|
---|
13 | krb5_context /*context*/,
|
---|
14 | krb5_ccache /*id*/,
|
---|
15 | krb5_principal /*principal*/,
|
---|
16 | OM_uint32 */*lifetime*/);
|
---|
17 |
|
---|
18 | OM_uint32
|
---|
19 | _gk_allocate_buffer (
|
---|
20 | OM_uint32 */*minor_status*/,
|
---|
21 | gss_iov_buffer_desc */*buffer*/,
|
---|
22 | size_t /*size*/);
|
---|
23 |
|
---|
24 | gss_iov_buffer_desc *
|
---|
25 | _gk_find_buffer (
|
---|
26 | gss_iov_buffer_desc */*iov*/,
|
---|
27 | int /*iov_count*/,
|
---|
28 | OM_uint32 /*type*/);
|
---|
29 |
|
---|
30 | OM_uint32 GSSAPI_CALLCONV
|
---|
31 | _gk_unwrap_iov (
|
---|
32 | OM_uint32 */*minor_status*/,
|
---|
33 | gss_ctx_id_t /*context_handle*/,
|
---|
34 | int */*conf_state*/,
|
---|
35 | gss_qop_t */*qop_state*/,
|
---|
36 | gss_iov_buffer_desc */*iov*/,
|
---|
37 | int /*iov_count*/);
|
---|
38 |
|
---|
39 | OM_uint32
|
---|
40 | _gk_verify_buffers (
|
---|
41 | OM_uint32 */*minor_status*/,
|
---|
42 | const gsskrb5_ctx /*ctx*/,
|
---|
43 | const gss_iov_buffer_desc */*header*/,
|
---|
44 | const gss_iov_buffer_desc */*padding*/,
|
---|
45 | const gss_iov_buffer_desc */*trailer*/);
|
---|
46 |
|
---|
47 | OM_uint32 GSSAPI_CALLCONV
|
---|
48 | _gk_wrap_iov (
|
---|
49 | OM_uint32 * /*minor_status*/,
|
---|
50 | gss_ctx_id_t /*context_handle*/,
|
---|
51 | int /*conf_req_flag*/,
|
---|
52 | gss_qop_t /*qop_req*/,
|
---|
53 | int * /*conf_state*/,
|
---|
54 | gss_iov_buffer_desc */*iov*/,
|
---|
55 | int /*iov_count*/);
|
---|
56 |
|
---|
57 | OM_uint32 GSSAPI_CALLCONV
|
---|
58 | _gk_wrap_iov_length (
|
---|
59 | OM_uint32 * /*minor_status*/,
|
---|
60 | gss_ctx_id_t /*context_handle*/,
|
---|
61 | int /*conf_req_flag*/,
|
---|
62 | gss_qop_t /*qop_req*/,
|
---|
63 | int */*conf_state*/,
|
---|
64 | gss_iov_buffer_desc */*iov*/,
|
---|
65 | int /*iov_count*/);
|
---|
66 |
|
---|
67 | OM_uint32
|
---|
68 | _gss_DES3_get_mic_compat (
|
---|
69 | OM_uint32 */*minor_status*/,
|
---|
70 | gsskrb5_ctx /*ctx*/,
|
---|
71 | krb5_context /*context*/);
|
---|
72 |
|
---|
73 | OM_uint32
|
---|
74 | _gssapi_decapsulate (
|
---|
75 | OM_uint32 */*minor_status*/,
|
---|
76 | gss_buffer_t /*input_token_buffer*/,
|
---|
77 | krb5_data */*out_data*/,
|
---|
78 | const gss_OID mech );
|
---|
79 |
|
---|
80 | void
|
---|
81 | _gssapi_encap_length (
|
---|
82 | size_t /*data_len*/,
|
---|
83 | size_t */*len*/,
|
---|
84 | size_t */*total_len*/,
|
---|
85 | const gss_OID /*mech*/);
|
---|
86 |
|
---|
87 | OM_uint32
|
---|
88 | _gssapi_encapsulate (
|
---|
89 | OM_uint32 */*minor_status*/,
|
---|
90 | const krb5_data */*in_data*/,
|
---|
91 | gss_buffer_t /*output_token*/,
|
---|
92 | const gss_OID mech );
|
---|
93 |
|
---|
94 | OM_uint32
|
---|
95 | _gssapi_get_mic_arcfour (
|
---|
96 | OM_uint32 * /*minor_status*/,
|
---|
97 | const gsskrb5_ctx /*context_handle*/,
|
---|
98 | krb5_context /*context*/,
|
---|
99 | gss_qop_t /*qop_req*/,
|
---|
100 | const gss_buffer_t /*message_buffer*/,
|
---|
101 | gss_buffer_t /*message_token*/,
|
---|
102 | krb5_keyblock */*key*/);
|
---|
103 |
|
---|
104 | void *
|
---|
105 | _gssapi_make_mech_header (
|
---|
106 | void */*ptr*/,
|
---|
107 | size_t /*len*/,
|
---|
108 | const gss_OID /*mech*/);
|
---|
109 |
|
---|
110 | OM_uint32
|
---|
111 | _gssapi_mic_cfx (
|
---|
112 | OM_uint32 */*minor_status*/,
|
---|
113 | const gsskrb5_ctx /*ctx*/,
|
---|
114 | krb5_context /*context*/,
|
---|
115 | gss_qop_t /*qop_req*/,
|
---|
116 | const gss_buffer_t /*message_buffer*/,
|
---|
117 | gss_buffer_t /*message_token*/);
|
---|
118 |
|
---|
119 | OM_uint32
|
---|
120 | _gssapi_msg_order_check (
|
---|
121 | struct gss_msg_order */*o*/,
|
---|
122 | OM_uint32 /*seq_num*/);
|
---|
123 |
|
---|
124 | OM_uint32
|
---|
125 | _gssapi_msg_order_create (
|
---|
126 | OM_uint32 */*minor_status*/,
|
---|
127 | struct gss_msg_order **/*o*/,
|
---|
128 | OM_uint32 /*flags*/,
|
---|
129 | OM_uint32 /*seq_num*/,
|
---|
130 | OM_uint32 /*jitter_window*/,
|
---|
131 | int /*use_64*/);
|
---|
132 |
|
---|
133 | OM_uint32
|
---|
134 | _gssapi_msg_order_destroy (struct gss_msg_order **/*m*/);
|
---|
135 |
|
---|
136 | krb5_error_code
|
---|
137 | _gssapi_msg_order_export (
|
---|
138 | krb5_storage */*sp*/,
|
---|
139 | struct gss_msg_order */*o*/);
|
---|
140 |
|
---|
141 | OM_uint32
|
---|
142 | _gssapi_msg_order_f (OM_uint32 /*flags*/);
|
---|
143 |
|
---|
144 | OM_uint32
|
---|
145 | _gssapi_msg_order_import (
|
---|
146 | OM_uint32 */*minor_status*/,
|
---|
147 | krb5_storage */*sp*/,
|
---|
148 | struct gss_msg_order **/*o*/);
|
---|
149 |
|
---|
150 | OM_uint32
|
---|
151 | _gssapi_unwrap_arcfour (
|
---|
152 | OM_uint32 */*minor_status*/,
|
---|
153 | const gsskrb5_ctx /*context_handle*/,
|
---|
154 | krb5_context /*context*/,
|
---|
155 | const gss_buffer_t /*input_message_buffer*/,
|
---|
156 | gss_buffer_t /*output_message_buffer*/,
|
---|
157 | int */*conf_state*/,
|
---|
158 | gss_qop_t */*qop_state*/,
|
---|
159 | krb5_keyblock */*key*/);
|
---|
160 |
|
---|
161 | OM_uint32
|
---|
162 | _gssapi_unwrap_cfx (
|
---|
163 | OM_uint32 */*minor_status*/,
|
---|
164 | const gsskrb5_ctx /*ctx*/,
|
---|
165 | krb5_context /*context*/,
|
---|
166 | const gss_buffer_t /*input_message_buffer*/,
|
---|
167 | gss_buffer_t /*output_message_buffer*/,
|
---|
168 | int */*conf_state*/,
|
---|
169 | gss_qop_t */*qop_state*/);
|
---|
170 |
|
---|
171 | OM_uint32
|
---|
172 | _gssapi_unwrap_cfx_iov (
|
---|
173 | OM_uint32 */*minor_status*/,
|
---|
174 | gsskrb5_ctx /*ctx*/,
|
---|
175 | krb5_context /*context*/,
|
---|
176 | int */*conf_state*/,
|
---|
177 | gss_qop_t */*qop_state*/,
|
---|
178 | gss_iov_buffer_desc */*iov*/,
|
---|
179 | int /*iov_count*/);
|
---|
180 |
|
---|
181 | OM_uint32
|
---|
182 | _gssapi_verify_mech_header (
|
---|
183 | u_char **/*str*/,
|
---|
184 | size_t /*total_len*/,
|
---|
185 | gss_OID /*mech*/);
|
---|
186 |
|
---|
187 | OM_uint32
|
---|
188 | _gssapi_verify_mic_arcfour (
|
---|
189 | OM_uint32 * /*minor_status*/,
|
---|
190 | const gsskrb5_ctx /*context_handle*/,
|
---|
191 | krb5_context /*context*/,
|
---|
192 | const gss_buffer_t /*message_buffer*/,
|
---|
193 | const gss_buffer_t /*token_buffer*/,
|
---|
194 | gss_qop_t * /*qop_state*/,
|
---|
195 | krb5_keyblock */*key*/,
|
---|
196 | const char */*type*/);
|
---|
197 |
|
---|
198 | OM_uint32
|
---|
199 | _gssapi_verify_mic_cfx (
|
---|
200 | OM_uint32 */*minor_status*/,
|
---|
201 | const gsskrb5_ctx /*ctx*/,
|
---|
202 | krb5_context /*context*/,
|
---|
203 | const gss_buffer_t /*message_buffer*/,
|
---|
204 | const gss_buffer_t /*token_buffer*/,
|
---|
205 | gss_qop_t */*qop_state*/);
|
---|
206 |
|
---|
207 | OM_uint32
|
---|
208 | _gssapi_verify_pad (
|
---|
209 | gss_buffer_t /*wrapped_token*/,
|
---|
210 | size_t /*datalen*/,
|
---|
211 | size_t */*padlen*/);
|
---|
212 |
|
---|
213 | OM_uint32
|
---|
214 | _gssapi_wrap_arcfour (
|
---|
215 | OM_uint32 * /*minor_status*/,
|
---|
216 | const gsskrb5_ctx /*context_handle*/,
|
---|
217 | krb5_context /*context*/,
|
---|
218 | int /*conf_req_flag*/,
|
---|
219 | gss_qop_t /*qop_req*/,
|
---|
220 | const gss_buffer_t /*input_message_buffer*/,
|
---|
221 | int * /*conf_state*/,
|
---|
222 | gss_buffer_t /*output_message_buffer*/,
|
---|
223 | krb5_keyblock */*key*/);
|
---|
224 |
|
---|
225 | OM_uint32
|
---|
226 | _gssapi_wrap_cfx (
|
---|
227 | OM_uint32 */*minor_status*/,
|
---|
228 | const gsskrb5_ctx /*ctx*/,
|
---|
229 | krb5_context /*context*/,
|
---|
230 | int /*conf_req_flag*/,
|
---|
231 | const gss_buffer_t /*input_message_buffer*/,
|
---|
232 | int */*conf_state*/,
|
---|
233 | gss_buffer_t /*output_message_buffer*/);
|
---|
234 |
|
---|
235 | OM_uint32
|
---|
236 | _gssapi_wrap_cfx_iov (
|
---|
237 | OM_uint32 */*minor_status*/,
|
---|
238 | gsskrb5_ctx /*ctx*/,
|
---|
239 | krb5_context /*context*/,
|
---|
240 | int /*conf_req_flag*/,
|
---|
241 | int */*conf_state*/,
|
---|
242 | gss_iov_buffer_desc */*iov*/,
|
---|
243 | int /*iov_count*/);
|
---|
244 |
|
---|
245 | OM_uint32
|
---|
246 | _gssapi_wrap_iov_length_cfx (
|
---|
247 | OM_uint32 */*minor_status*/,
|
---|
248 | gsskrb5_ctx /*ctx*/,
|
---|
249 | krb5_context /*context*/,
|
---|
250 | int /*conf_req_flag*/,
|
---|
251 | gss_qop_t /*qop_req*/,
|
---|
252 | int */*conf_state*/,
|
---|
253 | gss_iov_buffer_desc */*iov*/,
|
---|
254 | int /*iov_count*/);
|
---|
255 |
|
---|
256 | OM_uint32
|
---|
257 | _gssapi_wrap_size_arcfour (
|
---|
258 | OM_uint32 */*minor_status*/,
|
---|
259 | const gsskrb5_ctx /*ctx*/,
|
---|
260 | krb5_context /*context*/,
|
---|
261 | int /*conf_req_flag*/,
|
---|
262 | gss_qop_t /*qop_req*/,
|
---|
263 | OM_uint32 /*req_output_size*/,
|
---|
264 | OM_uint32 */*max_input_size*/,
|
---|
265 | krb5_keyblock */*key*/);
|
---|
266 |
|
---|
267 | OM_uint32
|
---|
268 | _gssapi_wrap_size_cfx (
|
---|
269 | OM_uint32 */*minor_status*/,
|
---|
270 | const gsskrb5_ctx /*ctx*/,
|
---|
271 | krb5_context /*context*/,
|
---|
272 | int /*conf_req_flag*/,
|
---|
273 | gss_qop_t /*qop_req*/,
|
---|
274 | OM_uint32 /*req_output_size*/,
|
---|
275 | OM_uint32 */*max_input_size*/);
|
---|
276 |
|
---|
277 | OM_uint32 GSSAPI_CALLCONV
|
---|
278 | _gsskrb5_accept_sec_context (
|
---|
279 | OM_uint32 * /*minor_status*/,
|
---|
280 | gss_ctx_id_t * /*context_handle*/,
|
---|
281 | const gss_cred_id_t /*acceptor_cred_handle*/,
|
---|
282 | const gss_buffer_t /*input_token_buffer*/,
|
---|
283 | const gss_channel_bindings_t /*input_chan_bindings*/,
|
---|
284 | gss_name_t * /*src_name*/,
|
---|
285 | gss_OID * /*mech_type*/,
|
---|
286 | gss_buffer_t /*output_token*/,
|
---|
287 | OM_uint32 * /*ret_flags*/,
|
---|
288 | OM_uint32 * /*time_rec*/,
|
---|
289 | gss_cred_id_t * /*delegated_cred_handle*/);
|
---|
290 |
|
---|
291 | OM_uint32 GSSAPI_CALLCONV
|
---|
292 | _gsskrb5_acquire_cred (
|
---|
293 | OM_uint32 * /*minor_status*/,
|
---|
294 | const gss_name_t /*desired_name*/,
|
---|
295 | OM_uint32 /*time_req*/,
|
---|
296 | const gss_OID_set /*desired_mechs*/,
|
---|
297 | gss_cred_usage_t /*cred_usage*/,
|
---|
298 | gss_cred_id_t * /*output_cred_handle*/,
|
---|
299 | gss_OID_set * /*actual_mechs*/,
|
---|
300 | OM_uint32 * time_rec );
|
---|
301 |
|
---|
302 | OM_uint32 GSSAPI_CALLCONV
|
---|
303 | _gsskrb5_acquire_cred_ext (
|
---|
304 | OM_uint32 * /*minor_status*/,
|
---|
305 | const gss_name_t /*desired_name*/,
|
---|
306 | gss_const_OID /*credential_type*/,
|
---|
307 | const void */*credential_data*/,
|
---|
308 | OM_uint32 /*time_req*/,
|
---|
309 | gss_const_OID /*desired_mech*/,
|
---|
310 | gss_cred_usage_t /*cred_usage*/,
|
---|
311 | gss_cred_id_t * output_cred_handle );
|
---|
312 |
|
---|
313 | OM_uint32 GSSAPI_CALLCONV
|
---|
314 | _gsskrb5_add_cred (
|
---|
315 | OM_uint32 */*minor_status*/,
|
---|
316 | const gss_cred_id_t /*input_cred_handle*/,
|
---|
317 | const gss_name_t /*desired_name*/,
|
---|
318 | const gss_OID /*desired_mech*/,
|
---|
319 | gss_cred_usage_t /*cred_usage*/,
|
---|
320 | OM_uint32 /*initiator_time_req*/,
|
---|
321 | OM_uint32 /*acceptor_time_req*/,
|
---|
322 | gss_cred_id_t */*output_cred_handle*/,
|
---|
323 | gss_OID_set */*actual_mechs*/,
|
---|
324 | OM_uint32 */*initiator_time_rec*/,
|
---|
325 | OM_uint32 */*acceptor_time_rec*/);
|
---|
326 |
|
---|
327 | OM_uint32 GSSAPI_CALLCONV
|
---|
328 | _gsskrb5_authorize_localname (
|
---|
329 | OM_uint32 */*minor_status*/,
|
---|
330 | const gss_name_t /*input_name*/,
|
---|
331 | gss_const_buffer_t /*user_name*/,
|
---|
332 | gss_const_OID /*user_name_type*/);
|
---|
333 |
|
---|
334 | OM_uint32
|
---|
335 | _gsskrb5_canon_name (
|
---|
336 | OM_uint32 */*minor_status*/,
|
---|
337 | krb5_context /*context*/,
|
---|
338 | int /*use_dns*/,
|
---|
339 | krb5_const_principal /*sourcename*/,
|
---|
340 | gss_name_t /*targetname*/,
|
---|
341 | krb5_principal */*out*/);
|
---|
342 |
|
---|
343 | OM_uint32 GSSAPI_CALLCONV
|
---|
344 | _gsskrb5_canonicalize_name (
|
---|
345 | OM_uint32 * /*minor_status*/,
|
---|
346 | const gss_name_t /*input_name*/,
|
---|
347 | const gss_OID /*mech_type*/,
|
---|
348 | gss_name_t * output_name );
|
---|
349 |
|
---|
350 | void
|
---|
351 | _gsskrb5_clear_status (void);
|
---|
352 |
|
---|
353 | OM_uint32 GSSAPI_CALLCONV
|
---|
354 | _gsskrb5_compare_name (
|
---|
355 | OM_uint32 * /*minor_status*/,
|
---|
356 | const gss_name_t /*name1*/,
|
---|
357 | const gss_name_t /*name2*/,
|
---|
358 | int * name_equal );
|
---|
359 |
|
---|
360 | OM_uint32 GSSAPI_CALLCONV
|
---|
361 | _gsskrb5_context_time (
|
---|
362 | OM_uint32 * /*minor_status*/,
|
---|
363 | const gss_ctx_id_t /*context_handle*/,
|
---|
364 | OM_uint32 * time_rec );
|
---|
365 |
|
---|
366 | OM_uint32
|
---|
367 | _gsskrb5_create_8003_checksum (
|
---|
368 | OM_uint32 */*minor_status*/,
|
---|
369 | const gss_channel_bindings_t /*input_chan_bindings*/,
|
---|
370 | OM_uint32 /*flags*/,
|
---|
371 | const krb5_data */*fwd_data*/,
|
---|
372 | Checksum */*result*/);
|
---|
373 |
|
---|
374 | OM_uint32
|
---|
375 | _gsskrb5_create_ctx (
|
---|
376 | OM_uint32 * /*minor_status*/,
|
---|
377 | gss_ctx_id_t * /*context_handle*/,
|
---|
378 | krb5_context /*context*/,
|
---|
379 | const gss_channel_bindings_t /*input_chan_bindings*/,
|
---|
380 | enum gss_ctx_id_t_state /*state*/);
|
---|
381 |
|
---|
382 | OM_uint32
|
---|
383 | _gsskrb5_decapsulate (
|
---|
384 | OM_uint32 */*minor_status*/,
|
---|
385 | gss_buffer_t /*input_token_buffer*/,
|
---|
386 | krb5_data */*out_data*/,
|
---|
387 | const void */*type*/,
|
---|
388 | gss_OID /*oid*/);
|
---|
389 |
|
---|
390 | krb5_error_code
|
---|
391 | _gsskrb5_decode_be_om_uint32 (
|
---|
392 | const void */*ptr*/,
|
---|
393 | OM_uint32 */*n*/);
|
---|
394 |
|
---|
395 | krb5_error_code
|
---|
396 | _gsskrb5_decode_om_uint32 (
|
---|
397 | const void */*ptr*/,
|
---|
398 | OM_uint32 */*n*/);
|
---|
399 |
|
---|
400 | OM_uint32 GSSAPI_CALLCONV
|
---|
401 | _gsskrb5_delete_sec_context (
|
---|
402 | OM_uint32 * /*minor_status*/,
|
---|
403 | gss_ctx_id_t * /*context_handle*/,
|
---|
404 | gss_buffer_t /*output_token*/);
|
---|
405 |
|
---|
406 | OM_uint32 GSSAPI_CALLCONV
|
---|
407 | _gsskrb5_display_name (
|
---|
408 | OM_uint32 * /*minor_status*/,
|
---|
409 | const gss_name_t /*input_name*/,
|
---|
410 | gss_buffer_t /*output_name_buffer*/,
|
---|
411 | gss_OID * output_name_type );
|
---|
412 |
|
---|
413 | OM_uint32 GSSAPI_CALLCONV
|
---|
414 | _gsskrb5_display_status (
|
---|
415 | OM_uint32 */*minor_status*/,
|
---|
416 | OM_uint32 /*status_value*/,
|
---|
417 | int /*status_type*/,
|
---|
418 | const gss_OID /*mech_type*/,
|
---|
419 | OM_uint32 */*message_context*/,
|
---|
420 | gss_buffer_t /*status_string*/);
|
---|
421 |
|
---|
422 | OM_uint32 GSSAPI_CALLCONV
|
---|
423 | _gsskrb5_duplicate_name (
|
---|
424 | OM_uint32 * /*minor_status*/,
|
---|
425 | const gss_name_t /*src_name*/,
|
---|
426 | gss_name_t * dest_name );
|
---|
427 |
|
---|
428 | void
|
---|
429 | _gsskrb5_encap_length (
|
---|
430 | size_t /*data_len*/,
|
---|
431 | size_t */*len*/,
|
---|
432 | size_t */*total_len*/,
|
---|
433 | const gss_OID /*mech*/);
|
---|
434 |
|
---|
435 | OM_uint32
|
---|
436 | _gsskrb5_encapsulate (
|
---|
437 | OM_uint32 */*minor_status*/,
|
---|
438 | const krb5_data */*in_data*/,
|
---|
439 | gss_buffer_t /*output_token*/,
|
---|
440 | const void */*type*/,
|
---|
441 | const gss_OID mech );
|
---|
442 |
|
---|
443 | krb5_error_code
|
---|
444 | _gsskrb5_encode_be_om_uint32 (
|
---|
445 | OM_uint32 /*n*/,
|
---|
446 | u_char */*p*/);
|
---|
447 |
|
---|
448 | krb5_error_code
|
---|
449 | _gsskrb5_encode_om_uint32 (
|
---|
450 | OM_uint32 /*n*/,
|
---|
451 | u_char */*p*/);
|
---|
452 |
|
---|
453 | OM_uint32 GSSAPI_CALLCONV
|
---|
454 | _gsskrb5_export_cred (
|
---|
455 | OM_uint32 */*minor_status*/,
|
---|
456 | gss_cred_id_t /*cred_handle*/,
|
---|
457 | gss_buffer_t /*cred_token*/);
|
---|
458 |
|
---|
459 | OM_uint32 GSSAPI_CALLCONV
|
---|
460 | _gsskrb5_export_name (
|
---|
461 | OM_uint32 * /*minor_status*/,
|
---|
462 | const gss_name_t /*input_name*/,
|
---|
463 | gss_buffer_t exported_name );
|
---|
464 |
|
---|
465 | OM_uint32 GSSAPI_CALLCONV
|
---|
466 | _gsskrb5_export_sec_context (
|
---|
467 | OM_uint32 * /*minor_status*/,
|
---|
468 | gss_ctx_id_t * /*context_handle*/,
|
---|
469 | gss_buffer_t interprocess_token );
|
---|
470 |
|
---|
471 | ssize_t
|
---|
472 | _gsskrb5_get_mech (
|
---|
473 | const u_char */*ptr*/,
|
---|
474 | size_t /*total_len*/,
|
---|
475 | const u_char **/*mech_ret*/);
|
---|
476 |
|
---|
477 | OM_uint32 GSSAPI_CALLCONV
|
---|
478 | _gsskrb5_get_mic (
|
---|
479 | OM_uint32 * /*minor_status*/,
|
---|
480 | const gss_ctx_id_t /*context_handle*/,
|
---|
481 | gss_qop_t /*qop_req*/,
|
---|
482 | const gss_buffer_t /*message_buffer*/,
|
---|
483 | gss_buffer_t message_token );
|
---|
484 |
|
---|
485 | OM_uint32
|
---|
486 | _gsskrb5_get_tkt_flags (
|
---|
487 | OM_uint32 */*minor_status*/,
|
---|
488 | gsskrb5_ctx /*ctx*/,
|
---|
489 | OM_uint32 */*tkt_flags*/);
|
---|
490 |
|
---|
491 | OM_uint32 GSSAPI_CALLCONV
|
---|
492 | _gsskrb5_import_cred (
|
---|
493 | OM_uint32 * /*minor_status*/,
|
---|
494 | gss_buffer_t /*cred_token*/,
|
---|
495 | gss_cred_id_t * /*cred_handle*/);
|
---|
496 |
|
---|
497 | OM_uint32 GSSAPI_CALLCONV
|
---|
498 | _gsskrb5_import_name (
|
---|
499 | OM_uint32 * /*minor_status*/,
|
---|
500 | const gss_buffer_t /*input_name_buffer*/,
|
---|
501 | const gss_OID /*input_name_type*/,
|
---|
502 | gss_name_t * output_name );
|
---|
503 |
|
---|
504 | OM_uint32 GSSAPI_CALLCONV
|
---|
505 | _gsskrb5_import_sec_context (
|
---|
506 | OM_uint32 * /*minor_status*/,
|
---|
507 | const gss_buffer_t /*interprocess_token*/,
|
---|
508 | gss_ctx_id_t * context_handle );
|
---|
509 |
|
---|
510 | OM_uint32 GSSAPI_CALLCONV
|
---|
511 | _gsskrb5_indicate_mechs (
|
---|
512 | OM_uint32 * /*minor_status*/,
|
---|
513 | gss_OID_set * mech_set );
|
---|
514 |
|
---|
515 | krb5_error_code
|
---|
516 | _gsskrb5_init (krb5_context */*context*/);
|
---|
517 |
|
---|
518 | OM_uint32 GSSAPI_CALLCONV
|
---|
519 | _gsskrb5_init_sec_context (
|
---|
520 | OM_uint32 * /*minor_status*/,
|
---|
521 | const gss_cred_id_t /*cred_handle*/,
|
---|
522 | gss_ctx_id_t * /*context_handle*/,
|
---|
523 | const gss_name_t /*target_name*/,
|
---|
524 | const gss_OID /*mech_type*/,
|
---|
525 | OM_uint32 /*req_flags*/,
|
---|
526 | OM_uint32 /*time_req*/,
|
---|
527 | const gss_channel_bindings_t /*input_chan_bindings*/,
|
---|
528 | const gss_buffer_t /*input_token*/,
|
---|
529 | gss_OID * /*actual_mech_type*/,
|
---|
530 | gss_buffer_t /*output_token*/,
|
---|
531 | OM_uint32 * /*ret_flags*/,
|
---|
532 | OM_uint32 * time_rec );
|
---|
533 |
|
---|
534 | OM_uint32 GSSAPI_CALLCONV
|
---|
535 | _gsskrb5_inquire_context (
|
---|
536 | OM_uint32 * /*minor_status*/,
|
---|
537 | const gss_ctx_id_t /*context_handle*/,
|
---|
538 | gss_name_t * /*src_name*/,
|
---|
539 | gss_name_t * /*targ_name*/,
|
---|
540 | OM_uint32 * /*lifetime_rec*/,
|
---|
541 | gss_OID * /*mech_type*/,
|
---|
542 | OM_uint32 * /*ctx_flags*/,
|
---|
543 | int * /*locally_initiated*/,
|
---|
544 | int * open_context );
|
---|
545 |
|
---|
546 | OM_uint32 GSSAPI_CALLCONV
|
---|
547 | _gsskrb5_inquire_cred (
|
---|
548 | OM_uint32 * /*minor_status*/,
|
---|
549 | const gss_cred_id_t /*cred_handle*/,
|
---|
550 | gss_name_t * /*output_name*/,
|
---|
551 | OM_uint32 * /*lifetime*/,
|
---|
552 | gss_cred_usage_t * /*cred_usage*/,
|
---|
553 | gss_OID_set * mechanisms );
|
---|
554 |
|
---|
555 | OM_uint32 GSSAPI_CALLCONV
|
---|
556 | _gsskrb5_inquire_cred_by_mech (
|
---|
557 | OM_uint32 * /*minor_status*/,
|
---|
558 | const gss_cred_id_t /*cred_handle*/,
|
---|
559 | const gss_OID /*mech_type*/,
|
---|
560 | gss_name_t * /*name*/,
|
---|
561 | OM_uint32 * /*initiator_lifetime*/,
|
---|
562 | OM_uint32 * /*acceptor_lifetime*/,
|
---|
563 | gss_cred_usage_t * cred_usage );
|
---|
564 |
|
---|
565 | OM_uint32 GSSAPI_CALLCONV
|
---|
566 | _gsskrb5_inquire_cred_by_oid (
|
---|
567 | OM_uint32 * /*minor_status*/,
|
---|
568 | const gss_cred_id_t /*cred_handle*/,
|
---|
569 | const gss_OID /*desired_object*/,
|
---|
570 | gss_buffer_set_t */*data_set*/);
|
---|
571 |
|
---|
572 | OM_uint32 GSSAPI_CALLCONV
|
---|
573 | _gsskrb5_inquire_mechs_for_name (
|
---|
574 | OM_uint32 * /*minor_status*/,
|
---|
575 | const gss_name_t /*input_name*/,
|
---|
576 | gss_OID_set * mech_types );
|
---|
577 |
|
---|
578 | OM_uint32 GSSAPI_CALLCONV
|
---|
579 | _gsskrb5_inquire_names_for_mech (
|
---|
580 | OM_uint32 * /*minor_status*/,
|
---|
581 | const gss_OID /*mechanism*/,
|
---|
582 | gss_OID_set * name_types );
|
---|
583 |
|
---|
584 | OM_uint32 GSSAPI_CALLCONV
|
---|
585 | _gsskrb5_inquire_sec_context_by_oid (
|
---|
586 | OM_uint32 */*minor_status*/,
|
---|
587 | const gss_ctx_id_t /*context_handle*/,
|
---|
588 | const gss_OID /*desired_object*/,
|
---|
589 | gss_buffer_set_t */*data_set*/);
|
---|
590 |
|
---|
591 | OM_uint32
|
---|
592 | _gsskrb5_krb5_ccache_name (
|
---|
593 | OM_uint32 */*minor_status*/,
|
---|
594 | const char */*name*/,
|
---|
595 | const char **/*out_name*/);
|
---|
596 |
|
---|
597 | OM_uint32
|
---|
598 | _gsskrb5_krb5_import_cred (
|
---|
599 | OM_uint32 */*minor_status*/,
|
---|
600 | krb5_ccache /*id*/,
|
---|
601 | krb5_principal /*keytab_principal*/,
|
---|
602 | krb5_keytab /*keytab*/,
|
---|
603 | gss_cred_id_t */*cred*/);
|
---|
604 |
|
---|
605 | OM_uint32
|
---|
606 | _gsskrb5_lifetime_left (
|
---|
607 | OM_uint32 */*minor_status*/,
|
---|
608 | krb5_context /*context*/,
|
---|
609 | OM_uint32 /*lifetime*/,
|
---|
610 | OM_uint32 */*lifetime_rec*/);
|
---|
611 |
|
---|
612 | void *
|
---|
613 | _gsskrb5_make_header (
|
---|
614 | void */*ptr*/,
|
---|
615 | size_t /*len*/,
|
---|
616 | const void */*type*/,
|
---|
617 | const gss_OID /*mech*/);
|
---|
618 |
|
---|
619 | OM_uint32 GSSAPI_CALLCONV
|
---|
620 | _gsskrb5_pname_to_uid (
|
---|
621 | OM_uint32 */*minor_status*/,
|
---|
622 | const gss_name_t /*pname*/,
|
---|
623 | const gss_OID /*mech_type*/,
|
---|
624 | uid_t */*uidp*/);
|
---|
625 |
|
---|
626 | OM_uint32 GSSAPI_CALLCONV
|
---|
627 | _gsskrb5_process_context_token (
|
---|
628 | OM_uint32 */*minor_status*/,
|
---|
629 | const gss_ctx_id_t /*context_handle*/,
|
---|
630 | const gss_buffer_t token_buffer );
|
---|
631 |
|
---|
632 | OM_uint32 GSSAPI_CALLCONV
|
---|
633 | _gsskrb5_pseudo_random (
|
---|
634 | OM_uint32 */*minor_status*/,
|
---|
635 | gss_ctx_id_t /*context_handle*/,
|
---|
636 | int /*prf_key*/,
|
---|
637 | const gss_buffer_t /*prf_in*/,
|
---|
638 | ssize_t /*desired_output_len*/,
|
---|
639 | gss_buffer_t /*prf_out*/);
|
---|
640 |
|
---|
641 | OM_uint32
|
---|
642 | _gsskrb5_register_acceptor_identity (
|
---|
643 | OM_uint32 */*min_stat*/,
|
---|
644 | const char */*identity*/);
|
---|
645 |
|
---|
646 | OM_uint32
|
---|
647 | _gsskrb5_release_buffer (
|
---|
648 | OM_uint32 * /*minor_status*/,
|
---|
649 | gss_buffer_t buffer );
|
---|
650 |
|
---|
651 | OM_uint32 GSSAPI_CALLCONV
|
---|
652 | _gsskrb5_release_cred (
|
---|
653 | OM_uint32 * /*minor_status*/,
|
---|
654 | gss_cred_id_t * cred_handle );
|
---|
655 |
|
---|
656 | OM_uint32 GSSAPI_CALLCONV
|
---|
657 | _gsskrb5_release_name (
|
---|
658 | OM_uint32 * /*minor_status*/,
|
---|
659 | gss_name_t * input_name );
|
---|
660 |
|
---|
661 | OM_uint32 GSSAPI_CALLCONV
|
---|
662 | _gsskrb5_set_cred_option (
|
---|
663 | OM_uint32 */*minor_status*/,
|
---|
664 | gss_cred_id_t */*cred_handle*/,
|
---|
665 | const gss_OID /*desired_object*/,
|
---|
666 | const gss_buffer_t /*value*/);
|
---|
667 |
|
---|
668 | OM_uint32 GSSAPI_CALLCONV
|
---|
669 | _gsskrb5_set_sec_context_option (
|
---|
670 | OM_uint32 */*minor_status*/,
|
---|
671 | gss_ctx_id_t */*context_handle*/,
|
---|
672 | const gss_OID /*desired_object*/,
|
---|
673 | const gss_buffer_t /*value*/);
|
---|
674 |
|
---|
675 | void
|
---|
676 | _gsskrb5_set_status (
|
---|
677 | int /*ret*/,
|
---|
678 | const char */*fmt*/,
|
---|
679 | ...);
|
---|
680 |
|
---|
681 | OM_uint32 GSSAPI_CALLCONV
|
---|
682 | _gsskrb5_store_cred (
|
---|
683 | OM_uint32 */*minor_status*/,
|
---|
684 | gss_cred_id_t /*input_cred_handle*/,
|
---|
685 | gss_cred_usage_t /*cred_usage*/,
|
---|
686 | const gss_OID /*desired_mech*/,
|
---|
687 | OM_uint32 /*overwrite_cred*/,
|
---|
688 | OM_uint32 /*default_cred*/,
|
---|
689 | gss_OID_set */*elements_stored*/,
|
---|
690 | gss_cred_usage_t */*cred_usage_stored*/);
|
---|
691 |
|
---|
692 | OM_uint32 GSSAPI_CALLCONV
|
---|
693 | _gsskrb5_unwrap (
|
---|
694 | OM_uint32 * /*minor_status*/,
|
---|
695 | const gss_ctx_id_t /*context_handle*/,
|
---|
696 | const gss_buffer_t /*input_message_buffer*/,
|
---|
697 | gss_buffer_t /*output_message_buffer*/,
|
---|
698 | int * /*conf_state*/,
|
---|
699 | gss_qop_t * qop_state );
|
---|
700 |
|
---|
701 | OM_uint32
|
---|
702 | _gsskrb5_verify_8003_checksum (
|
---|
703 | OM_uint32 */*minor_status*/,
|
---|
704 | const gss_channel_bindings_t /*input_chan_bindings*/,
|
---|
705 | const Checksum */*cksum*/,
|
---|
706 | OM_uint32 */*flags*/,
|
---|
707 | krb5_data */*fwd_data*/);
|
---|
708 |
|
---|
709 | OM_uint32
|
---|
710 | _gsskrb5_verify_header (
|
---|
711 | u_char **/*str*/,
|
---|
712 | size_t /*total_len*/,
|
---|
713 | const void */*type*/,
|
---|
714 | gss_OID /*oid*/);
|
---|
715 |
|
---|
716 | OM_uint32 GSSAPI_CALLCONV
|
---|
717 | _gsskrb5_verify_mic (
|
---|
718 | OM_uint32 * /*minor_status*/,
|
---|
719 | const gss_ctx_id_t /*context_handle*/,
|
---|
720 | const gss_buffer_t /*message_buffer*/,
|
---|
721 | const gss_buffer_t /*token_buffer*/,
|
---|
722 | gss_qop_t * qop_state );
|
---|
723 |
|
---|
724 | OM_uint32
|
---|
725 | _gsskrb5_verify_mic_internal (
|
---|
726 | OM_uint32 * /*minor_status*/,
|
---|
727 | const gsskrb5_ctx /*ctx*/,
|
---|
728 | krb5_context /*context*/,
|
---|
729 | const gss_buffer_t /*message_buffer*/,
|
---|
730 | const gss_buffer_t /*token_buffer*/,
|
---|
731 | gss_qop_t * /*qop_state*/,
|
---|
732 | const char * type );
|
---|
733 |
|
---|
734 | OM_uint32 GSSAPI_CALLCONV
|
---|
735 | _gsskrb5_wrap (
|
---|
736 | OM_uint32 * /*minor_status*/,
|
---|
737 | const gss_ctx_id_t /*context_handle*/,
|
---|
738 | int /*conf_req_flag*/,
|
---|
739 | gss_qop_t /*qop_req*/,
|
---|
740 | const gss_buffer_t /*input_message_buffer*/,
|
---|
741 | int * /*conf_state*/,
|
---|
742 | gss_buffer_t output_message_buffer );
|
---|
743 |
|
---|
744 | OM_uint32 GSSAPI_CALLCONV
|
---|
745 | _gsskrb5_wrap_size_limit (
|
---|
746 | OM_uint32 * /*minor_status*/,
|
---|
747 | const gss_ctx_id_t /*context_handle*/,
|
---|
748 | int /*conf_req_flag*/,
|
---|
749 | gss_qop_t /*qop_req*/,
|
---|
750 | OM_uint32 /*req_output_size*/,
|
---|
751 | OM_uint32 * max_input_size );
|
---|
752 |
|
---|
753 | krb5_error_code
|
---|
754 | _gsskrb5cfx_wrap_length_cfx (
|
---|
755 | krb5_context /*context*/,
|
---|
756 | krb5_crypto /*crypto*/,
|
---|
757 | int /*conf_req_flag*/,
|
---|
758 | int /*dce_style*/,
|
---|
759 | size_t /*input_length*/,
|
---|
760 | size_t */*output_length*/,
|
---|
761 | size_t */*cksumsize*/,
|
---|
762 | uint16_t */*padlength*/);
|
---|
763 |
|
---|
764 | krb5_error_code
|
---|
765 | _gsskrb5i_address_to_krb5addr (
|
---|
766 | krb5_context /*context*/,
|
---|
767 | OM_uint32 /*gss_addr_type*/,
|
---|
768 | gss_buffer_desc */*gss_addr*/,
|
---|
769 | int16_t /*port*/,
|
---|
770 | krb5_address */*address*/);
|
---|
771 |
|
---|
772 | krb5_error_code
|
---|
773 | _gsskrb5i_get_acceptor_subkey (
|
---|
774 | const gsskrb5_ctx /*ctx*/,
|
---|
775 | krb5_context /*context*/,
|
---|
776 | krb5_keyblock **/*key*/);
|
---|
777 |
|
---|
778 | krb5_error_code
|
---|
779 | _gsskrb5i_get_initiator_subkey (
|
---|
780 | const gsskrb5_ctx /*ctx*/,
|
---|
781 | krb5_context /*context*/,
|
---|
782 | krb5_keyblock **/*key*/);
|
---|
783 |
|
---|
784 | OM_uint32
|
---|
785 | _gsskrb5i_get_token_key (
|
---|
786 | const gsskrb5_ctx /*ctx*/,
|
---|
787 | krb5_context /*context*/,
|
---|
788 | krb5_keyblock **/*key*/);
|
---|
789 |
|
---|
790 | void
|
---|
791 | _gsskrb5i_is_cfx (
|
---|
792 | krb5_context /*context*/,
|
---|
793 | gsskrb5_ctx /*ctx*/,
|
---|
794 | int /*acceptor*/);
|
---|
795 |
|
---|
796 | #endif /* __gsskrb5_private_h__ */
|
---|