ssl: Fix compile-time warnings
This commit is contained in:
parent
f4d444c277
commit
f6ce97c02f
|
|
@ -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();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue