sym_hcrypto.c
1 struct krb5_dh_moduli; 2 struct _krb5_krb_auth_data; 3 struct AlgorithmIdentifier; 4 struct _krb5_key_data; 5 struct _krb5_checksum_type; 6 struct _krb5_key_type; 7 struct _krb5_encryption_type; 8 struct _krb5_srv_query_ctx; 9 struct krb5_fast_state; 10 struct _krb5_srp_group; 11 struct _krb5_srp; 12 13 #define KRB5_DEPRECATED 14 #define KRB5_DEPRECATED_FUNCTION(x) 15 #define GSSAPI_DEPRECATED 16 #define HC_DEPRECATED 17 #define HC_DEPRECATED_CRYPTO 18 #define GSSAPI_DEPRECATED_FUNCTION(x) 19 20 #include <config.h> 21 #include <krb5.h> 22 #include <krb5cf-protos.h> 23 #include <krb5_asn1.h> 24 #include "crypto-headers.h" 25 #include <gssapi_rewrite.h> 26 #include <GSS.h> 27 #include <GSSPrivate.h> 28 #include <gssapi.h> 29 #include <gssapi_krb5.h> 30 #include <gssapi_scram.h> 31 #include <gssapi_spnego.h> 32 #include <gssapi_ntlm.h> 33 #include <gssapi_netlogon.h> 34 #include <gssapi_apple.h> 35 #include <gssapi_spi.h> 36 #include <GSSItem.h> 37 #include <heimbase.h> 38 #include <heimbasepriv.h> 39 #include <hx509.h> 40 #include <krb5-private.h> 41 #include <roken.h> 42 #include <rtbl.h> 43 #include <parse_bytes.h> 44 #include <krb5_err.h> 45 #include <heim_err.h> 46 #include <krb_err.h> 47 #include <hdb_err.h> 48 #include <hx509_err.h> 49 #include <heim-ipc.h> 50 #include <wind.h> 51 #include <parse_units.h> 52 #include <parse_time.h> 53 #include <base64.h> 54 #include <hex.h> 55 #include <com_err.h> 56 #include <der.h> 57 #include <rfc2459_asn1.h> 58 #include <cms_asn1.h> 59 #include <spnego_asn1.h> 60 #include <gkrb5_err.h> 61 #include <heimcred.h> 62 63 krb5_error_code _gsskrb5_init (krb5_context *); 64 65 extern int _krb5_AES_string_to_default_iterator; 66 67 struct hx509_collector; 68 struct hx_expr; 69 struct hx509_generate_private_context; 70 struct hx509_keyset_ops; 71 typedef struct hx509_path hx509_path; 72 typedef void (*_hx509_cert_release_func)(struct hx509_cert_data *, void *); 73 74 #include <hx509-private.h> 75 76 extern const void *hcrypto_sym_export[]; 77 78 #pragma clang diagnostic push 79 #pragma clang diagnostic ignored "-Wdeprecated-declarations" 80 const void *hcrypto_sym_export[] = { 81 #ifndef HAVE_CCDIGESTCREATE 82 (const void *)hc_CCDigest, 83 (const void *)hc_CCDigestCreate, 84 (const void *)hc_CCDigestDestroy, 85 (const void *)hc_CCDigestFinal, 86 (const void *)hc_CCDigestUpdate, 87 (const void *)&hc_kCCDigestMD4_s, 88 (const void *)&hc_kCCDigestMD5_s, 89 (const void *)&hc_kCCDigestSHA1_s, 90 (const void *)&hc_kCCDigestSHA256_s, 91 #endif 92 #ifndef PKINIT 93 (const void *)hc_DH_check_pubkey, 94 (const void *)hc_DH_compute_key, 95 (const void *)hc_DH_free, 96 (const void *)hc_DH_generate_key, 97 (const void *)hc_DH_generate_parameters_ex, 98 (const void *)hc_DH_get_default_method, 99 (const void *)hc_DH_get_ex_data, 100 (const void *)hc_DH_new, 101 (const void *)hc_DH_new_method, 102 (const void *)hc_DH_set_default_method, 103 (const void *)hc_DH_set_ex_data, 104 (const void *)hc_DH_set_method, 105 (const void *)hc_DH_size, 106 (const void *)hc_DH_up_ref, 107 (const void *)hc_EVP_BytesToKey, 108 #endif 109 (const void *)hc_EVP_CIPHER_CTX_block_size, 110 (const void *)hc_EVP_CIPHER_CTX_cipher, 111 (const void *)hc_EVP_CIPHER_CTX_cleanup, 112 (const void *)hc_EVP_CIPHER_CTX_ctrl, 113 (const void *)hc_EVP_CIPHER_CTX_flags, 114 (const void *)hc_EVP_CIPHER_CTX_get_app_data, 115 (const void *)hc_EVP_CIPHER_CTX_init, 116 (const void *)hc_EVP_CIPHER_CTX_iv_length, 117 (const void *)hc_EVP_CIPHER_CTX_key_length, 118 (const void *)hc_EVP_CIPHER_CTX_mode, 119 (const void *)hc_EVP_CIPHER_CTX_rand_key, 120 (const void *)hc_EVP_CIPHER_CTX_set_app_data, 121 (const void *)hc_EVP_CIPHER_CTX_set_key_length, 122 (const void *)hc_EVP_CIPHER_block_size, 123 (const void *)hc_EVP_CIPHER_iv_length, 124 (const void *)hc_EVP_CIPHER_key_length, 125 (const void *)hc_EVP_Cipher, 126 (const void *)hc_EVP_CipherFinal_ex, 127 (const void *)hc_EVP_CipherInit_ex, 128 (const void *)hc_EVP_CipherUpdate, 129 (const void *)hc_EVP_aes_128_cbc, 130 (const void *)hc_EVP_aes_128_cfb8, 131 (const void *)hc_EVP_aes_192_cbc, 132 (const void *)hc_EVP_aes_192_cfb8, 133 (const void *)hc_EVP_aes_256_cbc, 134 (const void *)hc_EVP_aes_256_cfb8, 135 (const void *)hc_EVP_des_cbc, 136 (const void *)hc_EVP_des_ede3_cbc, 137 (const void *)hc_EVP_enc_null, 138 (const void *)hc_EVP_get_cipherbyname, 139 (const void *)hc_EVP_md5, 140 (const void *)hc_EVP_md_null, 141 #ifndef __APPLE_TARGET_EMBEDDED__ 142 (const void *)hc_EVP_rc2_40_cbc, 143 (const void *)hc_EVP_rc2_64_cbc, 144 (const void *)hc_EVP_rc2_cbc, 145 #endif 146 (const void *)hc_EVP_rc4, 147 (const void *)hc_OpenSSL_add_all_algorithms, 148 (const void *)hc_OpenSSL_add_all_algorithms_conf, 149 (const void *)hc_OpenSSL_add_all_algorithms_noconf, 150 #ifndef PKINIT 151 (const void *)hc_RSA_check_key, 152 (const void *)hc_RSA_free, 153 (const void *)hc_RSA_generate_key_ex, 154 (const void *)hc_RSA_get_app_data, 155 (const void *)hc_RSA_get_default_method, 156 (const void *)hc_RSA_get_method, 157 (const void *)hc_RSA_new, 158 (const void *)hc_RSA_new_method, 159 (const void *)hc_RSA_private_decrypt, 160 (const void *)hc_RSA_private_encrypt, 161 (const void *)hc_RSA_public_decrypt, 162 (const void *)hc_RSA_public_encrypt, 163 (const void *)hc_RSA_set_app_data, 164 (const void *)hc_RSA_set_default_method, 165 (const void *)hc_RSA_set_method, 166 (const void *)hc_RSA_sign, 167 (const void *)hc_RSA_size, 168 (const void *)hc_RSA_up_ref, 169 (const void *)hc_RSA_verify, 170 (const void *)hc_d2i_RSAPrivateKey, 171 (const void *)hc_d2i_RSAPublicKey, 172 (const void *)hc_i2d_RSAPrivateKey, 173 (const void *)hc_i2d_RSAPublicKey, 174 #endif 175 (const void *)hc_UI_UTIL_read_pw_string, 176 (const void *)hc_ENGINE_add_conf_module, 177 (const void *)hc_ENGINE_by_dso, 178 (const void *)hc_ENGINE_by_id, 179 (const void *)hc_ENGINE_finish, 180 (const void *)hc_ENGINE_get_DH, 181 (const void *)hc_ENGINE_get_RAND, 182 (const void *)hc_ENGINE_get_RSA, 183 (const void *)hc_ENGINE_get_default_DH, 184 (const void *)hc_ENGINE_get_default_RSA, 185 (const void *)hc_ENGINE_get_id, 186 (const void *)hc_ENGINE_get_name, 187 (const void *)hc_ENGINE_load_builtin_engines, 188 #ifndef PKINIT 189 (const void *)hc_ENGINE_set_DH, 190 (const void *)hc_ENGINE_set_RSA, 191 (const void *)hc_ENGINE_set_default_DH, 192 (const void *)hc_ENGINE_set_default_RSA, 193 #endif 194 (const void *)hc_ENGINE_set_destroy_function, 195 (const void *)hc_ENGINE_set_id, 196 (const void *)hc_ENGINE_set_name, 197 (const void *)hc_ENGINE_up_ref, 198 (const void *)hc_PKCS5_PBKDF2_HMAC_SHA1, 199 #ifndef __APPLE_TARGET_EMBEDDED__ 200 (const void *)hc_PKCS12_key_gen, 201 #endif 202 NULL 203 }; 204 205 #pragma clang diagnostic pop 206