* src/openssl.c: Fix build for OpenSSL 1.1.0 without TLS1_3_VERSION

This commit is contained in:
Tim Rühsen 2018-03-08 16:17:14 +01:00
parent 040106b3e2
commit 0b54043d17

View File

@ -265,7 +265,7 @@ ssl_init (void)
break;
case secure_protocol_tlsv1_3:
#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100000L)
#if !defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100000L) && defined TLS1_3_VERSION
meth = TLS_client_method();
ssl_proto_version = TLS1_3_VERSION;
#else