mirror of https://gitee.com/bigwinds/arangodb
fix OpenSSL warnings about deprecated functions
This commit is contained in:
parent
ba7a40ab4e
commit
63f5379115
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue