diff options
Diffstat (limited to 'lib/crypto/c_src/crypto_callback.h')
-rw-r--r-- | lib/crypto/c_src/crypto_callback.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/crypto/c_src/crypto_callback.h b/lib/crypto/c_src/crypto_callback.h index d46266fd8b..d7f14ac1cd 100644 --- a/lib/crypto/c_src/crypto_callback.h +++ b/lib/crypto/c_src/crypto_callback.h @@ -34,7 +34,10 @@ struct crypto_callbacks void (*crypto_free)(void* ptr CCB_FILE_LINE_ARGS); /* openssl callbacks */ +#if OPENSSL_VERSION_NUMBER < 0x10100000 #ifdef OPENSSL_THREADS + int (*add_lock_function)(int *num, int amount, int type, + const char *file, int line); void (*locking_function)(int mode, int n, const char *file, int line); unsigned long (*id_function)(void); struct CRYPTO_dynlock_value* (*dyn_create_function)(const char *file, @@ -44,6 +47,7 @@ struct crypto_callbacks void (*dyn_destroy_function)(struct CRYPTO_dynlock_value *ptr, const char *file, int line); #endif /* OPENSSL_THREADS */ +#endif }; typedef struct crypto_callbacks* get_crypto_callbacks_t(int nlocks); |