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 krb5_error_code KRB5_LIB_FUNCTION
17 krb5_context /*context*/,
18 krb5_cksumtype /*cktype*/,
19 krb5_data /*password*/,
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*/,
30 const void */*aes_key*/,
31 unsigned char */*ivec*/,
32 const int /*encryptp*/);
35 _krb5_crc_init_table (void);
44 _krb5_expand_default_cc_name (
45 krb5_context /*context*/,
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*/,
59 krb5_boolean /*allow_server_mismatch*/,
60 krb5_boolean /*ignore_cname*/,
61 krb5_decrypt_proc /*decrypt_proc*/,
62 krb5_const_pointer /*decryptarg*/);
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*/,
73 krb5_boolean /*use_dns*/,
74 krb5_realm **/*realms*/);
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
88 unsigned long */*value*/,
93 krb5_context /*context*/,
96 krb5_creds **/*cred*/);
100 krb5_context /*context*/,
106 krb5_context /*context*/,
112 _krb5_kcm_get_initial_ticket (
113 krb5_context /*context*/,
115 krb5_principal /*server*/,
116 krb5_keyblock */*key*/);
119 _krb5_kcm_get_ticket (
120 krb5_context /*context*/,
122 krb5_kdc_flags /*flags*/,
123 krb5_enctype /*enctype*/,
124 krb5_principal /*server*/);
127 _krb5_kcm_is_running (krb5_context /*context*/);
131 krb5_context /*context*/,
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*/,
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*/,
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*/,
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*/,
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*/,
195 char **/*sinstance*/,
196 struct _krb5_krb_auth_data */*ad*/);
198 krb5_error_code KRB5_LIB_FUNCTION
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 (
213 krb5_error_code KRB5_LIB_FUNCTION
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
226 krb5_context /*context*/,
227 struct credentials */*v4creds*/,
228 const char */*tkfile*/,
231 int KRB5_LIB_FUNCTION
232 _krb5_krb_time_to_life (
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
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*/,
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
290 krb5_context /*context*/,
292 const KDC_REQ_BODY */*req_body*/,
294 METHOD_DATA */*md*/);
297 _krb5_pk_octetstring2key (
298 krb5_context /*context*/,
299 krb5_enctype /*type*/,
300 const void */*dhdata*/,
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*/,
310 krb5_enctype /*etype*/,
312 const krb5_data */*req_buffer*/,
314 krb5_keyblock **/*key*/);
316 krb5_error_code KRB5_LIB_FUNCTION
317 _krb5_pk_verify_sign (
318 krb5_context /*context*/,
319 const char */*data*/,
321 struct krb5_pk_identity */*id*/,
322 heim_oid */*contentType*/,
323 krb5_data */*content*/,
324 struct krb5_pk_cert **/*signer*/);
326 krb5_error_code KRB5_LIB_FUNCTION
327 _krb5_principal2principalname (
328 PrincipalName */*p*/,
329 const krb5_principal /*from*/);
331 krb5_error_code KRB5_LIB_FUNCTION
332 _krb5_principalname2krb5_principal (
333 krb5_principal */*principal*/,
334 const PrincipalName /*from*/,
335 const Realm /*realm*/);
337 krb5_ssize_t KRB5_LIB_FUNCTION
340 unsigned long /*value*/,
343 krb5_error_code KRB5_LIB_FUNCTION
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*/);
352 _krb5_send_and_recv_tcp (
355 const krb5_data */*req*/,
360 krb5_context /*context*/,
362 krb5_boolean /*exclusive*/,
363 const char */*filename*/);
367 krb5_context /*context*/,
370 #endif /* __krb5_private_h__ */