1
0
Fork 0

fix OpenSSL warnings about deprecated functions

This commit is contained in:
jsteemann 2019-01-11 09:37:48 +01:00
parent ba7a40ab4e
commit 63f5379115
1 changed files with 8 additions and 0 deletions

View File

@ -227,11 +227,19 @@ void SslClientConnection::init(uint64_t sslProtocol) {
break;
case TLS_V1:
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
meth = TLS_client_method();
#else
meth = TLSv1_method();
#endif
break;
case TLS_V12:
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
meth = TLS_client_method();
#else
meth = TLSv1_2_method();
#endif
break;
case TLS_V13: