13 #ifndef TOR_CRYPTO_OPENSSL_H
14 #define TOR_CRYPTO_OPENSSL_H
19 #include <openssl/opensslv.h>
31 #define OPENSSL_VER(a,b,c,d,e) \
39 #define OPENSSL_V(a,b,c,d) \
40 OPENSSL_VER((a),(b),(c),(d)-'a'+1,0xf)
44 #define OPENSSL_V_NOPATCH(a,b,c) \
45 OPENSSL_VER((a),(b),(c),0,0xf)
49 #define OPENSSL_V_SERIES(a,b,c) \
50 OPENSSL_VER((a),(b),(c),0,0)
52 #ifdef OPENSSL_NO_ENGINE
54 #define DISABLE_ENGINES
57 #if OPENSSL_VERSION_NUMBER >= OPENSSL_VER(1,1,0,0,5) && \
58 !defined(LIBRESSL_VERSION_NUMBER)
70 #define NEW_THREAD_API
76 const char * crypto_openssl_get_version_str(
void);
77 const char * crypto_openssl_get_header_version_str(
void);
81 const char *accelDir);
void crypto_openssl_early_init(void)
void crypto_openssl_thread_cleanup(void)
int crypto_openssl_late_init(int useAccel, const char *accelName, const char *accelDir)
void crypto_openssl_global_cleanup(void)
void crypto_openssl_log_errors(int severity, const char *doing)