16 lines
684 B
Diff
16 lines
684 B
Diff
source: $OpenBSD: patch-libfreerdp_crypto_tls_c,v 1.3 2018/10/24 17:10:22 jsing Exp $
|
|
|
|
Stop reaching into libssl internals to send TLS alerts.
|
|
|
|
--- libfreerdp/crypto/tls.c 2018-11-20 11:43:51.000000000 +0100
|
|
+++ libfreerdp/crypto/tls.c 2019-05-10 01:49:19.466050550 +0200
|
|
@@ -1026,7 +1026,7 @@
|
|
* FIXME: The following code does not work on OpenSSL > 1.1.0 because the
|
|
* SSL struct is opaqe now
|
|
*/
|
|
-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
|
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2080000fL)
|
|
|
|
if (tls->alertDescription != TLS_ALERT_DESCRIPTION_CLOSE_NOTIFY)
|
|
{
|