remove obsolete #ifdef patch (no change, the macro is defined anyway now)
This commit is contained in:
parent
39ba8148b4
commit
27234aa179
|
@ -1,12 +0,0 @@
|
|||
Index: lib/base/tlsutility.cpp
|
||||
--- lib/base/tlsutility.cpp.orig
|
||||
+++ lib/base/tlsutility.cpp
|
||||
@@ -248,7 +248,7 @@ int ResolveTlsProtocolVersion(const std::string& versi
|
||||
if (version == "TLSv1.2") {
|
||||
return TLS1_2_VERSION;
|
||||
} else if (version == "TLSv1.3") {
|
||||
-#if OPENSSL_VERSION_NUMBER >= 0x10101000L
|
||||
+#if OPENSSL_VERSION_NUMBER >= 0x10101000L && defined(TLS1_3_VERSION)
|
||||
return TLS1_3_VERSION;
|
||||
#else /* OPENSSL_VERSION_NUMBER >= 0x10101000L */
|
||||
throw std::runtime_error("'" + version + "' is only supported with OpenSSL 1.1.1 or newer");
|
Loading…
Reference in New Issue