Lines 40-46
Link Here
|
40 |
#if (defined HAVE_LIBCURL && defined LIBCURL_USE_OPENSSL) || defined SSL_SECURITY |
40 |
#if (defined HAVE_LIBCURL && defined LIBCURL_USE_OPENSSL) || defined SSL_SECURITY |
41 |
#include <openssl/crypto.h> |
41 |
#include <openssl/crypto.h> |
42 |
#include <openssl/ssl.h> |
42 |
#include <openssl/ssl.h> |
43 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L |
43 |
#if (defined OPENSSL_VERSION_NUMBER && OPENSSL_VERSION_NUMBER < 0x10100000L) \ |
|
|
44 |
|| defined LIBRESSL_VERSION_NUMBER |
44 |
static GMutex **openssl_mutex_array; |
45 |
static GMutex **openssl_mutex_array; |
45 |
static void openssl_lock_callback(int mode, int type, const char *file, int line) |
46 |
static void openssl_lock_callback(int mode, int type, const char *file, int line) |
46 |
{ |
47 |
{ |
Lines 58-64
static void openssl_lock_callback(int mode, int type, const char *file, int line
Link Here
|
58 |
static void |
59 |
static void |
59 |
init_openssl(void) |
60 |
init_openssl(void) |
60 |
{ |
61 |
{ |
61 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L |
62 |
#if (defined OPENSSL_VERSION_NUMBER && OPENSSL_VERSION_NUMBER < 0x10100000L) \ |
|
|
63 |
|| defined LIBRESSL_VERSION_NUMBER |
62 |
int i; |
64 |
int i; |
63 |
openssl_mutex_array = g_new0(GMutex *, CRYPTO_num_locks()); |
65 |
openssl_mutex_array = g_new0(GMutex *, CRYPTO_num_locks()); |
64 |
|
66 |
|