c3e573275393dee21538211c7b4eb494c132345f
[sfrench/samba-autobuild/.git] / source4 / heimdal / lib / krb5 / krb5-private.h
1 /* This is a generated file */
2 #ifndef __krb5_private_h__
3 #define __krb5_private_h__
4
5 #include <stdarg.h>
6
7 #ifndef KRB5_LIB_FUNCTION
8 #if defined(_WIN32)
9 #define KRB5_LIB_FUNCTION _stdcall
10 #else
11 #define KRB5_LIB_FUNCTION
12 #endif
13 #endif
14
15 void KRB5_LIB_FUNCTION
16 _krb5_aes_cts_encrypt (
17         const unsigned char */*in*/,
18         unsigned char */*out*/,
19         size_t /*len*/,
20         const AES_KEY */*key*/,
21         unsigned char */*ivec*/,
22         const int /*encryptp*/);
23
24 krb5_error_code
25 _krb5_cc_allocate (
26         krb5_context /*context*/,
27         const krb5_cc_ops */*ops*/,
28         krb5_ccache */*id*/);
29
30 void
31 _krb5_crc_init_table (void);
32
33 uint32_t
34 _krb5_crc_update (
35         const char */*p*/,
36         size_t /*len*/,
37         uint32_t /*res*/);
38
39 krb5_error_code
40 _krb5_dh_group_ok (
41         krb5_context /*context*/,
42         unsigned long /*bits*/,
43         heim_integer */*p*/,
44         heim_integer */*g*/,
45         heim_integer */*q*/,
46         struct krb5_dh_moduli **/*moduli*/,
47         char **/*name*/);
48
49 krb5_error_code KRB5_LIB_FUNCTION
50 _krb5_enctype_to_oid (
51         krb5_context /*context*/,
52         krb5_enctype /*etype*/,
53         heim_oid */*oid*/);
54
55 krb5_error_code
56 _krb5_expand_default_cc_name (
57         krb5_context /*context*/,
58         const char */*str*/,
59         char **/*res*/);
60
61 int
62 _krb5_extract_ticket (
63         krb5_context /*context*/,
64         krb5_kdc_rep */*rep*/,
65         krb5_creds */*creds*/,
66         krb5_keyblock */*key*/,
67         krb5_const_pointer /*keyseed*/,
68         krb5_key_usage /*key_usage*/,
69         krb5_addresses */*addrs*/,
70         unsigned /*nonce*/,
71         krb5_boolean /*allow_server_mismatch*/,
72         krb5_boolean /*ignore_cname*/,
73         krb5_decrypt_proc /*decrypt_proc*/,
74         krb5_const_pointer /*decryptarg*/);
75
76 void
77 _krb5_free_krbhst_info (krb5_krbhst_info */*hi*/);
78
79 void
80 _krb5_free_moduli (struct krb5_dh_moduli **/*moduli*/);
81
82 krb5_error_code
83 _krb5_get_default_principal_local (
84         krb5_context /*context*/,
85         krb5_principal */*princ*/);
86
87 krb5_error_code KRB5_LIB_FUNCTION
88 _krb5_get_host_realm_int (
89         krb5_context /*context*/,
90         const char */*host*/,
91         krb5_boolean /*use_dns*/,
92         krb5_realm **/*realms*/);
93
94 krb5_error_code
95 _krb5_get_init_creds_opt_copy (
96         krb5_context /*context*/,
97         const krb5_get_init_creds_opt */*in*/,
98         krb5_get_init_creds_opt **/*out*/);
99
100 void KRB5_LIB_FUNCTION
101 _krb5_get_init_creds_opt_free_krb5_error (krb5_get_init_creds_opt */*opt*/);
102
103 void KRB5_LIB_FUNCTION
104 _krb5_get_init_creds_opt_free_pkinit (krb5_get_init_creds_opt */*opt*/);
105
106 void KRB5_LIB_FUNCTION
107 _krb5_get_init_creds_opt_set_krb5_error (
108         krb5_context /*context*/,
109         krb5_get_init_creds_opt */*opt*/,
110         const KRB_ERROR */*error*/);
111
112 krb5_ssize_t KRB5_LIB_FUNCTION
113 _krb5_get_int (
114         void */*buffer*/,
115         unsigned long */*value*/,
116         size_t /*size*/);
117
118 krb5_error_code
119 _krb5_get_krbtgt (
120         krb5_context /*context*/,
121         krb5_ccache /*id*/,
122         krb5_realm /*realm*/,
123         krb5_creds **/*cred*/);
124
125 krb5_error_code
126 _krb5_kcm_chmod (
127         krb5_context /*context*/,
128         krb5_ccache /*id*/,
129         uint16_t /*mode*/);
130
131 krb5_error_code
132 _krb5_kcm_chown (
133         krb5_context /*context*/,
134         krb5_ccache /*id*/,
135         uint32_t /*uid*/,
136         uint32_t /*gid*/);
137
138 krb5_error_code
139 _krb5_kcm_get_initial_ticket (
140         krb5_context /*context*/,
141         krb5_ccache /*id*/,
142         krb5_principal /*server*/,
143         krb5_keyblock */*key*/);
144
145 krb5_error_code
146 _krb5_kcm_get_ticket (
147         krb5_context /*context*/,
148         krb5_ccache /*id*/,
149         krb5_kdc_flags /*flags*/,
150         krb5_enctype /*enctype*/,
151         krb5_principal /*server*/);
152
153 krb5_boolean
154 _krb5_kcm_is_running (krb5_context /*context*/);
155
156 krb5_error_code
157 _krb5_kcm_noop (
158         krb5_context /*context*/,
159         krb5_ccache /*id*/);
160
161 krb5_error_code KRB5_LIB_FUNCTION
162 _krb5_krb_cr_err_reply (
163         krb5_context /*context*/,
164         const char */*name*/,
165         const char */*inst*/,
166         const char */*realm*/,
167         uint32_t /*time_ws*/,
168         uint32_t /*e*/,
169         const char */*e_string*/,
170         krb5_data */*data*/);
171
172 krb5_error_code KRB5_LIB_FUNCTION
173 _krb5_krb_create_auth_reply (
174         krb5_context /*context*/,
175         const char */*pname*/,
176         const char */*pinst*/,
177         const char */*prealm*/,
178         int32_t /*time_ws*/,
179         int /*n*/,
180         uint32_t /*x_date*/,
181         unsigned char /*kvno*/,
182         const krb5_data */*cipher*/,
183         krb5_data */*data*/);
184
185 krb5_error_code KRB5_LIB_FUNCTION
186 _krb5_krb_create_ciph (
187         krb5_context /*context*/,
188         const krb5_keyblock */*session*/,
189         const char */*service*/,
190         const char */*instance*/,
191         const char */*realm*/,
192         uint32_t /*life*/,
193         unsigned char /*kvno*/,
194         const krb5_data */*ticket*/,
195         uint32_t /*kdc_time*/,
196         const krb5_keyblock */*key*/,
197         krb5_data */*enc_data*/);
198
199 krb5_error_code KRB5_LIB_FUNCTION
200 _krb5_krb_create_ticket (
201         krb5_context /*context*/,
202         unsigned char /*flags*/,
203         const char */*pname*/,
204         const char */*pinstance*/,
205         const char */*prealm*/,
206         int32_t /*paddress*/,
207         const krb5_keyblock */*session*/,
208         int16_t /*life*/,
209         int32_t /*life_sec*/,
210         const char */*sname*/,
211         const char */*sinstance*/,
212         const krb5_keyblock */*key*/,
213         krb5_data */*enc_data*/);
214
215 krb5_error_code KRB5_LIB_FUNCTION
216 _krb5_krb_decomp_ticket (
217         krb5_context /*context*/,
218         const krb5_data */*enc_ticket*/,
219         const krb5_keyblock */*key*/,
220         const char */*local_realm*/,
221         char **/*sname*/,
222         char **/*sinstance*/,
223         struct _krb5_krb_auth_data */*ad*/);
224
225 krb5_error_code KRB5_LIB_FUNCTION
226 _krb5_krb_dest_tkt (
227         krb5_context /*context*/,
228         const char */*tkfile*/);
229
230 void KRB5_LIB_FUNCTION
231 _krb5_krb_free_auth_data (
232         krb5_context /*context*/,
233         struct _krb5_krb_auth_data */*ad*/);
234
235 time_t KRB5_LIB_FUNCTION
236 _krb5_krb_life_to_time (
237         int /*start*/,
238         int /*life_*/);
239
240 krb5_error_code KRB5_LIB_FUNCTION
241 _krb5_krb_rd_req (
242         krb5_context /*context*/,
243         krb5_data */*authent*/,
244         const char */*service*/,
245         const char */*instance*/,
246         const char */*local_realm*/,
247         int32_t /*from_addr*/,
248         const krb5_keyblock */*key*/,
249         struct _krb5_krb_auth_data */*ad*/);
250
251 krb5_error_code KRB5_LIB_FUNCTION
252 _krb5_krb_tf_setup (
253         krb5_context /*context*/,
254         struct credentials */*v4creds*/,
255         const char */*tkfile*/,
256         int /*append*/);
257
258 int KRB5_LIB_FUNCTION
259 _krb5_krb_time_to_life (
260         time_t /*start*/,
261         time_t /*end*/);
262
263 krb5_error_code
264 _krb5_krbhost_info_move (
265         krb5_context /*context*/,
266         krb5_krbhst_info */*from*/,
267         krb5_krbhst_info **/*to*/);
268
269 krb5_error_code
270 _krb5_mk_req_internal (
271         krb5_context /*context*/,
272         krb5_auth_context */*auth_context*/,
273         const krb5_flags /*ap_req_options*/,
274         krb5_data */*in_data*/,
275         krb5_creds */*in_creds*/,
276         krb5_data */*outbuf*/,
277         krb5_key_usage /*checksum_usage*/,
278         krb5_key_usage /*encrypt_usage*/);
279
280 void KRB5_LIB_FUNCTION
281 _krb5_n_fold (
282         const void */*str*/,
283         size_t /*len*/,
284         void */*key*/,
285         size_t /*size*/);
286
287 krb5_error_code KRB5_LIB_FUNCTION
288 _krb5_oid_to_enctype (
289         krb5_context /*context*/,
290         const heim_oid */*oid*/,
291         krb5_enctype */*etype*/);
292
293 krb5_error_code
294 _krb5_pac_sign (
295         krb5_context /*context*/,
296         struct krb5_pac */*p*/,
297         time_t /*authtime*/,
298         krb5_principal /*principal*/,
299         const krb5_keyblock */*server_key*/,
300         const krb5_keyblock */*priv_key*/,
301         krb5_data */*data*/);
302
303 krb5_error_code
304 _krb5_parse_moduli (
305         krb5_context /*context*/,
306         const char */*file*/,
307         struct krb5_dh_moduli ***/*moduli*/);
308
309 krb5_error_code
310 _krb5_parse_moduli_line (
311         krb5_context /*context*/,
312         const char */*file*/,
313         int /*lineno*/,
314         char */*p*/,
315         struct krb5_dh_moduli **/*m*/);
316
317 void KRB5_LIB_FUNCTION
318 _krb5_pk_allow_proxy_certificate (
319         struct krb5_pk_identity */*id*/,
320         int /*boolean*/);
321
322 void KRB5_LIB_FUNCTION
323 _krb5_pk_cert_free (struct krb5_pk_cert */*cert*/);
324
325 krb5_error_code KRB5_LIB_FUNCTION
326 _krb5_pk_load_id (
327         krb5_context /*context*/,
328         struct krb5_pk_identity **/*ret_id*/,
329         const char */*user_id*/,
330         const char */*anchor_id*/,
331         char * const */*chain_list*/,
332         char * const */*revoke_list*/,
333         krb5_prompter_fct /*prompter*/,
334         void */*prompter_data*/,
335         char */*password*/);
336
337 krb5_error_code KRB5_LIB_FUNCTION
338 _krb5_pk_mk_ContentInfo (
339         krb5_context /*context*/,
340         const krb5_data */*buf*/,
341         const heim_oid */*oid*/,
342         struct ContentInfo */*content_info*/);
343
344 krb5_error_code KRB5_LIB_FUNCTION
345 _krb5_pk_mk_padata (
346         krb5_context /*context*/,
347         void */*c*/,
348         const KDC_REQ_BODY */*req_body*/,
349         unsigned /*nonce*/,
350         METHOD_DATA */*md*/);
351
352 krb5_error_code
353 _krb5_pk_octetstring2key (
354         krb5_context /*context*/,
355         krb5_enctype /*type*/,
356         const void */*dhdata*/,
357         size_t /*dhsize*/,
358         const heim_octet_string */*c_n*/,
359         const heim_octet_string */*k_n*/,
360         krb5_keyblock */*key*/);
361
362 krb5_error_code KRB5_LIB_FUNCTION
363 _krb5_pk_rd_pa_reply (
364         krb5_context /*context*/,
365         const char */*realm*/,
366         void */*c*/,
367         krb5_enctype /*etype*/,
368         const krb5_krbhst_info */*hi*/,
369         unsigned /*nonce*/,
370         const krb5_data */*req_buffer*/,
371         PA_DATA */*pa*/,
372         krb5_keyblock **/*key*/);
373
374 krb5_error_code KRB5_LIB_FUNCTION
375 _krb5_pk_verify_sign (
376         krb5_context /*context*/,
377         const void */*data*/,
378         size_t /*length*/,
379         struct krb5_pk_identity */*id*/,
380         heim_oid */*contentType*/,
381         krb5_data */*content*/,
382         struct krb5_pk_cert **/*signer*/);
383
384 krb5_error_code
385 _krb5_plugin_find (
386         krb5_context /*context*/,
387         enum plugin_type /*type*/,
388         const char */*name*/,
389         struct krb5_plugin **/*list*/);
390
391 void
392 _krb5_plugin_free (struct krb5_plugin */*list*/);
393
394 struct krb5_plugin *
395 _krb5_plugin_get_next (struct krb5_plugin */*p*/);
396
397 void *
398 _krb5_plugin_get_symbol (struct krb5_plugin */*p*/);
399
400 krb5_error_code
401 _krb5_plugin_register (
402         krb5_context /*context*/,
403         enum plugin_type /*type*/,
404         const char */*name*/,
405         void */*symbol*/);
406
407 krb5_error_code KRB5_LIB_FUNCTION
408 _krb5_principal2principalname (
409         PrincipalName */*p*/,
410         const krb5_principal /*from*/);
411
412 krb5_error_code KRB5_LIB_FUNCTION
413 _krb5_principalname2krb5_principal (
414         krb5_context /*context*/,
415         krb5_principal */*principal*/,
416         const PrincipalName /*from*/,
417         const Realm /*realm*/);
418
419 krb5_ssize_t KRB5_LIB_FUNCTION
420 _krb5_put_int (
421         void */*buffer*/,
422         unsigned long /*value*/,
423         size_t /*size*/);
424
425 krb5_error_code KRB5_LIB_FUNCTION
426 _krb5_rd_req_out_ctx_alloc (
427         krb5_context /*context*/,
428         krb5_rd_req_out_ctx */*ctx*/);
429
430 krb5_error_code KRB5_LIB_FUNCTION
431 _krb5_s4u2self_to_checksumdata (
432         krb5_context /*context*/,
433         const PA_S4U2Self */*self*/,
434         krb5_data */*data*/);
435
436 int
437 _krb5_send_and_recv_tcp (
438         int /*fd*/,
439         time_t /*tmout*/,
440         const krb5_data */*req*/,
441         krb5_data */*rep*/);
442
443 int
444 _krb5_xlock (
445         krb5_context /*context*/,
446         int /*fd*/,
447         krb5_boolean /*exclusive*/,
448         const char */*filename*/);
449
450 int
451 _krb5_xunlock (
452         krb5_context /*context*/,
453         int /*fd*/);
454
455 #endif /* __krb5_private_h__ */