24 #ifndef WOLFSSL_CRYPTO_H_ 25 #define WOLFSSL_CRYPTO_H_ 27 #include <wolfssl/openssl/opensslv.h> 29 #include <wolfssl/wolfcrypt/settings.h> 32 #include "prefix_crypto.h" 36 WOLFSSL_API
const char* wolfSSLeay_version(
int type);
37 WOLFSSL_API
unsigned long wolfSSLeay(
void);
38 WOLFSSL_API
unsigned long wolfSSL_OpenSSL_version_num(
void);
41 WOLFSSL_API
void wolfSSL_OPENSSL_free(
void*);
42 WOLFSSL_API
void *wolfSSL_OPENSSL_malloc(
size_t a);
45 #define CRYPTO_THREADID void 47 #define SSLeay_version wolfSSLeay_version 48 #define SSLeay wolfSSLeay 49 #define OpenSSL_version_num wolfSSL_OpenSSL_version_num 52 #define SSLEAY_VERSION 0x10001000L 54 #define SSLEAY_VERSION 0x0090600fL 56 #define SSLEAY_VERSION_NUMBER SSLEAY_VERSION 57 #define CRYPTO_lock wc_LockMutex_ex 60 #define CRYPTO_malloc_init() 0 62 #define OPENSSL_free wolfSSL_OPENSSL_free 63 #define OPENSSL_malloc wolfSSL_OPENSSL_malloc 66 #define OPENSSL_INIT_ADD_ALL_CIPHERS 0x00000004L 67 #define OPENSSL_INIT_ADD_ALL_DIGESTS 0x00000008L 68 #define OPENSSL_INIT_LOAD_CONFIG 0x00000040L 71 #if defined(OPENSSL_ALL) || defined(HAVE_STUNNEL) || defined(WOLFSSL_NGINX) || \ 72 defined(WOLFSSL_HAPROXY) || defined(OPENSSL_EXTRA) 73 #define CRYPTO_set_mem_ex_functions wolfSSL_CRYPTO_set_mem_ex_functions 74 #define FIPS_mode wolfSSL_FIPS_mode 75 #define FIPS_mode_set wolfSSL_FIPS_mode_set 76 typedef struct CRYPTO_EX_DATA CRYPTO_EX_DATA;
77 typedef void (CRYPTO_free_func)(
void*parent,
void*ptr, CRYPTO_EX_DATA *ad,
int idx,
78 long argl,
void* argp);
79 #define CRYPTO_THREADID_set_callback wolfSSL_THREADID_set_callback 80 #define CRYPTO_THREADID_set_numeric wolfSSL_THREADID_set_numeric 82 #define CRYPTO_r_lock wc_LockMutex_ex 83 #define CRYPTO_unlock wc_LockMutex_ex 85 #define CRYPTO_THREAD_lock wc_LockMutex 86 #define CRYPTO_THREAD_r_lock wc_LockMutex 87 #define CRYPTO_THREAD_unlock wc_UnLockMutex