No empty .Rs/.Re
[netbsd-mini2440.git] / crypto / dist / heimdal / lib / krb5 / krb5-private.h
blob7e04446fe07ccbfc529522acf8875e560e2fa963
1 /* This is a generated file */
2 #ifndef __krb5_private_h__
3 #define __krb5_private_h__
5 #include <stdarg.h>
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*/);
16 krb5_error_code
17 _krb5_cc_allocate (
18 krb5_context /*context*/,
19 const krb5_cc_ops */*ops*/,
20 krb5_ccache */*id*/);
22 void
23 _krb5_crc_init_table (void);
25 uint32_t
26 _krb5_crc_update (
27 const char */*p*/,
28 size_t /*len*/,
29 uint32_t /*res*/);
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*/);
41 krb5_error_code KRB5_LIB_FUNCTION
42 _krb5_enctype_to_oid (
43 krb5_context /*context*/,
44 krb5_enctype /*etype*/,
45 heim_oid */*oid*/);
47 krb5_error_code
48 _krb5_expand_default_cc_name (
49 krb5_context /*context*/,
50 const char */*str*/,
51 char **/*res*/);
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*/);
67 void
68 _krb5_free_krbhst_info (krb5_krbhst_info */*hi*/);
70 void
71 _krb5_free_moduli (struct krb5_dh_moduli **/*moduli*/);
73 krb5_error_code
74 _krb5_get_default_principal_local (
75 krb5_context /*context*/,
76 krb5_principal */*princ*/);
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*/);
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*/);
91 void KRB5_LIB_FUNCTION
92 _krb5_get_init_creds_opt_free_krb5_error (krb5_get_init_creds_opt */*opt*/);
94 void KRB5_LIB_FUNCTION
95 _krb5_get_init_creds_opt_free_pkinit (krb5_get_init_creds_opt */*opt*/);
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*/);
103 krb5_ssize_t KRB5_LIB_FUNCTION
104 _krb5_get_int (
105 void */*buffer*/,
106 unsigned long */*value*/,
107 size_t /*size*/);
109 krb5_error_code
110 _krb5_get_krbtgt (
111 krb5_context /*context*/,
112 krb5_ccache /*id*/,
113 krb5_realm /*realm*/,
114 krb5_creds **/*cred*/);
116 krb5_error_code
117 _krb5_kcm_chmod (
118 krb5_context /*context*/,
119 krb5_ccache /*id*/,
120 uint16_t /*mode*/);
122 krb5_error_code
123 _krb5_kcm_chown (
124 krb5_context /*context*/,
125 krb5_ccache /*id*/,
126 uint32_t /*uid*/,
127 uint32_t /*gid*/);
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*/);
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*/);
144 krb5_boolean
145 _krb5_kcm_is_running (krb5_context /*context*/);
147 krb5_error_code
148 _krb5_kcm_noop (
149 krb5_context /*context*/,
150 krb5_ccache /*id*/);
152 krb5_error_code
153 _krb5_kdc_retry (
154 krb5_context /*context*/,
155 krb5_sendto_ctx /*ctx*/,
156 void */*data*/,
157 const krb5_data */*reply*/,
158 int */*action*/);
160 krb5_error_code KRB5_LIB_FUNCTION
161 _krb5_krb_cr_err_reply (
162 krb5_context /*context*/,
163 const char */*name*/,
164 const char */*inst*/,
165 const char */*realm*/,
166 uint32_t /*time_ws*/,
167 uint32_t /*e*/,
168 const char */*e_string*/,
169 krb5_data */*data*/);
171 krb5_error_code KRB5_LIB_FUNCTION
172 _krb5_krb_create_auth_reply (
173 krb5_context /*context*/,
174 const char */*pname*/,
175 const char */*pinst*/,
176 const char */*prealm*/,
177 int32_t /*time_ws*/,
178 int /*n*/,
179 uint32_t /*x_date*/,
180 unsigned char /*kvno*/,
181 const krb5_data */*cipher*/,
182 krb5_data */*data*/);
184 krb5_error_code KRB5_LIB_FUNCTION
185 _krb5_krb_create_ciph (
186 krb5_context /*context*/,
187 const krb5_keyblock */*session*/,
188 const char */*service*/,
189 const char */*instance*/,
190 const char */*realm*/,
191 uint32_t /*life*/,
192 unsigned char /*kvno*/,
193 const krb5_data */*ticket*/,
194 uint32_t /*kdc_time*/,
195 const krb5_keyblock */*key*/,
196 krb5_data */*enc_data*/);
198 krb5_error_code KRB5_LIB_FUNCTION
199 _krb5_krb_create_ticket (
200 krb5_context /*context*/,
201 unsigned char /*flags*/,
202 const char */*pname*/,
203 const char */*pinstance*/,
204 const char */*prealm*/,
205 int32_t /*paddress*/,
206 const krb5_keyblock */*session*/,
207 int16_t /*life*/,
208 int32_t /*life_sec*/,
209 const char */*sname*/,
210 const char */*sinstance*/,
211 const krb5_keyblock */*key*/,
212 krb5_data */*enc_data*/);
214 krb5_error_code KRB5_LIB_FUNCTION
215 _krb5_krb_decomp_ticket (
216 krb5_context /*context*/,
217 const krb5_data */*enc_ticket*/,
218 const krb5_keyblock */*key*/,
219 const char */*local_realm*/,
220 char **/*sname*/,
221 char **/*sinstance*/,
222 struct _krb5_krb_auth_data */*ad*/);
224 krb5_error_code KRB5_LIB_FUNCTION
225 _krb5_krb_dest_tkt (
226 krb5_context /*context*/,
227 const char */*tkfile*/);
229 void KRB5_LIB_FUNCTION
230 _krb5_krb_free_auth_data (
231 krb5_context /*context*/,
232 struct _krb5_krb_auth_data */*ad*/);
234 time_t KRB5_LIB_FUNCTION
235 _krb5_krb_life_to_time (
236 int /*start*/,
237 int /*life_*/);
239 krb5_error_code KRB5_LIB_FUNCTION
240 _krb5_krb_rd_req (
241 krb5_context /*context*/,
242 krb5_data */*authent*/,
243 const char */*service*/,
244 const char */*instance*/,
245 const char */*local_realm*/,
246 int32_t /*from_addr*/,
247 const krb5_keyblock */*key*/,
248 struct _krb5_krb_auth_data */*ad*/);
250 krb5_error_code KRB5_LIB_FUNCTION
251 _krb5_krb_tf_setup (
252 krb5_context /*context*/,
253 struct credentials */*v4creds*/,
254 const char */*tkfile*/,
255 int /*append*/);
257 int KRB5_LIB_FUNCTION
258 _krb5_krb_time_to_life (
259 time_t /*start*/,
260 time_t /*end*/);
262 krb5_error_code
263 _krb5_krbhost_info_move (
264 krb5_context /*context*/,
265 krb5_krbhst_info */*from*/,
266 krb5_krbhst_info **/*to*/);
268 krb5_error_code
269 _krb5_mk_req_internal (
270 krb5_context /*context*/,
271 krb5_auth_context */*auth_context*/,
272 const krb5_flags /*ap_req_options*/,
273 krb5_data */*in_data*/,
274 krb5_creds */*in_creds*/,
275 krb5_data */*outbuf*/,
276 krb5_key_usage /*checksum_usage*/,
277 krb5_key_usage /*encrypt_usage*/);
279 krb5_error_code KRB5_LIB_FUNCTION
280 _krb5_n_fold (
281 const void */*str*/,
282 size_t /*len*/,
283 void */*key*/,
284 size_t /*size*/);
286 krb5_error_code KRB5_LIB_FUNCTION
287 _krb5_oid_to_enctype (
288 krb5_context /*context*/,
289 const heim_oid */*oid*/,
290 krb5_enctype */*etype*/);
292 krb5_error_code
293 _krb5_pac_sign (
294 krb5_context /*context*/,
295 krb5_pac /*p*/,
296 time_t /*authtime*/,
297 krb5_principal /*principal*/,
298 const krb5_keyblock */*server_key*/,
299 const krb5_keyblock */*priv_key*/,
300 krb5_data */*data*/);
302 krb5_error_code
303 _krb5_parse_moduli (
304 krb5_context /*context*/,
305 const char */*file*/,
306 struct krb5_dh_moduli ***/*moduli*/);
308 krb5_error_code
309 _krb5_parse_moduli_line (
310 krb5_context /*context*/,
311 const char */*file*/,
312 int /*lineno*/,
313 char */*p*/,
314 struct krb5_dh_moduli **/*m*/);
316 void KRB5_LIB_FUNCTION
317 _krb5_pk_allow_proxy_certificate (
318 struct krb5_pk_identity */*id*/,
319 int /*boolean*/);
321 void KRB5_LIB_FUNCTION
322 _krb5_pk_cert_free (struct krb5_pk_cert */*cert*/);
324 krb5_error_code KRB5_LIB_FUNCTION
325 _krb5_pk_load_id (
326 krb5_context /*context*/,
327 struct krb5_pk_identity **/*ret_id*/,
328 const char */*user_id*/,
329 const char */*anchor_id*/,
330 char * const */*chain_list*/,
331 char * const */*revoke_list*/,
332 krb5_prompter_fct /*prompter*/,
333 void */*prompter_data*/,
334 char */*password*/);
336 krb5_error_code KRB5_LIB_FUNCTION
337 _krb5_pk_mk_ContentInfo (
338 krb5_context /*context*/,
339 const krb5_data */*buf*/,
340 const heim_oid */*oid*/,
341 struct ContentInfo */*content_info*/);
343 krb5_error_code KRB5_LIB_FUNCTION
344 _krb5_pk_mk_padata (
345 krb5_context /*context*/,
346 void */*c*/,
347 const KDC_REQ_BODY */*req_body*/,
348 unsigned /*nonce*/,
349 METHOD_DATA */*md*/);
351 krb5_error_code
352 _krb5_pk_octetstring2key (
353 krb5_context /*context*/,
354 krb5_enctype /*type*/,
355 const void */*dhdata*/,
356 size_t /*dhsize*/,
357 const heim_octet_string */*c_n*/,
358 const heim_octet_string */*k_n*/,
359 krb5_keyblock */*key*/);
361 krb5_error_code KRB5_LIB_FUNCTION
362 _krb5_pk_rd_pa_reply (
363 krb5_context /*context*/,
364 const char */*realm*/,
365 void */*c*/,
366 krb5_enctype /*etype*/,
367 const krb5_krbhst_info */*hi*/,
368 unsigned /*nonce*/,
369 const krb5_data */*req_buffer*/,
370 PA_DATA */*pa*/,
371 krb5_keyblock **/*key*/);
373 krb5_error_code KRB5_LIB_FUNCTION
374 _krb5_pk_verify_sign (
375 krb5_context /*context*/,
376 const void */*data*/,
377 size_t /*length*/,
378 struct krb5_pk_identity */*id*/,
379 heim_oid */*contentType*/,
380 krb5_data */*content*/,
381 struct krb5_pk_cert **/*signer*/);
383 krb5_error_code
384 _krb5_plugin_find (
385 krb5_context /*context*/,
386 enum krb5_plugin_type /*type*/,
387 const char */*name*/,
388 struct krb5_plugin **/*list*/);
390 void
391 _krb5_plugin_free (struct krb5_plugin */*list*/);
393 struct krb5_plugin *
394 _krb5_plugin_get_next (struct krb5_plugin */*p*/);
396 void *
397 _krb5_plugin_get_symbol (struct krb5_plugin */*p*/);
399 krb5_error_code KRB5_LIB_FUNCTION
400 _krb5_principal2principalname (
401 PrincipalName */*p*/,
402 const krb5_principal /*from*/);
404 krb5_error_code KRB5_LIB_FUNCTION
405 _krb5_principalname2krb5_principal (
406 krb5_context /*context*/,
407 krb5_principal */*principal*/,
408 const PrincipalName /*from*/,
409 const Realm /*realm*/);
411 krb5_ssize_t KRB5_LIB_FUNCTION
412 _krb5_put_int (
413 void */*buffer*/,
414 unsigned long /*value*/,
415 size_t /*size*/);
417 krb5_error_code KRB5_LIB_FUNCTION
418 _krb5_rd_req_out_ctx_alloc (
419 krb5_context /*context*/,
420 krb5_rd_req_out_ctx */*ctx*/);
422 krb5_error_code KRB5_LIB_FUNCTION
423 _krb5_s4u2self_to_checksumdata (
424 krb5_context /*context*/,
425 const PA_S4U2Self */*self*/,
426 krb5_data */*data*/);
429 _krb5_send_and_recv_tcp (
430 int /*fd*/,
431 time_t /*tmout*/,
432 const krb5_data */*req*/,
433 krb5_data */*rep*/);
436 _krb5_xlock (
437 krb5_context /*context*/,
438 int /*fd*/,
439 krb5_boolean /*exclusive*/,
440 const char */*filename*/);
443 _krb5_xunlock (
444 krb5_context /*context*/,
445 int /*fd*/);
447 #endif /* __krb5_private_h__ */