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