Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of wolfSSL by
crypto.h
00001 /* crypto.h for openSSL */ 00002 00003 #ifndef WOLFSSL_CRYPTO_H_ 00004 #define WOLFSSL_CRYPTO_H_ 00005 00006 #include <wolfssl/openssl/opensslv.h> 00007 00008 #include <wolfssl/wolfcrypt/settings.h> 00009 00010 #ifdef WOLFSSL_PREFIX 00011 #include "prefix_crypto.h" 00012 #endif 00013 00014 00015 WOLFSSL_API const char* wolfSSLeay_version(int type); 00016 WOLFSSL_API unsigned long wolfSSLeay(void); 00017 00018 #define CRYPTO_THREADID void 00019 00020 #define SSLeay_version wolfSSLeay_version 00021 #define SSLeay wolfSSLeay 00022 00023 00024 #define SSLEAY_VERSION 0x0090600fL 00025 #define SSLEAY_VERSION_NUMBER SSLEAY_VERSION 00026 00027 #if defined(HAVE_STUNNEL) || defined(WOLFSSL_NGINX) || defined(WOLFSSL_HAPROXY) 00028 #define CRYPTO_set_mem_ex_functions wolfSSL_CRYPTO_set_mem_ex_functions 00029 #define FIPS_mode wolfSSL_FIPS_mode 00030 #define FIPS_mode_set wolfSSL_FIPS_mode_set 00031 typedef struct CRYPTO_EX_DATA CRYPTO_EX_DATA; 00032 typedef void (CRYPTO_free_func)(void*parent, void*ptr, CRYPTO_EX_DATA *ad, int idx, 00033 long argl, void* argp); 00034 #define CRYPTO_THREADID_set_callback wolfSSL_THREADID_set_callback 00035 #define CRYPTO_THREADID_set_numeric wolfSSL_THREADID_set_numeric 00036 00037 #define CRYPTO_lock wc_LockMutex 00038 #define CRYPTO_r_lock wc_LockMutex 00039 #define CRYPTO_unlock wc_UnLockMutex 00040 00041 #define CRYPTO_THREAD_lock wc_LockMutex 00042 #define CRYPTO_THREAD_r_lock wc_LockMutex 00043 #define CRYPTO_THREAD_unlock wc_UnLockMutex 00044 00045 #define OPENSSL_malloc(a) XMALLOC(a, NULL, DYNAMIC_TYPE_OPENSSL) 00046 00047 #endif /* HAVE_STUNNEL || WOLFSSL_NGINX || WOLFSSL_HAPROXY */ 00048 00049 #endif /* header */ 00050 00051
Generated on Tue Jul 12 2022 23:30:55 by
1.7.2
