1 /* This is a generated file */
2 #ifndef __krb5_private_h__
3 #define __krb5_private_h__
7 #ifndef KRB5_LIB_FUNCTION
9 #define KRB5_LIB_FUNCTION _stdcall
11 #define KRB5_LIB_FUNCTION
15 void KRB5_LIB_FUNCTION
16 _krb5_aes_cts_encrypt (
17 const unsigned char */*in*/,
18 unsigned char */*out*/,
20 const AES_KEY */*key*/,
21 unsigned char */*ivec*/,
22 const int /*encryptp*/);
26 krb5_context /*context*/,
27 const krb5_cc_ops */*ops*/,
31 _krb5_crc_init_table (void);
41 krb5_context /*context*/,
42 unsigned long /*bits*/,
46 struct krb5_dh_moduli **/*moduli*/,
49 krb5_error_code KRB5_LIB_FUNCTION
50 _krb5_enctype_to_oid (
51 krb5_context /*context*/,
52 krb5_enctype /*etype*/,
56 _krb5_expand_default_cc_name (
57 krb5_context /*context*/,
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*/,
71 krb5_boolean /*allow_server_mismatch*/,
72 krb5_boolean /*ignore_cname*/,
73 krb5_decrypt_proc /*decrypt_proc*/,
74 krb5_const_pointer /*decryptarg*/);
77 _krb5_find_type_in_ad (
78 krb5_context /*context*/,
81 krb5_boolean */*found*/,
82 krb5_keyblock */*sessionkey*/,
83 const AuthorizationData */*ad*/);
86 _krb5_free_krbhst_info (krb5_krbhst_info */*hi*/);
89 _krb5_free_moduli (struct krb5_dh_moduli **/*moduli*/);
92 _krb5_get_default_principal_local (
93 krb5_context /*context*/,
94 krb5_principal */*princ*/);
96 krb5_error_code KRB5_LIB_FUNCTION
97 _krb5_get_host_realm_int (
98 krb5_context /*context*/,
100 krb5_boolean /*use_dns*/,
101 krb5_realm **/*realms*/);
104 _krb5_get_init_creds_opt_copy (
105 krb5_context /*context*/,
106 const krb5_get_init_creds_opt */*in*/,
107 krb5_get_init_creds_opt **/*out*/);
109 void KRB5_LIB_FUNCTION
110 _krb5_get_init_creds_opt_free_krb5_error (krb5_get_init_creds_opt */*opt*/);
112 void KRB5_LIB_FUNCTION
113 _krb5_get_init_creds_opt_free_pkinit (krb5_get_init_creds_opt */*opt*/);
115 void KRB5_LIB_FUNCTION
116 _krb5_get_init_creds_opt_set_krb5_error (
117 krb5_context /*context*/,
118 krb5_get_init_creds_opt */*opt*/,
119 const KRB_ERROR */*error*/);
121 krb5_ssize_t KRB5_LIB_FUNCTION
124 unsigned long */*value*/,
129 krb5_context /*context*/,
131 krb5_realm /*realm*/,
132 krb5_creds **/*cred*/);
136 krb5_context /*context*/,
142 krb5_context /*context*/,
148 _krb5_kcm_get_initial_ticket (
149 krb5_context /*context*/,
151 krb5_principal /*server*/,
152 krb5_keyblock */*key*/);
155 _krb5_kcm_get_ticket (
156 krb5_context /*context*/,
158 krb5_kdc_flags /*flags*/,
159 krb5_enctype /*enctype*/,
160 krb5_principal /*server*/);
163 _krb5_kcm_is_running (krb5_context /*context*/);
167 krb5_context /*context*/,
170 krb5_error_code KRB5_LIB_FUNCTION
171 _krb5_krb_cr_err_reply (
172 krb5_context /*context*/,
173 const char */*name*/,
174 const char */*inst*/,
175 const char */*realm*/,
176 uint32_t /*time_ws*/,
178 const char */*e_string*/,
179 krb5_data */*data*/);
181 krb5_error_code KRB5_LIB_FUNCTION
182 _krb5_krb_create_auth_reply (
183 krb5_context /*context*/,
184 const char */*pname*/,
185 const char */*pinst*/,
186 const char */*prealm*/,
190 unsigned char /*kvno*/,
191 const krb5_data */*cipher*/,
192 krb5_data */*data*/);
194 krb5_error_code KRB5_LIB_FUNCTION
195 _krb5_krb_create_ciph (
196 krb5_context /*context*/,
197 const krb5_keyblock */*session*/,
198 const char */*service*/,
199 const char */*instance*/,
200 const char */*realm*/,
202 unsigned char /*kvno*/,
203 const krb5_data */*ticket*/,
204 uint32_t /*kdc_time*/,
205 const krb5_keyblock */*key*/,
206 krb5_data */*enc_data*/);
208 krb5_error_code KRB5_LIB_FUNCTION
209 _krb5_krb_create_ticket (
210 krb5_context /*context*/,
211 unsigned char /*flags*/,
212 const char */*pname*/,
213 const char */*pinstance*/,
214 const char */*prealm*/,
215 int32_t /*paddress*/,
216 const krb5_keyblock */*session*/,
218 int32_t /*life_sec*/,
219 const char */*sname*/,
220 const char */*sinstance*/,
221 const krb5_keyblock */*key*/,
222 krb5_data */*enc_data*/);
224 krb5_error_code KRB5_LIB_FUNCTION
225 _krb5_krb_decomp_ticket (
226 krb5_context /*context*/,
227 const krb5_data */*enc_ticket*/,
228 const krb5_keyblock */*key*/,
229 const char */*local_realm*/,
231 char **/*sinstance*/,
232 struct _krb5_krb_auth_data */*ad*/);
234 krb5_error_code KRB5_LIB_FUNCTION
236 krb5_context /*context*/,
237 const char */*tkfile*/);
239 void KRB5_LIB_FUNCTION
240 _krb5_krb_free_auth_data (
241 krb5_context /*context*/,
242 struct _krb5_krb_auth_data */*ad*/);
244 time_t KRB5_LIB_FUNCTION
245 _krb5_krb_life_to_time (
249 krb5_error_code KRB5_LIB_FUNCTION
251 krb5_context /*context*/,
252 krb5_data */*authent*/,
253 const char */*service*/,
254 const char */*instance*/,
255 const char */*local_realm*/,
256 int32_t /*from_addr*/,
257 const krb5_keyblock */*key*/,
258 struct _krb5_krb_auth_data */*ad*/);
260 krb5_error_code KRB5_LIB_FUNCTION
262 krb5_context /*context*/,
263 struct credentials */*v4creds*/,
264 const char */*tkfile*/,
267 int KRB5_LIB_FUNCTION
268 _krb5_krb_time_to_life (
273 _krb5_krbhost_info_move (
274 krb5_context /*context*/,
275 krb5_krbhst_info */*from*/,
276 krb5_krbhst_info **/*to*/);
279 _krb5_mk_req_internal (
280 krb5_context /*context*/,
281 krb5_auth_context */*auth_context*/,
282 const krb5_flags /*ap_req_options*/,
283 krb5_data */*in_data*/,
284 krb5_creds */*in_creds*/,
285 krb5_data */*outbuf*/,
286 krb5_key_usage /*checksum_usage*/,
287 krb5_key_usage /*encrypt_usage*/);
289 void KRB5_LIB_FUNCTION
296 krb5_error_code KRB5_LIB_FUNCTION
297 _krb5_oid_to_enctype (
298 krb5_context /*context*/,
299 const heim_oid */*oid*/,
300 krb5_enctype */*etype*/);
304 krb5_context /*context*/,
305 struct krb5_pac */*pac*/);
309 krb5_context /*context*/,
312 struct krb5_pac **/*pac*/);
316 krb5_context /*context*/,
317 struct krb5_pac */*p*/,
319 krb5_principal /*principal*/,
320 krb5_keyblock */*server_key*/,
321 krb5_keyblock */*priv_key*/,
322 krb5_data */*data*/);
326 krb5_context /*context*/,
327 struct krb5_pac */*pac*/,
329 krb5_principal /*principal*/,
330 krb5_keyblock */*server*/,
331 krb5_keyblock */*privsvr*/);
335 krb5_context /*context*/,
336 const char */*file*/,
337 struct krb5_dh_moduli ***/*moduli*/);
340 _krb5_parse_moduli_line (
341 krb5_context /*context*/,
342 const char */*file*/,
345 struct krb5_dh_moduli **/*m*/);
347 void KRB5_LIB_FUNCTION
348 _krb5_pk_allow_proxy_certificate (
349 struct krb5_pk_identity */*id*/,
352 void KRB5_LIB_FUNCTION
353 _krb5_pk_cert_free (struct krb5_pk_cert */*cert*/);
355 krb5_error_code KRB5_LIB_FUNCTION
357 krb5_context /*context*/,
358 struct krb5_pk_identity **/*ret_id*/,
359 const char */*user_id*/,
360 const char */*anchor_id*/,
361 char * const */*chain_list*/,
362 char * const */*revoke_list*/,
363 krb5_prompter_fct /*prompter*/,
364 void */*prompter_data*/,
367 krb5_error_code KRB5_LIB_FUNCTION
368 _krb5_pk_mk_ContentInfo (
369 krb5_context /*context*/,
370 const krb5_data */*buf*/,
371 const heim_oid */*oid*/,
372 struct ContentInfo */*content_info*/);
374 krb5_error_code KRB5_LIB_FUNCTION
376 krb5_context /*context*/,
378 const KDC_REQ_BODY */*req_body*/,
380 METHOD_DATA */*md*/);
383 _krb5_pk_octetstring2key (
384 krb5_context /*context*/,
385 krb5_enctype /*type*/,
386 const void */*dhdata*/,
388 const heim_octet_string */*c_n*/,
389 const heim_octet_string */*k_n*/,
390 krb5_keyblock */*key*/);
392 krb5_error_code KRB5_LIB_FUNCTION
393 _krb5_pk_rd_pa_reply (
394 krb5_context /*context*/,
395 const char */*realm*/,
397 krb5_enctype /*etype*/,
398 const krb5_krbhst_info */*hi*/,
400 const krb5_data */*req_buffer*/,
402 krb5_keyblock **/*key*/);
404 krb5_error_code KRB5_LIB_FUNCTION
405 _krb5_pk_verify_sign (
406 krb5_context /*context*/,
407 const void */*data*/,
409 struct krb5_pk_identity */*id*/,
410 heim_oid */*contentType*/,
411 krb5_data */*content*/,
412 struct krb5_pk_cert **/*signer*/);
416 krb5_context /*context*/,
417 enum plugin_type /*type*/,
418 const char */*name*/,
419 struct krb5_plugin **/*list*/);
422 _krb5_plugin_free (struct krb5_plugin */*list*/);
425 _krb5_plugin_get_next (struct krb5_plugin */*p*/);
428 _krb5_plugin_get_symbol (struct krb5_plugin */*p*/);
431 _krb5_plugin_register (
432 krb5_context /*context*/,
433 enum plugin_type /*type*/,
434 const char */*name*/,
437 krb5_error_code KRB5_LIB_FUNCTION
438 _krb5_principal2principalname (
439 PrincipalName */*p*/,
440 const krb5_principal /*from*/);
442 krb5_error_code KRB5_LIB_FUNCTION
443 _krb5_principalname2krb5_principal (
444 krb5_context /*context*/,
445 krb5_principal */*principal*/,
446 const PrincipalName /*from*/,
447 const Realm /*realm*/);
449 krb5_ssize_t KRB5_LIB_FUNCTION
452 unsigned long /*value*/,
455 krb5_error_code KRB5_LIB_FUNCTION
456 _krb5_rd_req_out_ctx_alloc (
457 krb5_context /*context*/,
458 krb5_rd_req_out_ctx */*ctx*/);
460 krb5_error_code KRB5_LIB_FUNCTION
461 _krb5_s4u2self_to_checksumdata (
462 krb5_context /*context*/,
463 const PA_S4U2Self */*self*/,
464 krb5_data */*data*/);
467 _krb5_send_and_recv_tcp (
470 const krb5_data */*req*/,
475 krb5_context /*context*/,
477 krb5_boolean /*exclusive*/,
478 const char */*filename*/);
482 krb5_context /*context*/,
485 #endif /* __krb5_private_h__ */