Remove building with NOCRYPTO option
[minix.git] / crypto / external / bsd / heimdal / include / krb5-private.h
blob180b504b004f1ad537f6fce5a33c91a2ee60ac39
1 /* This is a generated file */
2 #ifndef __krb5_private_h__
3 #define __krb5_private_h__
5 #include <stdarg.h>
7 #if !defined(__GNUC__) && !defined(__attribute__)
8 #define __attribute__(x)
9 #endif
11 #ifndef KRB5_DEPRECATED_FUNCTION
12 #ifndef __has_extension
13 #define __has_extension(x) 0
14 #define KRB5_DEPRECATED_FUNCTIONhas_extension 1
15 #endif
16 #if __has_extension(attribute_deprecated_with_message)
17 #define KRB5_DEPRECATED_FUNCTION(x) __attribute__((__deprecated__(x)))
18 #elif defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1 )))
19 #define KRB5_DEPRECATED_FUNCTION(X) __attribute__((__deprecated__))
20 #else
21 #define KRB5_DEPRECATED_FUNCTION(X)
22 #endif
23 #ifdef KRB5_DEPRECATED_FUNCTIONhas_extension
24 #undef __has_extension
25 #undef KRB5_DEPRECATED_FUNCTIONhas_extension
26 #endif
27 #endif /* KRB5_DEPRECATED_FUNCTION */
30 void
31 _heim_krb5_ipc_client_clear_target (void);
33 void
34 _heim_krb5_ipc_client_set_target_uid (uid_t /*uid*/);
36 void
37 _krb5_DES3_random_to_key (
38 krb5_context /*context*/,
39 krb5_keyblock */*key*/,
40 const void */*data*/,
41 size_t /*size*/);
43 krb5_error_code
44 _krb5_HMAC_MD5_checksum (
45 krb5_context /*context*/,
46 struct _krb5_key_data */*key*/,
47 const void */*data*/,
48 size_t /*len*/,
49 unsigned /*usage*/,
50 Checksum */*result*/);
52 krb5_error_code
53 _krb5_SP_HMAC_SHA1_checksum (
54 krb5_context /*context*/,
55 struct _krb5_key_data */*key*/,
56 const void */*data*/,
57 size_t /*len*/,
58 unsigned /*usage*/,
59 Checksum */*result*/);
61 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
62 _krb5_build_authenticator (
63 krb5_context /*context*/,
64 krb5_auth_context /*auth_context*/,
65 krb5_enctype /*enctype*/,
66 krb5_creds */*cred*/,
67 Checksum */*cksum*/,
68 krb5_data */*result*/,
69 krb5_key_usage /*usage*/);
71 krb5_error_code
72 _krb5_cc_allocate (
73 krb5_context /*context*/,
74 const krb5_cc_ops */*ops*/,
75 krb5_ccache */*id*/);
77 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
78 _krb5_config_copy (
79 krb5_context /*context*/,
80 krb5_config_section */*c*/,
81 krb5_config_section **/*head*/);
83 KRB5_LIB_FUNCTION const void * KRB5_LIB_CALL
84 _krb5_config_get (
85 krb5_context /*context*/,
86 const krb5_config_section */*c*/,
87 int /*type*/,
88 ...);
90 krb5_config_section *
91 _krb5_config_get_entry (
92 krb5_config_section **/*parent*/,
93 const char */*name*/,
94 int /*type*/);
96 KRB5_LIB_FUNCTION const void * KRB5_LIB_CALL
97 _krb5_config_get_next (
98 krb5_context /*context*/,
99 const krb5_config_section */*c*/,
100 const krb5_config_binding **/*pointer*/,
101 int /*type*/,
102 ...);
104 const void *
105 _krb5_config_vget (
106 krb5_context /*context*/,
107 const krb5_config_section */*c*/,
108 int /*type*/,
109 va_list /*args*/);
111 KRB5_LIB_FUNCTION const void * KRB5_LIB_CALL
112 _krb5_config_vget_next (
113 krb5_context /*context*/,
114 const krb5_config_section */*c*/,
115 const krb5_config_binding **/*pointer*/,
116 int /*type*/,
117 va_list /*args*/);
119 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
120 _krb5_copy_send_to_kdc_func (
121 krb5_context /*context*/,
122 krb5_context /*to*/);
124 void
125 _krb5_crc_init_table (void);
127 uint32_t
128 _krb5_crc_update (
129 const char */*p*/,
130 size_t /*len*/,
131 uint32_t /*res*/);
133 void KRB5_LIB_FUNCTION
134 _krb5_debug (
135 krb5_context /*context*/,
136 int /*level*/,
137 const char */*fmt*/,
138 ...)
139 __attribute__((format (printf, 3, 4)));
141 void
142 _krb5_debug_backtrace (krb5_context /*context*/);
144 krb5_error_code
145 _krb5_derive_key (
146 krb5_context /*context*/,
147 struct _krb5_encryption_type */*et*/,
148 struct _krb5_key_data */*key*/,
149 const void */*constant*/,
150 size_t /*len*/);
152 krb5_error_code
153 _krb5_des_checksum (
154 krb5_context /*context*/,
155 const EVP_MD */*evp_md*/,
156 struct _krb5_key_data */*key*/,
157 const void */*data*/,
158 size_t /*len*/,
159 Checksum */*cksum*/);
161 krb5_error_code
162 _krb5_des_verify (
163 krb5_context /*context*/,
164 const EVP_MD */*evp_md*/,
165 struct _krb5_key_data */*key*/,
166 const void */*data*/,
167 size_t /*len*/,
168 Checksum */*C*/);
170 krb5_error_code
171 _krb5_dh_group_ok (
172 krb5_context /*context*/,
173 unsigned long /*bits*/,
174 heim_integer */*p*/,
175 heim_integer */*g*/,
176 heim_integer */*q*/,
177 struct krb5_dh_moduli **/*moduli*/,
178 char **/*name*/);
180 krb5_error_code
181 _krb5_einval (
182 krb5_context /*context*/,
183 const char */*func*/,
184 unsigned long /*argn*/);
186 krb5_error_code
187 _krb5_erase_file (
188 krb5_context /*context*/,
189 const char */*filename*/);
191 void
192 _krb5_evp_cleanup (
193 krb5_context /*context*/,
194 struct _krb5_key_data */*kd*/);
196 krb5_error_code
197 _krb5_evp_encrypt (
198 krb5_context /*context*/,
199 struct _krb5_key_data */*key*/,
200 void */*data*/,
201 size_t /*len*/,
202 krb5_boolean /*encryptp*/,
203 int /*usage*/,
204 void */*ivec*/);
206 krb5_error_code
207 _krb5_evp_encrypt_cts (
208 krb5_context /*context*/,
209 struct _krb5_key_data */*key*/,
210 void */*data*/,
211 size_t /*len*/,
212 krb5_boolean /*encryptp*/,
213 int /*usage*/,
214 void */*ivec*/);
216 void
217 _krb5_evp_schedule (
218 krb5_context /*context*/,
219 struct _krb5_key_type */*kt*/,
220 struct _krb5_key_data */*kd*/);
222 krb5_error_code
223 _krb5_expand_default_cc_name (
224 krb5_context /*context*/,
225 const char */*str*/,
226 char **/*res*/);
228 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
229 _krb5_expand_path_tokens (
230 krb5_context /*context*/,
231 const char */*path_in*/,
232 char **/*ppath_out*/);
235 _krb5_extract_ticket (
236 krb5_context /*context*/,
237 krb5_kdc_rep */*rep*/,
238 krb5_creds */*creds*/,
239 krb5_keyblock */*key*/,
240 krb5_const_pointer /*keyseed*/,
241 krb5_key_usage /*key_usage*/,
242 krb5_addresses */*addrs*/,
243 unsigned /*nonce*/,
244 unsigned /*flags*/,
245 krb5_decrypt_proc /*decrypt_proc*/,
246 krb5_const_pointer /*decryptarg*/);
248 struct _krb5_checksum_type *
249 _krb5_find_checksum (krb5_cksumtype /*type*/);
251 struct _krb5_encryption_type *
252 _krb5_find_enctype (krb5_enctype /*type*/);
254 void
255 _krb5_free_key_data (
256 krb5_context /*context*/,
257 struct _krb5_key_data */*key*/,
258 struct _krb5_encryption_type */*et*/);
260 void
261 _krb5_free_krbhst_info (krb5_krbhst_info */*hi*/);
263 void
264 _krb5_free_moduli (struct krb5_dh_moduli **/*moduli*/);
266 krb5_error_code
267 _krb5_get_cred_kdc_any (
268 krb5_context /*context*/,
269 krb5_kdc_flags /*flags*/,
270 krb5_ccache /*ccache*/,
271 krb5_creds */*in_creds*/,
272 krb5_principal /*impersonate_principal*/,
273 Ticket */*second_ticket*/,
274 krb5_creds **/*out_creds*/,
275 krb5_creds ***/*ret_tgts*/);
277 char *
278 _krb5_get_default_cc_name_from_registry (krb5_context /*context*/);
280 char *
281 _krb5_get_default_config_config_files_from_registry (void);
283 krb5_error_code
284 _krb5_get_default_principal_local (
285 krb5_context /*context*/,
286 krb5_principal */*princ*/);
288 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
289 _krb5_get_host_realm_int (
290 krb5_context /*context*/,
291 const char */*host*/,
292 krb5_boolean /*use_dns*/,
293 krb5_realm **/*realms*/);
295 KRB5_LIB_FUNCTION void KRB5_LIB_CALL
296 _krb5_get_init_creds_opt_free_pkinit (krb5_get_init_creds_opt */*opt*/);
298 KRB5_LIB_FUNCTION krb5_ssize_t KRB5_LIB_CALL
299 _krb5_get_int (
300 void */*buffer*/,
301 unsigned long */*value*/,
302 size_t /*size*/);
304 krb5_error_code
305 _krb5_get_krbtgt (
306 krb5_context /*context*/,
307 krb5_ccache /*id*/,
308 krb5_realm /*realm*/,
309 krb5_creds **/*cred*/);
311 krb5_boolean KRB5_LIB_FUNCTION
312 _krb5_have_debug (
313 krb5_context /*context*/,
314 int /*level*/);
316 krb5_boolean
317 _krb5_homedir_access (krb5_context /*context*/);
319 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
320 _krb5_init_etype (
321 krb5_context /*context*/,
322 krb5_pdu /*pdu_type*/,
323 unsigned */*len*/,
324 krb5_enctype **/*val*/,
325 const krb5_enctype */*etypes*/);
327 krb5_error_code
328 _krb5_internal_hmac (
329 krb5_context /*context*/,
330 struct _krb5_checksum_type */*cm*/,
331 const void */*data*/,
332 size_t /*len*/,
333 unsigned /*usage*/,
334 struct _krb5_key_data */*keyblock*/,
335 Checksum */*result*/);
337 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
338 _krb5_kcm_get_initial_ticket (
339 krb5_context /*context*/,
340 krb5_ccache /*id*/,
341 krb5_principal /*server*/,
342 krb5_keyblock */*key*/);
344 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
345 _krb5_kcm_get_ticket (
346 krb5_context /*context*/,
347 krb5_ccache /*id*/,
348 krb5_kdc_flags /*flags*/,
349 krb5_enctype /*enctype*/,
350 krb5_principal /*server*/);
352 KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL
353 _krb5_kcm_is_running (krb5_context /*context*/);
355 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
356 _krb5_kcm_noop (
357 krb5_context /*context*/,
358 krb5_ccache /*id*/);
360 krb5_error_code KRB5_CALLCONV
361 _krb5_kdc_retry (
362 krb5_context /*context*/,
363 krb5_sendto_ctx /*ctx*/,
364 void */*data*/,
365 const krb5_data */*reply*/,
366 int */*action*/);
368 krb5_error_code
369 _krb5_krbhost_info_move (
370 krb5_context /*context*/,
371 krb5_krbhst_info */*from*/,
372 krb5_krbhst_info **/*to*/);
374 const char *
375 _krb5_krbhst_get_realm (krb5_krbhst_handle /*handle*/);
377 krb5_error_code
378 _krb5_kt_principal_not_found (
379 krb5_context /*context*/,
380 krb5_error_code /*ret*/,
381 krb5_keytab /*id*/,
382 krb5_const_principal /*principal*/,
383 krb5_enctype /*enctype*/,
384 int /*kvno*/);
386 krb5_error_code
387 _krb5_load_ccache_plugins (krb5_context /*context*/);
389 void
390 _krb5_load_plugins (
391 krb5_context /*context*/,
392 const char */*name*/,
393 const char **/*paths*/);
395 krb5_error_code
396 _krb5_mk_req_internal (
397 krb5_context /*context*/,
398 krb5_auth_context */*auth_context*/,
399 const krb5_flags /*ap_req_options*/,
400 krb5_data */*in_data*/,
401 krb5_creds */*in_creds*/,
402 krb5_data */*outbuf*/,
403 krb5_key_usage /*checksum_usage*/,
404 krb5_key_usage /*encrypt_usage*/);
406 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
407 _krb5_n_fold (
408 const void */*str*/,
409 size_t /*len*/,
410 void */*key*/,
411 size_t /*size*/);
413 krb5_error_code
414 _krb5_pac_sign (
415 krb5_context /*context*/,
416 krb5_pac /*p*/,
417 time_t /*authtime*/,
418 krb5_principal /*principal*/,
419 const krb5_keyblock */*server_key*/,
420 const krb5_keyblock */*priv_key*/,
421 krb5_data */*data*/);
423 krb5_error_code
424 _krb5_parse_moduli (
425 krb5_context /*context*/,
426 const char */*file*/,
427 struct krb5_dh_moduli ***/*moduli*/);
429 krb5_error_code
430 _krb5_parse_moduli_line (
431 krb5_context /*context*/,
432 const char */*file*/,
433 int /*lineno*/,
434 char */*p*/,
435 struct krb5_dh_moduli **/*m*/);
437 KRB5_LIB_FUNCTION void KRB5_LIB_CALL
438 _krb5_pk_cert_free (struct krb5_pk_cert */*cert*/);
440 krb5_error_code
441 _krb5_pk_kdf (
442 krb5_context /*context*/,
443 const struct AlgorithmIdentifier */*ai*/,
444 const void */*dhdata*/,
445 size_t /*dhsize*/,
446 krb5_const_principal /*client*/,
447 krb5_const_principal /*server*/,
448 krb5_enctype /*enctype*/,
449 const krb5_data */*as_req*/,
450 const krb5_data */*pk_as_rep*/,
451 const Ticket */*ticket*/,
452 krb5_keyblock */*key*/);
454 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
455 _krb5_pk_load_id (
456 krb5_context /*context*/,
457 struct krb5_pk_identity **/*ret_id*/,
458 const char */*user_id*/,
459 const char */*anchor_id*/,
460 char * const */*chain_list*/,
461 char * const */*revoke_list*/,
462 krb5_prompter_fct /*prompter*/,
463 void */*prompter_data*/,
464 char */*password*/);
466 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
467 _krb5_pk_mk_ContentInfo (
468 krb5_context /*context*/,
469 const krb5_data */*buf*/,
470 const heim_oid */*oid*/,
471 struct ContentInfo */*content_info*/);
473 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
474 _krb5_pk_mk_padata (
475 krb5_context /*context*/,
476 void */*c*/,
477 int /*ic_flags*/,
478 int /*win2k*/,
479 const KDC_REQ_BODY */*req_body*/,
480 unsigned /*nonce*/,
481 METHOD_DATA */*md*/);
483 krb5_error_code
484 _krb5_pk_octetstring2key (
485 krb5_context /*context*/,
486 krb5_enctype /*type*/,
487 const void */*dhdata*/,
488 size_t /*dhsize*/,
489 const heim_octet_string */*c_n*/,
490 const heim_octet_string */*k_n*/,
491 krb5_keyblock */*key*/);
493 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
494 _krb5_pk_rd_pa_reply (
495 krb5_context /*context*/,
496 const char */*realm*/,
497 void */*c*/,
498 krb5_enctype /*etype*/,
499 const krb5_krbhst_info */*hi*/,
500 unsigned /*nonce*/,
501 const krb5_data */*req_buffer*/,
502 PA_DATA */*pa*/,
503 krb5_keyblock **/*key*/);
505 krb5_error_code
506 _krb5_plugin_find (
507 krb5_context /*context*/,
508 enum krb5_plugin_type /*type*/,
509 const char */*name*/,
510 struct krb5_plugin **/*list*/);
512 void
513 _krb5_plugin_free (struct krb5_plugin */*list*/);
515 struct krb5_plugin *
516 _krb5_plugin_get_next (struct krb5_plugin */*p*/);
518 void *
519 _krb5_plugin_get_symbol (struct krb5_plugin */*p*/);
521 krb5_error_code
522 _krb5_plugin_run_f (
523 krb5_context /*context*/,
524 const char */*module*/,
525 const char */*name*/,
526 int /*min_version*/,
527 int /*flags*/,
528 void */*userctx*/,
529 krb5_error_code (*/*func*/)(krb5_context, const void *, void *, void *));
531 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
532 _krb5_principal2principalname (
533 PrincipalName */*p*/,
534 const krb5_principal /*from*/);
536 KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL
537 _krb5_principal_compare_PrincipalName (
538 krb5_context /*context*/,
539 krb5_const_principal /*princ1*/,
540 PrincipalName */*princ2*/);
542 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
543 _krb5_principalname2krb5_principal (
544 krb5_context /*context*/,
545 krb5_principal */*principal*/,
546 const PrincipalName /*from*/,
547 const Realm /*realm*/);
549 KRB5_LIB_FUNCTION krb5_ssize_t KRB5_LIB_CALL
550 _krb5_put_int (
551 void */*buffer*/,
552 unsigned long /*value*/,
553 size_t /*size*/);
555 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
556 _krb5_s4u2self_to_checksumdata (
557 krb5_context /*context*/,
558 const PA_S4U2Self */*self*/,
559 krb5_data */*data*/);
562 _krb5_send_and_recv_tcp (
563 krb5_socket_t /*fd*/,
564 time_t /*tmout*/,
565 const krb5_data */*req*/,
566 krb5_data */*rep*/);
569 _krb5_set_default_cc_name_to_registry (
570 krb5_context /*context*/,
571 krb5_ccache /*id*/);
573 void
574 _krb5_unload_plugins (
575 krb5_context /*context*/,
576 const char */*name*/);
578 krb5_error_code
579 _krb5_usage2arcfour (
580 krb5_context /*context*/,
581 unsigned */*usage*/);
584 _krb5_xlock (
585 krb5_context /*context*/,
586 int /*fd*/,
587 krb5_boolean /*exclusive*/,
588 const char */*filename*/);
590 void
591 _krb5_xor (
592 DES_cblock */*key*/,
593 const unsigned char */*b*/);
596 _krb5_xunlock (
597 krb5_context /*context*/,
598 int /*fd*/);
600 #undef KRB5_DEPRECATED_FUNCTION
601 #define KRB5_DEPRECATED_FUNCTION(X)
603 #endif /* __krb5_private_h__ */