1 /* This is a generated file */
2 #ifndef __krb5_private_h__
3 #define __krb5_private_h__
7 #if !defined(__GNUC__) && !defined(__attribute__)
8 #define __attribute__(x)
11 #ifndef KRB5_DEPRECATED_FUNCTION
12 #ifndef __has_extension
13 #define __has_extension(x) 0
14 #define KRB5_DEPRECATED_FUNCTIONhas_extension 1
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__))
21 #define KRB5_DEPRECATED_FUNCTION(X)
23 #ifdef KRB5_DEPRECATED_FUNCTIONhas_extension
24 #undef __has_extension
25 #undef KRB5_DEPRECATED_FUNCTIONhas_extension
27 #endif /* KRB5_DEPRECATED_FUNCTION */
31 _heim_krb5_ipc_client_clear_target (void);
34 _heim_krb5_ipc_client_set_target_uid (uid_t
/*uid*/);
37 _krb5_DES3_random_to_key (
38 krb5_context
/*context*/,
39 krb5_keyblock */
*key*/
,
44 _krb5_HMAC_MD5_checksum (
45 krb5_context
/*context*/,
46 struct _krb5_key_data */
*key*/
,
50 Checksum */
*result*/
);
53 _krb5_SP_HMAC_SHA1_checksum (
54 krb5_context
/*context*/,
55 struct _krb5_key_data */
*key*/
,
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*/,
68 krb5_data */
*result*/
,
69 krb5_key_usage
/*usage*/);
73 krb5_context
/*context*/,
74 const krb5_cc_ops */
*ops*/
,
77 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
79 krb5_context
/*context*/,
80 krb5_config_section */
*c*/
,
81 krb5_config_section
**/
*head*/
);
83 KRB5_LIB_FUNCTION
const void * KRB5_LIB_CALL
85 krb5_context
/*context*/,
86 const krb5_config_section */
*c*/
,
91 _krb5_config_get_entry (
92 krb5_config_section
**/
*parent*/
,
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*/
,
106 krb5_context
/*context*/,
107 const krb5_config_section */
*c*/
,
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*/
,
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*/);
125 _krb5_crc_init_table (void);
133 void KRB5_LIB_FUNCTION
135 krb5_context
/*context*/,
139 __attribute__((format (printf
, 3, 4)));
142 _krb5_debug_backtrace (krb5_context
/*context*/);
146 krb5_context
/*context*/,
147 struct _krb5_encryption_type */
*et*/
,
148 struct _krb5_key_data */
*key*/
,
149 const void */
*constant*/
,
154 krb5_context
/*context*/,
155 const EVP_MD */
*evp_md*/
,
156 struct _krb5_key_data */
*key*/
,
157 const void */
*data*/
,
159 Checksum */
*cksum*/
);
163 krb5_context
/*context*/,
164 const EVP_MD */
*evp_md*/
,
165 struct _krb5_key_data */
*key*/
,
166 const void */
*data*/
,
172 krb5_context
/*context*/,
173 unsigned long /*bits*/,
177 struct krb5_dh_moduli
**/
*moduli*/
,
182 krb5_context
/*context*/,
183 const char */
*func*/
,
184 unsigned long /*argn*/);
188 krb5_context
/*context*/,
189 const char */
*filename*/
);
193 krb5_context
/*context*/,
194 struct _krb5_key_data */
*kd*/
);
198 krb5_context
/*context*/,
199 struct _krb5_key_data */
*key*/
,
202 krb5_boolean
/*encryptp*/,
207 _krb5_evp_encrypt_cts (
208 krb5_context
/*context*/,
209 struct _krb5_key_data */
*key*/
,
212 krb5_boolean
/*encryptp*/,
218 krb5_context
/*context*/,
219 struct _krb5_key_type */
*kt*/
,
220 struct _krb5_key_data */
*kd*/
);
223 _krb5_expand_default_cc_name (
224 krb5_context
/*context*/,
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*/
,
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*/);
255 _krb5_free_key_data (
256 krb5_context
/*context*/,
257 struct _krb5_key_data */
*key*/
,
258 struct _krb5_encryption_type */
*et*/
);
261 _krb5_free_krbhst_info (krb5_krbhst_info */
*hi*/
);
264 _krb5_free_moduli (struct krb5_dh_moduli
**/
*moduli*/
);
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*/
);
278 _krb5_get_default_cc_name_from_registry (krb5_context
/*context*/);
281 _krb5_get_default_config_config_files_from_registry (void);
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
301 unsigned long */
*value*/
,
306 krb5_context
/*context*/,
308 krb5_realm
/*realm*/,
309 krb5_creds
**/
*cred*/
);
311 krb5_boolean KRB5_LIB_FUNCTION
313 krb5_context
/*context*/,
317 _krb5_homedir_access (krb5_context
/*context*/);
319 KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
321 krb5_context
/*context*/,
322 krb5_pdu
/*pdu_type*/,
324 krb5_enctype
**/
*val*/
,
325 const krb5_enctype */
*etypes*/
);
328 _krb5_internal_hmac (
329 krb5_context
/*context*/,
330 struct _krb5_checksum_type */
*cm*/
,
331 const void */
*data*/
,
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*/,
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*/,
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
357 krb5_context
/*context*/,
360 krb5_error_code KRB5_CALLCONV
362 krb5_context
/*context*/,
363 krb5_sendto_ctx
/*ctx*/,
365 const krb5_data */
*reply*/
,
369 _krb5_krbhost_info_move (
370 krb5_context
/*context*/,
371 krb5_krbhst_info */
*from*/
,
372 krb5_krbhst_info
**/
*to*/
);
375 _krb5_krbhst_get_realm (krb5_krbhst_handle
/*handle*/);
378 _krb5_kt_principal_not_found (
379 krb5_context
/*context*/,
380 krb5_error_code
/*ret*/,
382 krb5_const_principal
/*principal*/,
383 krb5_enctype
/*enctype*/,
387 _krb5_load_ccache_plugins (krb5_context
/*context*/);
391 krb5_context
/*context*/,
392 const char */
*name*/
,
393 const char **/
*paths*/
);
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
415 krb5_context
/*context*/,
418 krb5_principal
/*principal*/,
419 const krb5_keyblock */
*server_key*/
,
420 const krb5_keyblock */
*priv_key*/
,
421 krb5_data */
*data*/
);
425 krb5_context
/*context*/,
426 const char */
*file*/
,
427 struct krb5_dh_moduli
***/
*moduli*/
);
430 _krb5_parse_moduli_line (
431 krb5_context
/*context*/,
432 const char */
*file*/
,
435 struct krb5_dh_moduli
**/
*m*/
);
437 KRB5_LIB_FUNCTION
void KRB5_LIB_CALL
438 _krb5_pk_cert_free (struct krb5_pk_cert */
*cert*/
);
442 krb5_context
/*context*/,
443 const struct AlgorithmIdentifier */
*ai*/
,
444 const void */
*dhdata*/
,
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
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*/
,
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
475 krb5_context
/*context*/,
479 const KDC_REQ_BODY */
*req_body*/
,
481 METHOD_DATA */
*md*/
);
484 _krb5_pk_octetstring2key (
485 krb5_context
/*context*/,
486 krb5_enctype
/*type*/,
487 const void */
*dhdata*/
,
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*/
,
498 krb5_enctype
/*etype*/,
499 const krb5_krbhst_info */
*hi*/
,
501 const krb5_data */
*req_buffer*/
,
503 krb5_keyblock
**/
*key*/
);
507 krb5_context
/*context*/,
508 enum krb5_plugin_type
/*type*/,
509 const char */
*name*/
,
510 struct krb5_plugin
**/
*list*/
);
513 _krb5_plugin_free (struct krb5_plugin */
*list*/
);
516 _krb5_plugin_get_next (struct krb5_plugin */
*p*/
);
519 _krb5_plugin_get_symbol (struct krb5_plugin */
*p*/
);
523 krb5_context
/*context*/,
524 const char */
*module*/
,
525 const char */
*name*/
,
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
552 unsigned long /*value*/,
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*/,
565 const krb5_data */
*req*/
,
569 _krb5_set_default_cc_name_to_registry (
570 krb5_context
/*context*/,
574 _krb5_unload_plugins (
575 krb5_context
/*context*/,
576 const char */
*name*/
);
579 _krb5_usage2arcfour (
580 krb5_context
/*context*/,
581 unsigned */
*usage*/
);
585 krb5_context
/*context*/,
587 krb5_boolean
/*exclusive*/,
588 const char */
*filename*/
);
593 const unsigned char */
*b*/
);
597 krb5_context
/*context*/,
600 #undef KRB5_DEPRECATED_FUNCTION
601 #define KRB5_DEPRECATED_FUNCTION(X)
603 #endif /* __krb5_private_h__ */