8e2ebcf43eb87cb735a62e4f9b4881973bc41d71
[amitay/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 #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 krb5_error_code KRB5_LIB_FUNCTION
16 _krb5_PKCS5_PBKDF2 (
17         krb5_context /*context*/,
18         krb5_cksumtype /*cktype*/,
19         krb5_data /*password*/,
20         krb5_salt /*salt*/,
21         u_int32_t /*iter*/,
22         krb5_keytype /*type*/,
23         krb5_keyblock */*key*/);
24
25 void KRB5_LIB_FUNCTION
26 _krb5_aes_cts_encrypt (
27         const unsigned char */*in*/,
28         unsigned char */*out*/,
29         size_t /*len*/,
30         const void */*aes_key*/,
31         unsigned char */*ivec*/,
32         const int /*encryptp*/);
33
34 void
35 _krb5_crc_init_table (void);
36
37 u_int32_t
38 _krb5_crc_update (
39         const char */*p*/,
40         size_t /*len*/,
41         u_int32_t /*res*/);
42
43 krb5_error_code
44 _krb5_expand_default_cc_name (
45         krb5_context /*context*/,
46         const char */*str*/,
47         char **/*res*/);
48
49 int
50 _krb5_extract_ticket (
51         krb5_context /*context*/,
52         krb5_kdc_rep */*rep*/,
53         krb5_creds */*creds*/,
54         krb5_keyblock */*key*/,
55         krb5_const_pointer /*keyseed*/,
56         krb5_key_usage /*key_usage*/,
57         krb5_addresses */*addrs*/,
58         unsigned /*nonce*/,
59         krb5_boolean /*allow_server_mismatch*/,
60         krb5_boolean /*ignore_cname*/,
61         krb5_decrypt_proc /*decrypt_proc*/,
62         krb5_const_pointer /*decryptarg*/);
63
64 krb5_error_code
65 _krb5_get_default_principal_local (
66         krb5_context /*context*/,
67         krb5_principal */*princ*/);
68
69 krb5_error_code KRB5_LIB_FUNCTION
70 _krb5_get_host_realm_int (
71         krb5_context /*context*/,
72         const char */*host*/,
73         krb5_boolean /*use_dns*/,
74         krb5_realm **/*realms*/);
75
76 krb5_error_code
77 _krb5_get_init_creds_opt_copy (
78         krb5_context /*context*/,
79         const krb5_get_init_creds_opt */*in*/,
80         krb5_get_init_creds_opt **/*out*/);
81
82 void KRB5_LIB_FUNCTION
83 _krb5_get_init_creds_opt_free_pkinit (krb5_get_init_creds_opt */*opt*/);
84
85 krb5_ssize_t KRB5_LIB_FUNCTION
86 _krb5_get_int (
87         void */*buffer*/,
88         unsigned long */*value*/,
89         size_t /*size*/);
90
91 krb5_error_code
92 _krb5_get_krbtgt (
93         krb5_context /*context*/,
94         krb5_ccache /*id*/,
95         krb5_realm /*realm*/,
96         krb5_creds **/*cred*/);
97
98 krb5_error_code
99 _krb5_kcm_chmod (
100         krb5_context /*context*/,
101         krb5_ccache /*id*/,
102         u_int16_t /*mode*/);
103
104 krb5_error_code
105 _krb5_kcm_chown (
106         krb5_context /*context*/,
107         krb5_ccache /*id*/,
108         u_int32_t /*uid*/,
109         u_int32_t /*gid*/);
110
111 krb5_error_code
112 _krb5_kcm_get_initial_ticket (
113         krb5_context /*context*/,
114         krb5_ccache /*id*/,
115         krb5_principal /*server*/,
116         krb5_keyblock */*key*/);
117
118 krb5_error_code
119 _krb5_kcm_get_ticket (
120         krb5_context /*context*/,
121         krb5_ccache /*id*/,
122         krb5_kdc_flags /*flags*/,
123         krb5_enctype /*enctype*/,
124         krb5_principal /*server*/);
125
126 krb5_boolean
127 _krb5_kcm_is_running (krb5_context /*context*/);
128
129 krb5_error_code
130 _krb5_kcm_noop (
131         krb5_context /*context*/,
132         krb5_ccache /*id*/);
133
134 krb5_error_code KRB5_LIB_FUNCTION
135 _krb5_krb_cr_err_reply (
136         krb5_context /*context*/,
137         const char */*name*/,
138         const char */*inst*/,
139         const char */*realm*/,
140         u_int32_t /*time_ws*/,
141         u_int32_t /*e*/,
142         const char */*e_string*/,
143         krb5_data */*data*/);
144
145 krb5_error_code KRB5_LIB_FUNCTION
146 _krb5_krb_create_auth_reply (
147         krb5_context /*context*/,
148         const char */*pname*/,
149         const char */*pinst*/,
150         const char */*prealm*/,
151         int32_t /*time_ws*/,
152         int /*n*/,
153         u_int32_t /*x_date*/,
154         unsigned char /*kvno*/,
155         const krb5_data */*cipher*/,
156         krb5_data */*data*/);
157
158 krb5_error_code KRB5_LIB_FUNCTION
159 _krb5_krb_create_ciph (
160         krb5_context /*context*/,
161         const krb5_keyblock */*session*/,
162         const char */*service*/,
163         const char */*instance*/,
164         const char */*realm*/,
165         u_int32_t /*life*/,
166         unsigned char /*kvno*/,
167         const krb5_data */*ticket*/,
168         u_int32_t /*kdc_time*/,
169         const krb5_keyblock */*key*/,
170         krb5_data */*enc_data*/);
171
172 krb5_error_code KRB5_LIB_FUNCTION
173 _krb5_krb_create_ticket (
174         krb5_context /*context*/,
175         unsigned char /*flags*/,
176         const char */*pname*/,
177         const char */*pinstance*/,
178         const char */*prealm*/,
179         int32_t /*paddress*/,
180         const krb5_keyblock */*session*/,
181         int16_t /*life*/,
182         int32_t /*life_sec*/,
183         const char */*sname*/,
184         const char */*sinstance*/,
185         const krb5_keyblock */*key*/,
186         krb5_data */*enc_data*/);
187
188 krb5_error_code KRB5_LIB_FUNCTION
189 _krb5_krb_decomp_ticket (
190         krb5_context /*context*/,
191         const krb5_data */*enc_ticket*/,
192         const krb5_keyblock */*key*/,
193         const char */*local_realm*/,
194         char **/*sname*/,
195         char **/*sinstance*/,
196         struct _krb5_krb_auth_data */*ad*/);
197
198 krb5_error_code KRB5_LIB_FUNCTION
199 _krb5_krb_dest_tkt (
200         krb5_context /*context*/,
201         const char */*tkfile*/);
202
203 void KRB5_LIB_FUNCTION
204 _krb5_krb_free_auth_data (
205         krb5_context /*context*/,
206         struct _krb5_krb_auth_data */*ad*/);
207
208 time_t KRB5_LIB_FUNCTION
209 _krb5_krb_life_to_time (
210         int /*start*/,
211         int /*life_*/);
212
213 krb5_error_code KRB5_LIB_FUNCTION
214 _krb5_krb_rd_req (
215         krb5_context /*context*/,
216         krb5_data */*authent*/,
217         const char */*service*/,
218         const char */*instance*/,
219         const char */*local_realm*/,
220         int32_t /*from_addr*/,
221         const krb5_keyblock */*key*/,
222         struct _krb5_krb_auth_data */*ad*/);
223
224 krb5_error_code KRB5_LIB_FUNCTION
225 _krb5_krb_tf_setup (
226         krb5_context /*context*/,
227         struct credentials */*v4creds*/,
228         const char */*tkfile*/,
229         int /*append*/);
230
231 int KRB5_LIB_FUNCTION
232 _krb5_krb_time_to_life (
233         time_t /*start*/,
234         time_t /*end*/);
235
236 krb5_error_code
237 _krb5_mk_req_internal (
238         krb5_context /*context*/,
239         krb5_auth_context */*auth_context*/,
240         const krb5_flags /*ap_req_options*/,
241         krb5_data */*in_data*/,
242         krb5_creds */*in_creds*/,
243         krb5_data */*outbuf*/,
244         krb5_key_usage /*checksum_usage*/,
245         krb5_key_usage /*encrypt_usage*/);
246
247 void KRB5_LIB_FUNCTION
248 _krb5_n_fold (
249         const void */*str*/,
250         size_t /*len*/,
251         void */*key*/,
252         size_t /*size*/);
253
254 krb5_error_code KRB5_LIB_FUNCTION
255 _krb5_oid_to_enctype (
256         krb5_context /*context*/,
257         const heim_oid */*oid*/,
258         krb5_enctype */*etype*/);
259
260 void KRB5_LIB_FUNCTION
261 _krb5_pk_cert_free (struct krb5_pk_cert */*cert*/);
262
263 krb5_error_code KRB5_LIB_FUNCTION
264 _krb5_pk_create_sign (
265         krb5_context /*context*/,
266         const heim_oid */*eContentType*/,
267         krb5_data */*eContent*/,
268         struct krb5_pk_identity */*id*/,
269         krb5_data */*sd_data*/);
270
271 krb5_error_code KRB5_LIB_FUNCTION
272 _krb5_pk_load_openssl_id (
273         krb5_context /*context*/,
274         struct krb5_pk_identity **/*ret_id*/,
275         const char */*user_id*/,
276         const char */*x509_anchors*/,
277         krb5_prompter_fct /*prompter*/,
278         void */*prompter_data*/,
279         char */*password*/);
280
281 krb5_error_code KRB5_LIB_FUNCTION
282 _krb5_pk_mk_ContentInfo (
283         krb5_context /*context*/,
284         const krb5_data */*buf*/,
285         const heim_oid */*oid*/,
286         struct ContentInfo */*content_info*/);
287
288 krb5_error_code KRB5_LIB_FUNCTION
289 _krb5_pk_mk_padata (
290         krb5_context /*context*/,
291         void */*c*/,
292         const KDC_REQ_BODY */*req_body*/,
293         unsigned /*nonce*/,
294         METHOD_DATA */*md*/);
295
296 krb5_error_code
297 _krb5_pk_octetstring2key (
298         krb5_context /*context*/,
299         krb5_enctype /*type*/,
300         const void */*dhdata*/,
301         size_t /*dhsize*/,
302         const heim_octet_string */*c_n*/,
303         const heim_octet_string */*k_n*/,
304         krb5_keyblock */*key*/);
305
306 krb5_error_code KRB5_LIB_FUNCTION
307 _krb5_pk_rd_pa_reply (
308         krb5_context /*context*/,
309         void */*c*/,
310         krb5_enctype /*etype*/,
311         unsigned /*nonce*/,
312         const krb5_data */*req_buffer*/,
313         PA_DATA */*pa*/,
314         krb5_keyblock **/*key*/);
315
316 krb5_error_code KRB5_LIB_FUNCTION
317 _krb5_pk_verify_sign (
318         krb5_context /*context*/,
319         const char */*data*/,
320         size_t /*length*/,
321         struct krb5_pk_identity */*id*/,
322         heim_oid */*contentType*/,
323         krb5_data */*content*/,
324         struct krb5_pk_cert **/*signer*/);
325
326 krb5_error_code KRB5_LIB_FUNCTION
327 _krb5_principal2principalname (
328         PrincipalName */*p*/,
329         const krb5_principal /*from*/);
330
331 krb5_error_code KRB5_LIB_FUNCTION
332 _krb5_principalname2krb5_principal (
333         krb5_principal */*principal*/,
334         const PrincipalName /*from*/,
335         const Realm /*realm*/);
336
337 krb5_ssize_t KRB5_LIB_FUNCTION
338 _krb5_put_int (
339         void */*buffer*/,
340         unsigned long /*value*/,
341         size_t /*size*/);
342
343 krb5_error_code KRB5_LIB_FUNCTION
344 _krb5_rd_rep_type (
345         krb5_context /*context*/,
346         krb5_auth_context /*auth_context*/,
347         const krb5_data */*inbuf*/,
348         krb5_ap_rep_enc_part **/*repl*/,
349         krb5_boolean /*dce_style_response*/);
350
351 int
352 _krb5_send_and_recv_tcp (
353         int /*fd*/,
354         time_t /*tmout*/,
355         const krb5_data */*req*/,
356         krb5_data */*rep*/);
357
358 int
359 _krb5_xlock (
360         krb5_context /*context*/,
361         int /*fd*/,
362         krb5_boolean /*exclusive*/,
363         const char */*filename*/);
364
365 int
366 _krb5_xunlock (
367         krb5_context /*context*/,
368         int /*fd*/);
369
370 #endif /* __krb5_private_h__ */