r9413: Bring Samba4 back up to date with lorikeet-heimdal.
[Samba/aatanasov.git] / source / heimdal / lib / krb5 / krb5-private.h
blobe70527845bdf8a89ff86b500069dee707a3dcf47
1 /* This is a generated file */
2 #ifndef __krb5_private_h__
3 #define __krb5_private_h__
5 #include <stdarg.h>
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
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*/);
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*/);
34 void
35 _krb5_crc_init_table (void);
37 u_int32_t
38 _krb5_crc_update (
39 const char */*p*/,
40 size_t /*len*/,
41 u_int32_t /*res*/);
43 krb5_error_code
44 _krb5_expand_default_cc_name (
45 krb5_context /*context*/,
46 const char */*str*/,
47 char **/*res*/);
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*/);
64 krb5_error_code
65 _krb5_get_default_principal_local (
66 krb5_context /*context*/,
67 krb5_principal */*princ*/);
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*/);
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*/);
82 void KRB5_LIB_FUNCTION
83 _krb5_get_init_creds_opt_free_pkinit (krb5_get_init_creds_opt */*opt*/);
85 krb5_ssize_t KRB5_LIB_FUNCTION
86 _krb5_get_int (
87 void */*buffer*/,
88 unsigned long */*value*/,
89 size_t /*size*/);
91 krb5_error_code
92 _krb5_get_krbtgt (
93 krb5_context /*context*/,
94 krb5_ccache /*id*/,
95 krb5_realm /*realm*/,
96 krb5_creds **/*cred*/);
98 krb5_error_code
99 _krb5_kcm_chmod (
100 krb5_context /*context*/,
101 krb5_ccache /*id*/,
102 u_int16_t /*mode*/);
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*/);
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*/);
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*/);
126 krb5_boolean
127 _krb5_kcm_is_running (krb5_context /*context*/);
129 krb5_error_code
130 _krb5_kcm_noop (
131 krb5_context /*context*/,
132 krb5_ccache /*id*/);
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*/);
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*/);
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*/);
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*/);
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*/);
198 krb5_error_code KRB5_LIB_FUNCTION
199 _krb5_krb_dest_tkt (
200 krb5_context /*context*/,
201 const char */*tkfile*/);
203 void KRB5_LIB_FUNCTION
204 _krb5_krb_free_auth_data (
205 krb5_context /*context*/,
206 struct _krb5_krb_auth_data */*ad*/);
208 time_t KRB5_LIB_FUNCTION
209 _krb5_krb_life_to_time (
210 int /*start*/,
211 int /*life_*/);
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*/);
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*/);
231 int KRB5_LIB_FUNCTION
232 _krb5_krb_time_to_life (
233 time_t /*start*/,
234 time_t /*end*/);
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*/);
247 void KRB5_LIB_FUNCTION
248 _krb5_n_fold (
249 const void */*str*/,
250 size_t /*len*/,
251 void */*key*/,
252 size_t /*size*/);
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*/);
260 void KRB5_LIB_FUNCTION
261 _krb5_pk_cert_free (struct krb5_pk_cert */*cert*/);
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*/);
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*/);
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*/);
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*/);
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*/);
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 PA_DATA */*pa*/,
313 krb5_keyblock **/*key*/);
315 krb5_error_code KRB5_LIB_FUNCTION
316 _krb5_pk_verify_sign (
317 krb5_context /*context*/,
318 const char */*data*/,
319 size_t /*length*/,
320 struct krb5_pk_identity */*id*/,
321 heim_oid */*contentType*/,
322 krb5_data */*content*/,
323 struct krb5_pk_cert **/*signer*/);
325 krb5_error_code KRB5_LIB_FUNCTION
326 _krb5_principal2principalname (
327 PrincipalName */*p*/,
328 const krb5_principal /*from*/);
330 krb5_error_code KRB5_LIB_FUNCTION
331 _krb5_principalname2krb5_principal (
332 krb5_principal */*principal*/,
333 const PrincipalName /*from*/,
334 const Realm /*realm*/);
336 krb5_ssize_t KRB5_LIB_FUNCTION
337 _krb5_put_int (
338 void */*buffer*/,
339 unsigned long /*value*/,
340 size_t /*size*/);
342 krb5_error_code KRB5_LIB_FUNCTION
343 _krb5_rd_rep_type (
344 krb5_context /*context*/,
345 krb5_auth_context /*auth_context*/,
346 const krb5_data */*inbuf*/,
347 krb5_ap_rep_enc_part **/*repl*/,
348 krb5_boolean /*dce_style_response*/);
351 _krb5_send_and_recv_tcp (
352 int /*fd*/,
353 time_t /*tmout*/,
354 const krb5_data */*req*/,
355 krb5_data */*rep*/);
358 _krb5_xlock (
359 krb5_context /*context*/,
360 int /*fd*/,
361 krb5_boolean /*exclusive*/,
362 const char */*filename*/);
365 _krb5_xunlock (
366 krb5_context /*context*/,
367 int /*fd*/);
369 #endif /* __krb5_private_h__ */