30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
|
--- src/openvpn/ssl_openssl.c 2019-03-05 18:39:14.924080534 +0100
|
||
|
+++ src/openvpn/ssl_openssl.c 2019-03-05 18:49:33.737131153 +0100
|
||
|
@@ -459,7 +459,7 @@
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
-#if (OPENSSL_VERSION_NUMBER < 0x1010100fL)
|
||
|
+#if (OPENSSL_VERSION_NUMBER < 0x1010100fL || defined(LIBRESSL_VERSION_NUMBER))
|
||
|
crypto_msg(M_WARN, "Not compiled with OpenSSL 1.1.1 or higher. "
|
||
|
"Ignoring TLS 1.3 only tls-ciphersuites '%s' setting.",
|
||
|
ciphers);
|
||
|
@@ -1846,7 +1846,7 @@
|
||
|
crypto_msg(M_FATAL, "Cannot create SSL_CTX object");
|
||
|
}
|
||
|
|
||
|
-#if (OPENSSL_VERSION_NUMBER >= 0x1010100fL)
|
||
|
+#if (OPENSSL_VERSION_NUMBER >= 0x1010100fL && !defined(LIBRESSL_VERSION_NUMBER))
|
||
|
if (tls13)
|
||
|
{
|
||
|
SSL_CTX_set_min_proto_version(tls_ctx.ctx, TLS1_3_VERSION);
|
||
|
@@ -1867,7 +1867,7 @@
|
||
|
crypto_msg(M_FATAL, "Cannot create SSL object");
|
||
|
}
|
||
|
|
||
|
-#if (OPENSSL_VERSION_NUMBER < 0x1010000fL)
|
||
|
+#if (OPENSSL_VERSION_NUMBER < 0x1010000fL || defined(LIBRESSL_VERSION_NUMBER))
|
||
|
STACK_OF(SSL_CIPHER) *sk = SSL_get_ciphers(ssl);
|
||
|
#else
|
||
|
STACK_OF(SSL_CIPHER) *sk = SSL_get1_supported_ciphers(ssl);
|