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