Skip to content

Commit

Permalink
TLSv1_2_client_method(void) deprecated in OpenSSL 1.1 #707
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-f committed Jan 4, 2017
1 parent ddcd169 commit 6c799e4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion userspace/libsinsp/socket_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,12 @@ class socket_data_handler
SSL_library_init();
SSL_load_error_strings();
OpenSSL_add_all_algorithms();
const SSL_METHOD* method = TLSv1_2_client_method();
const SSL_METHOD* method =
#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
TLSv1_2_client_method();
#else
TLS_client_method();
#endif
if(!method)
{
g_logger.log("Socket handler (" + m_id + "): Can't initalize SSL method\n" + ssl_errors(),
Expand Down

0 comments on commit 6c799e4

Please sign in to comment.