Home | History | Annotate | Line # | Download | only in krb5
      1  1.1  christos /*	$NetBSD: krb5-private.h,v 1.2 2019/12/15 22:50:50 christos Exp $	*/
      2  1.1  christos 
      3  1.1  christos /* This is a generated file */
      4  1.1  christos #ifndef __krb5_private_h__
      5  1.1  christos #define __krb5_private_h__
      6  1.1  christos 
      7  1.1  christos #include <stdarg.h>
      8  1.1  christos 
      9  1.1  christos #if !defined(__GNUC__) && !defined(__attribute__)
     10  1.1  christos #define __attribute__(x)
     11  1.1  christos #endif
     12  1.1  christos 
     13  1.1  christos #ifndef KRB5_DEPRECATED_FUNCTION
     14  1.1  christos #ifndef __has_extension
     15  1.1  christos #define __has_extension(x) 0
     16  1.1  christos #define KRB5_DEPRECATED_FUNCTIONhas_extension 1
     17  1.1  christos #endif
     18  1.1  christos #if __has_extension(attribute_deprecated_with_message)
     19  1.1  christos #define KRB5_DEPRECATED_FUNCTION(x) __attribute__((__deprecated__(x)))
     20  1.1  christos #elif defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1 )))
     21  1.1  christos #define KRB5_DEPRECATED_FUNCTION(X) __attribute__((__deprecated__))
     22  1.1  christos #else
     23  1.1  christos #define KRB5_DEPRECATED_FUNCTION(X)
     24  1.1  christos #endif
     25  1.1  christos #ifdef KRB5_DEPRECATED_FUNCTIONhas_extension
     26  1.1  christos #undef __has_extension
     27  1.1  christos #undef KRB5_DEPRECATED_FUNCTIONhas_extension
     28  1.1  christos #endif
     29  1.1  christos #endif /* KRB5_DEPRECATED_FUNCTION */
     30  1.1  christos 
     31  1.1  christos 
     32  1.1  christos KRB5_LIB_FUNCTION void KRB5_LIB_CALL
     33  1.1  christos _heim_krb5_ipc_client_clear_target (void);
     34  1.1  christos 
     35  1.1  christos KRB5_LIB_FUNCTION void KRB5_LIB_CALL
     36  1.1  christos _heim_krb5_ipc_client_set_target_uid (uid_t /*uid*/);
     37  1.1  christos 
     38  1.1  christos void
     39  1.1  christos _krb5_DES3_random_to_key (
     40  1.1  christos 	krb5_context /*context*/,
     41  1.1  christos 	krb5_keyblock */*key*/,
     42  1.1  christos 	const void */*data*/,
     43  1.1  christos 	size_t /*size*/);
     44  1.1  christos 
     45  1.1  christos krb5_error_code
     46  1.1  christos _krb5_HMAC_MD5_checksum (
     47  1.1  christos 	krb5_context /*context*/,
     48  1.1  christos 	struct _krb5_key_data */*key*/,
     49  1.1  christos 	const void */*data*/,
     50  1.1  christos 	size_t /*len*/,
     51  1.1  christos 	unsigned /*usage*/,
     52  1.1  christos 	Checksum */*result*/);
     53  1.1  christos 
     54  1.1  christos krb5_error_code
     55  1.1  christos _krb5_SP800_108_HMAC_KDF (
     56  1.1  christos 	krb5_context /*context*/,
     57  1.1  christos 	const krb5_data */*kdf_K1*/,
     58  1.1  christos 	const krb5_data */*kdf_label*/,
     59  1.1  christos 	const krb5_data */*kdf_context*/,
     60  1.1  christos 	const EVP_MD */*md*/,
     61  1.1  christos 	krb5_data */*kdf_K0*/);
     62  1.1  christos 
     63  1.1  christos krb5_error_code
     64  1.1  christos _krb5_SP_HMAC_SHA1_checksum (
     65  1.1  christos 	krb5_context /*context*/,
     66  1.1  christos 	struct _krb5_key_data */*key*/,
     67  1.1  christos 	const void */*data*/,
     68  1.1  christos 	size_t /*len*/,
     69  1.1  christos 	unsigned /*usage*/,
     70  1.1  christos 	Checksum */*result*/);
     71  1.1  christos 
     72  1.1  christos krb5_error_code
     73  1.1  christos _krb5_aes_sha2_md_for_enctype (
     74  1.1  christos 	krb5_context /*context*/,
     75  1.1  christos 	krb5_enctype /*enctype*/,
     76  1.1  christos 	const EVP_MD **/*md*/);
     77  1.1  christos 
     78  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
     79  1.1  christos _krb5_build_authenticator (
     80  1.1  christos 	krb5_context /*context*/,
     81  1.1  christos 	krb5_auth_context /*auth_context*/,
     82  1.1  christos 	krb5_enctype /*enctype*/,
     83  1.1  christos 	krb5_creds */*cred*/,
     84  1.1  christos 	Checksum */*cksum*/,
     85  1.1  christos 	krb5_data */*result*/,
     86  1.1  christos 	krb5_key_usage /*usage*/);
     87  1.1  christos 
     88  1.1  christos krb5_error_code
     89  1.1  christos _krb5_build_authpack_subjectPK_EC (
     90  1.1  christos 	krb5_context /*context*/,
     91  1.1  christos 	krb5_pk_init_ctx /*ctx*/,
     92  1.1  christos 	AuthPack */*a*/);
     93  1.1  christos 
     94  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
     95  1.1  christos _krb5_cc_allocate (
     96  1.1  christos 	krb5_context /*context*/,
     97  1.1  christos 	const krb5_cc_ops */*ops*/,
     98  1.1  christos 	krb5_ccache */*id*/);
     99  1.1  christos 
    100  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    101  1.1  christos _krb5_config_copy (
    102  1.1  christos 	krb5_context /*context*/,
    103  1.1  christos 	krb5_config_section */*c*/,
    104  1.1  christos 	krb5_config_section **/*head*/);
    105  1.1  christos 
    106  1.1  christos KRB5_LIB_FUNCTION const void * KRB5_LIB_CALL
    107  1.1  christos _krb5_config_get (
    108  1.1  christos 	krb5_context /*context*/,
    109  1.1  christos 	const krb5_config_section */*c*/,
    110  1.1  christos 	int /*type*/,
    111  1.1  christos 	...);
    112  1.1  christos 
    113  1.1  christos KRB5_LIB_FUNCTION krb5_config_section * KRB5_LIB_CALL
    114  1.1  christos _krb5_config_get_entry (
    115  1.1  christos 	krb5_config_section **/*parent*/,
    116  1.1  christos 	const char */*name*/,
    117  1.1  christos 	int /*type*/);
    118  1.1  christos 
    119  1.1  christos KRB5_LIB_FUNCTION const void * KRB5_LIB_CALL
    120  1.1  christos _krb5_config_get_next (
    121  1.1  christos 	krb5_context /*context*/,
    122  1.1  christos 	const krb5_config_section */*c*/,
    123  1.1  christos 	const krb5_config_binding **/*pointer*/,
    124  1.1  christos 	int /*type*/,
    125  1.1  christos 	...);
    126  1.1  christos 
    127  1.1  christos KRB5_LIB_FUNCTION const void * KRB5_LIB_CALL
    128  1.1  christos _krb5_config_vget (
    129  1.1  christos 	krb5_context /*context*/,
    130  1.1  christos 	const krb5_config_section */*c*/,
    131  1.1  christos 	int /*type*/,
    132  1.1  christos 	va_list /*args*/);
    133  1.1  christos 
    134  1.1  christos KRB5_LIB_FUNCTION const void * KRB5_LIB_CALL
    135  1.1  christos _krb5_config_vget_next (
    136  1.1  christos 	krb5_context /*context*/,
    137  1.1  christos 	const krb5_config_section */*c*/,
    138  1.1  christos 	const krb5_config_binding **/*pointer*/,
    139  1.1  christos 	int /*type*/,
    140  1.1  christos 	va_list /*args*/);
    141  1.1  christos 
    142  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    143  1.1  christos _krb5_copy_send_to_kdc_func (
    144  1.1  christos 	krb5_context /*context*/,
    145  1.1  christos 	krb5_context /*to*/);
    146  1.1  christos 
    147  1.1  christos KRB5_LIB_FUNCTION void KRB5_LIB_CALL
    148  1.1  christos _krb5_crc_init_table (void);
    149  1.1  christos 
    150  1.1  christos KRB5_LIB_FUNCTION uint32_t KRB5_LIB_CALL
    151  1.1  christos _krb5_crc_update (
    152  1.1  christos 	const char */*p*/,
    153  1.1  christos 	size_t /*len*/,
    154  1.1  christos 	uint32_t /*res*/);
    155  1.1  christos 
    156  1.1  christos void KRB5_LIB_FUNCTION
    157  1.1  christos _krb5_debug (
    158  1.1  christos 	krb5_context /*context*/,
    159  1.1  christos 	int /*level*/,
    160  1.1  christos 	const char */*fmt*/,
    161  1.1  christos 	...)
    162  1.1  christos      __attribute__ ((__format__ (__printf__, 3, 4)));
    163  1.1  christos 
    164  1.1  christos KRB5_LIB_FUNCTION void KRB5_LIB_CALL
    165  1.1  christos _krb5_debug_backtrace (krb5_context /*context*/);
    166  1.1  christos 
    167  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    168  1.1  christos _krb5_derive_key (
    169  1.1  christos 	krb5_context /*context*/,
    170  1.1  christos 	struct _krb5_encryption_type */*et*/,
    171  1.1  christos 	struct _krb5_key_data */*key*/,
    172  1.1  christos 	const void */*constant*/,
    173  1.1  christos 	size_t /*len*/);
    174  1.1  christos 
    175  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    176  1.1  christos _krb5_des_checksum (
    177  1.1  christos 	krb5_context /*context*/,
    178  1.1  christos 	const EVP_MD */*evp_md*/,
    179  1.1  christos 	struct _krb5_key_data */*key*/,
    180  1.1  christos 	const void */*data*/,
    181  1.1  christos 	size_t /*len*/,
    182  1.1  christos 	Checksum */*cksum*/);
    183  1.1  christos 
    184  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    185  1.1  christos _krb5_des_verify (
    186  1.1  christos 	krb5_context /*context*/,
    187  1.1  christos 	const EVP_MD */*evp_md*/,
    188  1.1  christos 	struct _krb5_key_data */*key*/,
    189  1.1  christos 	const void */*data*/,
    190  1.1  christos 	size_t /*len*/,
    191  1.1  christos 	Checksum */*C*/);
    192  1.1  christos 
    193  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    194  1.1  christos _krb5_dh_group_ok (
    195  1.1  christos 	krb5_context /*context*/,
    196  1.1  christos 	unsigned long /*bits*/,
    197  1.1  christos 	heim_integer */*p*/,
    198  1.1  christos 	heim_integer */*g*/,
    199  1.1  christos 	heim_integer */*q*/,
    200  1.1  christos 	struct krb5_dh_moduli **/*moduli*/,
    201  1.1  christos 	char **/*name*/);
    202  1.1  christos 
    203  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    204  1.1  christos _krb5_einval (
    205  1.1  christos 	krb5_context /*context*/,
    206  1.1  christos 	const char */*func*/,
    207  1.1  christos 	unsigned long /*argn*/);
    208  1.1  christos 
    209  1.1  christos KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL
    210  1.1  christos _krb5_enctype_requires_random_salt (
    211  1.1  christos 	krb5_context /*context*/,
    212  1.1  christos 	krb5_enctype /*enctype*/);
    213  1.1  christos 
    214  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    215  1.1  christos _krb5_erase_file (
    216  1.1  christos 	krb5_context /*context*/,
    217  1.1  christos 	const char */*filename*/);
    218  1.1  christos 
    219  1.1  christos void
    220  1.1  christos _krb5_evp_cleanup (
    221  1.1  christos 	krb5_context /*context*/,
    222  1.1  christos 	struct _krb5_key_data */*kd*/);
    223  1.1  christos 
    224  1.1  christos krb5_error_code
    225  1.1  christos _krb5_evp_encrypt (
    226  1.1  christos 	krb5_context /*context*/,
    227  1.1  christos 	struct _krb5_key_data */*key*/,
    228  1.1  christos 	void */*data*/,
    229  1.1  christos 	size_t /*len*/,
    230  1.1  christos 	krb5_boolean /*encryptp*/,
    231  1.1  christos 	int /*usage*/,
    232  1.1  christos 	void */*ivec*/);
    233  1.1  christos 
    234  1.1  christos krb5_error_code
    235  1.1  christos _krb5_evp_encrypt_cts (
    236  1.1  christos 	krb5_context /*context*/,
    237  1.1  christos 	struct _krb5_key_data */*key*/,
    238  1.1  christos 	void */*data*/,
    239  1.1  christos 	size_t /*len*/,
    240  1.1  christos 	krb5_boolean /*encryptp*/,
    241  1.1  christos 	int /*usage*/,
    242  1.1  christos 	void */*ivec*/);
    243  1.1  christos 
    244  1.1  christos void
    245  1.1  christos _krb5_evp_schedule (
    246  1.1  christos 	krb5_context /*context*/,
    247  1.1  christos 	struct _krb5_key_type */*kt*/,
    248  1.1  christos 	struct _krb5_key_data */*kd*/);
    249  1.1  christos 
    250  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    251  1.1  christos _krb5_expand_default_cc_name (
    252  1.1  christos 	krb5_context /*context*/,
    253  1.1  christos 	const char */*str*/,
    254  1.1  christos 	char **/*res*/);
    255  1.1  christos 
    256  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    257  1.1  christos _krb5_expand_path_tokens (
    258  1.1  christos 	krb5_context /*context*/,
    259  1.1  christos 	const char */*path_in*/,
    260  1.1  christos 	int /*filepath*/,
    261  1.1  christos 	char **/*ppath_out*/);
    262  1.1  christos 
    263  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    264  1.1  christos _krb5_expand_path_tokensv (
    265  1.1  christos 	krb5_context /*context*/,
    266  1.1  christos 	const char */*path_in*/,
    267  1.1  christos 	int /*filepath*/,
    268  1.1  christos 	char **/*ppath_out*/,
    269  1.1  christos 	...);
    270  1.1  christos 
    271  1.1  christos KRB5_LIB_FUNCTION int KRB5_LIB_CALL
    272  1.1  christos _krb5_extract_ticket (
    273  1.1  christos 	krb5_context /*context*/,
    274  1.1  christos 	krb5_kdc_rep */*rep*/,
    275  1.1  christos 	krb5_creds */*creds*/,
    276  1.1  christos 	krb5_keyblock */*key*/,
    277  1.1  christos 	krb5_const_pointer /*keyseed*/,
    278  1.1  christos 	krb5_key_usage /*key_usage*/,
    279  1.1  christos 	krb5_addresses */*addrs*/,
    280  1.1  christos 	unsigned /*nonce*/,
    281  1.1  christos 	unsigned /*flags*/,
    282  1.1  christos 	krb5_data */*request*/,
    283  1.1  christos 	krb5_decrypt_proc /*decrypt_proc*/,
    284  1.1  christos 	krb5_const_pointer /*decryptarg*/);
    285  1.1  christos 
    286  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    287  1.1  christos _krb5_fast_armor_key (
    288  1.1  christos 	krb5_context /*context*/,
    289  1.1  christos 	krb5_keyblock */*subkey*/,
    290  1.1  christos 	krb5_keyblock */*sessionkey*/,
    291  1.1  christos 	krb5_keyblock */*armorkey*/,
    292  1.1  christos 	krb5_crypto */*armor_crypto*/);
    293  1.1  christos 
    294  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    295  1.1  christos _krb5_fast_cf2 (
    296  1.1  christos 	krb5_context /*context*/,
    297  1.1  christos 	krb5_keyblock */*key1*/,
    298  1.1  christos 	const char */*pepper1*/,
    299  1.1  christos 	krb5_keyblock */*key2*/,
    300  1.1  christos 	const char */*pepper2*/,
    301  1.1  christos 	krb5_keyblock */*armorkey*/,
    302  1.1  christos 	krb5_crypto */*armor_crypto*/);
    303  1.1  christos 
    304  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    305  1.1  christos _krb5_find_capath (
    306  1.1  christos 	krb5_context /*context*/,
    307  1.1  christos 	const char */*client_realm*/,
    308  1.1  christos 	const char */*local_realm*/,
    309  1.1  christos 	const char */*server_realm*/,
    310  1.1  christos 	krb5_boolean /*use_hierarchical*/,
    311  1.1  christos 	char ***/*rpath*/,
    312  1.1  christos 	size_t */*npath*/);
    313  1.1  christos 
    314  1.1  christos KRB5_LIB_FUNCTION struct _krb5_checksum_type * KRB5_LIB_CALL
    315  1.1  christos _krb5_find_checksum (krb5_cksumtype /*type*/);
    316  1.1  christos 
    317  1.1  christos KRB5_LIB_FUNCTION struct _krb5_encryption_type * KRB5_LIB_CALL
    318  1.1  christos _krb5_find_enctype (krb5_enctype /*type*/);
    319  1.1  christos 
    320  1.1  christos KRB5_LIB_FUNCTION void KRB5_LIB_CALL
    321  1.1  christos _krb5_free_capath (
    322  1.1  christos 	krb5_context /*context*/,
    323  1.1  christos 	char **/*capath*/);
    324  1.1  christos 
    325  1.1  christos KRB5_LIB_FUNCTION void KRB5_LIB_CALL
    326  1.1  christos _krb5_free_key_data (
    327  1.1  christos 	krb5_context /*context*/,
    328  1.1  christos 	struct _krb5_key_data */*key*/,
    329  1.1  christos 	struct _krb5_encryption_type */*et*/);
    330  1.1  christos 
    331  1.1  christos KRB5_LIB_FUNCTION void KRB5_LIB_CALL
    332  1.1  christos _krb5_free_krbhst_info (krb5_krbhst_info */*hi*/);
    333  1.1  christos 
    334  1.1  christos KRB5_LIB_FUNCTION void KRB5_LIB_CALL
    335  1.1  christos _krb5_free_moduli (struct krb5_dh_moduli **/*moduli*/);
    336  1.1  christos 
    337  1.1  christos KRB5_LIB_FUNCTION void
    338  1.1  christos _krb5_free_name_canon_rules (
    339  1.1  christos 	krb5_context /*context*/,
    340  1.1  christos 	krb5_name_canon_rule /*rules*/);
    341  1.1  christos 
    342  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    343  1.1  christos _krb5_get_ad (
    344  1.1  christos 	krb5_context /*context*/,
    345  1.1  christos 	const AuthorizationData */*ad*/,
    346  1.1  christos 	krb5_keyblock */*sessionkey*/,
    347  1.1  christos 	int /*type*/,
    348  1.1  christos 	krb5_data */*data*/);
    349  1.1  christos 
    350  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    351  1.1  christos _krb5_get_cred_kdc_any (
    352  1.1  christos 	krb5_context /*context*/,
    353  1.1  christos 	krb5_kdc_flags /*flags*/,
    354  1.1  christos 	krb5_ccache /*ccache*/,
    355  1.1  christos 	krb5_creds */*in_creds*/,
    356  1.1  christos 	krb5_principal /*impersonate_principal*/,
    357  1.1  christos 	Ticket */*second_ticket*/,
    358  1.1  christos 	krb5_creds **/*out_creds*/,
    359  1.1  christos 	krb5_creds ***/*ret_tgts*/);
    360  1.1  christos 
    361  1.1  christos KRB5_LIB_FUNCTION char * KRB5_LIB_CALL
    362  1.1  christos _krb5_get_default_cc_name_from_registry (krb5_context /*context*/);
    363  1.1  christos 
    364  1.1  christos KRB5_LIB_FUNCTION char * KRB5_LIB_CALL
    365  1.1  christos _krb5_get_default_config_config_files_from_registry (void);
    366  1.1  christos 
    367  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    368  1.1  christos _krb5_get_default_principal_local (
    369  1.1  christos 	krb5_context /*context*/,
    370  1.1  christos 	krb5_principal */*princ*/);
    371  1.1  christos 
    372  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    373  1.1  christos _krb5_get_host_realm_int (
    374  1.1  christos 	krb5_context /*context*/,
    375  1.1  christos 	const char */*host*/,
    376  1.1  christos 	krb5_boolean /*use_dns*/,
    377  1.1  christos 	krb5_realm **/*realms*/);
    378  1.1  christos 
    379  1.1  christos KRB5_LIB_FUNCTION void KRB5_LIB_CALL
    380  1.1  christos _krb5_get_init_creds_opt_free_pkinit (krb5_get_init_creds_opt */*opt*/);
    381  1.1  christos 
    382  1.1  christos KRB5_LIB_FUNCTION krb5_ssize_t KRB5_LIB_CALL
    383  1.1  christos _krb5_get_int (
    384  1.1  christos 	void */*buffer*/,
    385  1.1  christos 	unsigned long */*value*/,
    386  1.1  christos 	size_t /*size*/);
    387  1.1  christos 
    388  1.1  christos KRB5_LIB_FUNCTION krb5_ssize_t KRB5_LIB_CALL
    389  1.1  christos _krb5_get_int64 (
    390  1.1  christos 	void */*buffer*/,
    391  1.1  christos 	uint64_t */*value*/,
    392  1.1  christos 	size_t /*size*/);
    393  1.1  christos 
    394  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    395  1.1  christos _krb5_get_krbtgt (
    396  1.1  christos 	krb5_context /*context*/,
    397  1.1  christos 	krb5_ccache /*id*/,
    398  1.1  christos 	krb5_realm /*realm*/,
    399  1.1  christos 	krb5_creds **/*cred*/);
    400  1.1  christos 
    401  1.1  christos KRB5_LIB_FUNCTION krb5_error_code
    402  1.1  christos _krb5_get_name_canon_rules (
    403  1.1  christos 	krb5_context /*context*/,
    404  1.1  christos 	krb5_name_canon_rule */*rules*/);
    405  1.1  christos 
    406  1.1  christos KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL
    407  1.1  christos _krb5_have_debug (
    408  1.1  christos 	krb5_context /*context*/,
    409  1.1  christos 	int /*level*/);
    410  1.1  christos 
    411  1.1  christos KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL
    412  1.1  christos _krb5_homedir_access (krb5_context /*context*/);
    413  1.1  christos 
    414  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    415  1.1  christos _krb5_init_etype (
    416  1.1  christos 	krb5_context /*context*/,
    417  1.1  christos 	krb5_pdu /*pdu_type*/,
    418  1.1  christos 	unsigned */*len*/,
    419  1.1  christos 	krb5_enctype **/*val*/,
    420  1.1  christos 	const krb5_enctype */*etypes*/);
    421  1.1  christos 
    422  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    423  1.1  christos _krb5_internal_hmac (
    424  1.1  christos 	krb5_context /*context*/,
    425  1.1  christos 	struct _krb5_checksum_type */*cm*/,
    426  1.1  christos 	const void */*data*/,
    427  1.1  christos 	size_t /*len*/,
    428  1.1  christos 	unsigned /*usage*/,
    429  1.1  christos 	struct _krb5_key_data */*keyblock*/,
    430  1.1  christos 	Checksum */*result*/);
    431  1.1  christos 
    432  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    433  1.1  christos _krb5_kcm_get_initial_ticket (
    434  1.1  christos 	krb5_context /*context*/,
    435  1.1  christos 	krb5_ccache /*id*/,
    436  1.1  christos 	krb5_principal /*server*/,
    437  1.1  christos 	krb5_keyblock */*key*/);
    438  1.1  christos 
    439  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    440  1.1  christos _krb5_kcm_get_ticket (
    441  1.1  christos 	krb5_context /*context*/,
    442  1.1  christos 	krb5_ccache /*id*/,
    443  1.1  christos 	krb5_kdc_flags /*flags*/,
    444  1.1  christos 	krb5_enctype /*enctype*/,
    445  1.1  christos 	krb5_principal /*server*/);
    446  1.1  christos 
    447  1.1  christos KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL
    448  1.1  christos _krb5_kcm_is_running (krb5_context /*context*/);
    449  1.1  christos 
    450  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    451  1.1  christos _krb5_kcm_noop (
    452  1.1  christos 	krb5_context /*context*/,
    453  1.1  christos 	krb5_ccache /*id*/);
    454  1.1  christos 
    455  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    456  1.1  christos _krb5_kdc_retry (
    457  1.1  christos 	krb5_context /*context*/,
    458  1.1  christos 	krb5_sendto_ctx /*ctx*/,
    459  1.1  christos 	void */*data*/,
    460  1.1  christos 	const krb5_data */*reply*/,
    461  1.1  christos 	int */*action*/);
    462  1.1  christos 
    463  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    464  1.1  christos _krb5_krbhost_info_move (
    465  1.1  christos 	krb5_context /*context*/,
    466  1.1  christos 	krb5_krbhst_info */*from*/,
    467  1.1  christos 	krb5_krbhst_info **/*to*/);
    468  1.1  christos 
    469  1.1  christos KRB5_LIB_FUNCTION const char * KRB5_LIB_CALL
    470  1.1  christos _krb5_krbhst_get_realm (krb5_krbhst_handle /*handle*/);
    471  1.1  christos 
    472  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    473  1.1  christos _krb5_kt_principal_not_found (
    474  1.1  christos 	krb5_context /*context*/,
    475  1.1  christos 	krb5_error_code /*ret*/,
    476  1.1  christos 	krb5_keytab /*id*/,
    477  1.1  christos 	krb5_const_principal /*principal*/,
    478  1.1  christos 	krb5_enctype /*enctype*/,
    479  1.1  christos 	int /*kvno*/);
    480  1.1  christos 
    481  1.1  christos KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL
    482  1.1  christos _krb5_kuserok (
    483  1.1  christos 	krb5_context /*context*/,
    484  1.1  christos 	krb5_principal /*principal*/,
    485  1.1  christos 	const char */*luser*/,
    486  1.1  christos 	krb5_boolean /*an2ln_ok*/);
    487  1.1  christos 
    488  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    489  1.1  christos _krb5_load_ccache_plugins (krb5_context /*context*/);
    490  1.1  christos 
    491  1.1  christos KRB5_LIB_FUNCTION void KRB5_LIB_CALL
    492  1.1  christos _krb5_load_db_plugins (krb5_context /*context*/);
    493  1.1  christos 
    494  1.1  christos KRB5_LIB_FUNCTION void KRB5_LIB_CALL
    495  1.1  christos _krb5_load_plugins (
    496  1.1  christos 	krb5_context /*context*/,
    497  1.1  christos 	const char */*name*/,
    498  1.1  christos 	const char **/*paths*/);
    499  1.1  christos 
    500  1.1  christos krb5_error_code
    501  1.1  christos _krb5_make_fast_ap_fxarmor (
    502  1.1  christos 	krb5_context /*context*/,
    503  1.1  christos 	krb5_ccache /*armor_ccache*/,
    504  1.1  christos 	krb5_data */*armor_value*/,
    505  1.1  christos 	krb5_keyblock */*armor_key*/,
    506  1.1  christos 	krb5_crypto */*armor_crypto*/);
    507  1.1  christos 
    508  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    509  1.1  christos _krb5_mk_req_internal (
    510  1.1  christos 	krb5_context /*context*/,
    511  1.1  christos 	krb5_auth_context */*auth_context*/,
    512  1.1  christos 	const krb5_flags /*ap_req_options*/,
    513  1.1  christos 	krb5_data */*in_data*/,
    514  1.1  christos 	krb5_creds */*in_creds*/,
    515  1.1  christos 	krb5_data */*outbuf*/,
    516  1.1  christos 	krb5_key_usage /*checksum_usage*/,
    517  1.1  christos 	krb5_key_usage /*encrypt_usage*/);
    518  1.1  christos 
    519  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    520  1.1  christos _krb5_n_fold (
    521  1.1  christos 	const void */*str*/,
    522  1.1  christos 	size_t /*len*/,
    523  1.1  christos 	void */*key*/,
    524  1.1  christos 	size_t /*size*/);
    525  1.1  christos 
    526  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    527  1.1  christos _krb5_pac_sign (
    528  1.1  christos 	krb5_context /*context*/,
    529  1.1  christos 	krb5_pac /*p*/,
    530  1.1  christos 	time_t /*authtime*/,
    531  1.1  christos 	krb5_principal /*principal*/,
    532  1.1  christos 	const krb5_keyblock */*server_key*/,
    533  1.1  christos 	const krb5_keyblock */*priv_key*/,
    534  1.1  christos 	krb5_data */*data*/);
    535  1.1  christos 
    536  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    537  1.1  christos _krb5_parse_moduli (
    538  1.1  christos 	krb5_context /*context*/,
    539  1.1  christos 	const char */*file*/,
    540  1.1  christos 	struct krb5_dh_moduli ***/*moduli*/);
    541  1.1  christos 
    542  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    543  1.1  christos _krb5_parse_moduli_line (
    544  1.1  christos 	krb5_context /*context*/,
    545  1.1  christos 	const char */*file*/,
    546  1.1  christos 	int /*lineno*/,
    547  1.1  christos 	char */*p*/,
    548  1.1  christos 	struct krb5_dh_moduli **/*m*/);
    549  1.1  christos 
    550  1.1  christos KRB5_LIB_FUNCTION void KRB5_LIB_CALL
    551  1.1  christos _krb5_pk_cert_free (struct krb5_pk_cert */*cert*/);
    552  1.1  christos 
    553  1.1  christos void
    554  1.1  christos _krb5_pk_eckey_free (void */*eckey*/);
    555  1.1  christos 
    556  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    557  1.1  christos _krb5_pk_kdf (
    558  1.1  christos 	krb5_context /*context*/,
    559  1.1  christos 	const struct AlgorithmIdentifier */*ai*/,
    560  1.1  christos 	const void */*dhdata*/,
    561  1.1  christos 	size_t /*dhsize*/,
    562  1.1  christos 	krb5_const_principal /*client*/,
    563  1.1  christos 	krb5_const_principal /*server*/,
    564  1.1  christos 	krb5_enctype /*enctype*/,
    565  1.1  christos 	const krb5_data */*as_req*/,
    566  1.1  christos 	const krb5_data */*pk_as_rep*/,
    567  1.1  christos 	const Ticket */*ticket*/,
    568  1.1  christos 	krb5_keyblock */*key*/);
    569  1.1  christos 
    570  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    571  1.1  christos _krb5_pk_kx_confirm (
    572  1.1  christos 	krb5_context /*context*/,
    573  1.1  christos 	krb5_pk_init_ctx /*ctx*/,
    574  1.1  christos 	krb5_keyblock */*reply_key*/,
    575  1.1  christos 	krb5_keyblock */*session_key*/,
    576  1.1  christos 	PA_DATA */*pa_pkinit_kx*/);
    577  1.1  christos 
    578  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    579  1.1  christos _krb5_pk_load_id (
    580  1.1  christos 	krb5_context /*context*/,
    581  1.1  christos 	struct krb5_pk_identity **/*ret_id*/,
    582  1.1  christos 	const char */*user_id*/,
    583  1.1  christos 	const char */*anchor_id*/,
    584  1.1  christos 	char * const */*chain_list*/,
    585  1.1  christos 	char * const */*revoke_list*/,
    586  1.1  christos 	krb5_prompter_fct /*prompter*/,
    587  1.1  christos 	void */*prompter_data*/,
    588  1.1  christos 	char */*password*/);
    589  1.1  christos 
    590  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    591  1.1  christos _krb5_pk_mk_ContentInfo (
    592  1.1  christos 	krb5_context /*context*/,
    593  1.1  christos 	const krb5_data */*buf*/,
    594  1.1  christos 	const heim_oid */*oid*/,
    595  1.1  christos 	struct ContentInfo */*content_info*/);
    596  1.1  christos 
    597  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    598  1.1  christos _krb5_pk_mk_padata (
    599  1.1  christos 	krb5_context /*context*/,
    600  1.1  christos 	void */*c*/,
    601  1.1  christos 	int /*ic_flags*/,
    602  1.1  christos 	int /*win2k*/,
    603  1.1  christos 	const KDC_REQ_BODY */*req_body*/,
    604  1.1  christos 	unsigned /*nonce*/,
    605  1.1  christos 	METHOD_DATA */*md*/);
    606  1.1  christos 
    607  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    608  1.1  christos _krb5_pk_octetstring2key (
    609  1.1  christos 	krb5_context /*context*/,
    610  1.1  christos 	krb5_enctype /*type*/,
    611  1.1  christos 	const void */*dhdata*/,
    612  1.1  christos 	size_t /*dhsize*/,
    613  1.1  christos 	const heim_octet_string */*c_n*/,
    614  1.1  christos 	const heim_octet_string */*k_n*/,
    615  1.1  christos 	krb5_keyblock */*key*/);
    616  1.1  christos 
    617  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    618  1.1  christos _krb5_pk_rd_pa_reply (
    619  1.1  christos 	krb5_context /*context*/,
    620  1.1  christos 	const char */*realm*/,
    621  1.1  christos 	void */*c*/,
    622  1.1  christos 	krb5_enctype /*etype*/,
    623  1.1  christos 	const krb5_krbhst_info */*hi*/,
    624  1.1  christos 	unsigned /*nonce*/,
    625  1.1  christos 	const krb5_data */*req_buffer*/,
    626  1.1  christos 	PA_DATA */*pa*/,
    627  1.1  christos 	krb5_keyblock **/*key*/);
    628  1.1  christos 
    629  1.1  christos krb5_error_code
    630  1.1  christos _krb5_pk_rd_pa_reply_ecdh_compute_key (
    631  1.1  christos 	krb5_context /*context*/,
    632  1.1  christos 	krb5_pk_init_ctx /*ctx*/,
    633  1.1  christos 	const unsigned char */*in*/,
    634  1.1  christos 	size_t /*in_sz*/,
    635  1.1  christos 	unsigned char **/*out*/,
    636  1.1  christos 	int */*out_sz*/);
    637  1.1  christos 
    638  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    639  1.1  christos _krb5_plugin_find (
    640  1.1  christos 	krb5_context /*context*/,
    641  1.1  christos 	enum krb5_plugin_type /*type*/,
    642  1.1  christos 	const char */*name*/,
    643  1.1  christos 	struct krb5_plugin **/*list*/);
    644  1.1  christos 
    645  1.1  christos KRB5_LIB_FUNCTION void KRB5_LIB_CALL
    646  1.1  christos _krb5_plugin_free (struct krb5_plugin */*list*/);
    647  1.1  christos 
    648  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    649  1.1  christos _krb5_plugin_run_f (
    650  1.1  christos 	krb5_context /*context*/,
    651  1.1  christos 	const char */*module*/,
    652  1.1  christos 	const char */*name*/,
    653  1.1  christos 	int /*min_version*/,
    654  1.1  christos 	int /*flags*/,
    655  1.1  christos 	void */*userctx*/,
    656  1.1  christos 	krb5_error_code (KRB5_LIB_CALL *func)(krb5_context, const void *, void *, void *));
    657  1.1  christos 
    658  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    659  1.1  christos _krb5_principal2principalname (
    660  1.1  christos 	PrincipalName */*p*/,
    661  1.1  christos 	const krb5_principal /*from*/);
    662  1.1  christos 
    663  1.1  christos KRB5_LIB_FUNCTION krb5_boolean KRB5_LIB_CALL
    664  1.1  christos _krb5_principal_compare_PrincipalName (
    665  1.1  christos 	krb5_context /*context*/,
    666  1.1  christos 	krb5_const_principal /*princ1*/,
    667  1.1  christos 	PrincipalName */*princ2*/);
    668  1.1  christos 
    669  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    670  1.1  christos _krb5_principalname2krb5_principal (
    671  1.1  christos 	krb5_context /*context*/,
    672  1.1  christos 	krb5_principal */*principal*/,
    673  1.1  christos 	const PrincipalName /*from*/,
    674  1.1  christos 	const Realm /*realm*/);
    675  1.1  christos 
    676  1.1  christos KRB5_LIB_FUNCTION krb5_ssize_t KRB5_LIB_CALL
    677  1.1  christos _krb5_put_int (
    678  1.1  christos 	void */*buffer*/,
    679  1.1  christos 	uint64_t /*value*/,
    680  1.1  christos 	size_t /*size*/);
    681  1.1  christos 
    682  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    683  1.1  christos _krb5_s4u2self_to_checksumdata (
    684  1.1  christos 	krb5_context /*context*/,
    685  1.1  christos 	const PA_S4U2Self */*self*/,
    686  1.1  christos 	krb5_data */*data*/);
    687  1.1  christos 
    688  1.1  christos KRB5_LIB_FUNCTION void KRB5_LIB_CALL
    689  1.1  christos _krb5_sendto_ctx_set_krb5hst (
    690  1.1  christos 	krb5_context /*context*/,
    691  1.1  christos 	krb5_sendto_ctx /*ctx*/,
    692  1.1  christos 	krb5_krbhst_handle /*handle*/);
    693  1.1  christos 
    694  1.1  christos KRB5_LIB_FUNCTION void KRB5_LIB_CALL
    695  1.1  christos _krb5_sendto_ctx_set_prexmit (
    696  1.1  christos 	krb5_sendto_ctx /*ctx*/,
    697  1.1  christos 	krb5_sendto_prexmit /*prexmit*/,
    698  1.1  christos 	void */*data*/);
    699  1.1  christos 
    700  1.1  christos KRB5_LIB_FUNCTION int KRB5_LIB_CALL
    701  1.1  christos _krb5_set_default_cc_name_to_registry (
    702  1.1  christos 	krb5_context /*context*/,
    703  1.1  christos 	krb5_ccache /*id*/);
    704  1.1  christos 
    705  1.1  christos KRB5_LIB_FUNCTION void KRB5_LIB_CALL
    706  1.1  christos _krb5_unload_plugins (
    707  1.1  christos 	krb5_context /*context*/,
    708  1.1  christos 	const char */*name*/);
    709  1.1  christos 
    710  1.1  christos KRB5_LIB_FUNCTION krb5_error_code KRB5_LIB_CALL
    711  1.1  christos _krb5_usage2arcfour (
    712  1.1  christos 	krb5_context /*context*/,
    713  1.1  christos 	unsigned */*usage*/);
    714  1.1  christos 
    715  1.1  christos KRB5_LIB_FUNCTION int KRB5_LIB_CALL
    716  1.1  christos _krb5_xlock (
    717  1.1  christos 	krb5_context /*context*/,
    718  1.1  christos 	int /*fd*/,
    719  1.1  christos 	krb5_boolean /*exclusive*/,
    720  1.1  christos 	const char */*filename*/);
    721  1.1  christos 
    722  1.1  christos KRB5_LIB_FUNCTION void KRB5_LIB_CALL
    723  1.1  christos _krb5_xor8 (
    724  1.1  christos 	unsigned char */*a*/,
    725  1.1  christos 	const unsigned char */*b*/);
    726  1.1  christos 
    727  1.1  christos KRB5_LIB_FUNCTION int KRB5_LIB_CALL
    728  1.1  christos _krb5_xunlock (
    729  1.1  christos 	krb5_context /*context*/,
    730  1.1  christos 	int /*fd*/);
    731  1.1  christos 
    732  1.1  christos #undef KRB5_DEPRECATED_FUNCTION
    733  1.1  christos #define KRB5_DEPRECATED_FUNCTION(X)
    734  1.1  christos 
    735  1.1  christos #endif /* __krb5_private_h__ */
    736