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