Blame SOURCES/0008-OpenSSL-1.1-disable-client-side-renegotiation.patch

cc1132
From ca5bbc5692e052159bce1a75f55dc60b36078749 Mon Sep 17 00:00:00 2001
cc1132
From: =?UTF-8?q?Julien=20Rop=C3=A9?= <jrope@redhat.com>
cc1132
Date: Wed, 2 Dec 2020 13:39:27 +0100
cc1132
Subject: [PATCH 1/2] With OpenSSL 1.1: Disable client-initiated renegotiation.
cc1132
MIME-Version: 1.0
cc1132
Content-Type: text/plain; charset=UTF-8
cc1132
Content-Transfer-Encoding: 8bit
cc1132
cc1132
Fixes issue #49
cc1132
Fixes BZ#1904459
cc1132
cc1132
Signed-off-by: Julien Ropé <jrope@redhat.com>
cc1132
Reported-by: BlackKD
cc1132
Acked-by: Frediano Ziglio <fziglio@redhat.com>
cc1132
---
cc1132
 server/reds.cpp | 4 ++++
cc1132
 1 file changed, 4 insertions(+)
cc1132
cc1132
diff --git a/server/reds.cpp b/server/reds.cpp
cc1132
index fe69508e..f61086cb 100644
cc1132
--- a/server/reds.c
cc1132
+++ b/server/reds.c
cc1132
@@ -2862,6 +2862,10 @@ static int reds_init_ssl(RedsState *reds)
cc1132
      * When some other SSL/TLS version becomes obsolete, add it to this
cc1132
      * variable. */
cc1132
     long ssl_options = SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_COMPRESSION | SSL_OP_NO_TLSv1;
cc1132
+#ifdef SSL_OP_NO_RENEGOTIATION
cc1132
+    // With OpenSSL 1.1: Disable all renegotiation in TLSv1.2 and earlier
cc1132
+    ssl_options |= SSL_OP_NO_RENEGOTIATION;
cc1132
+#endif
cc1132
 
cc1132
     /* Global system initialization*/
cc1132
     openssl_global_init();
cc1132
-- 
cc1132
2.29.2
cc1132