ssl: Fix compile-time warnings

This commit is contained in:
Heikki Hannikainen 2022-10-24 01:16:54 +03:00
parent f4d444c277
commit f6ce97c02f
1 changed files with 2 additions and 4 deletions

View File

@ -109,7 +109,7 @@ int ssl_session_cache_index;
/* This array will store all of the mutexes available to OpenSSL. */ /* This array will store all of the mutexes available to OpenSSL. */
static MUTEX_TYPE *mutex_buf= NULL; static MUTEX_TYPE *mutex_buf= NULL;
static void ssl_thread_locking_function(int mode, int n, const char * file, int line) void ssl_thread_locking_function(int mode, int n, const char * file, int line)
{ {
int me; int me;
@ -124,7 +124,7 @@ static void ssl_thread_locking_function(int mode, int n, const char * file, int
} }
} }
static unsigned long ssl_thread_id_function(void) unsigned long ssl_thread_id_function(void)
{ {
return ((unsigned long)THREAD_ID); return ((unsigned long)THREAD_ID);
} }
@ -280,8 +280,6 @@ int ssl_init(void)
{ {
hlog(LOG_INFO, "Initializing OpenSSL, built against %s ...", OPENSSL_VERSION_TEXT); hlog(LOG_INFO, "Initializing OpenSSL, built against %s ...", OPENSSL_VERSION_TEXT);
OPENSSL_config(NULL);
SSL_library_init(); SSL_library_init();
SSL_load_error_strings(); SSL_load_error_strings();