From d0fbff5dffafb9169a268f4482921d2d5a9fcc7a Mon Sep 17 00:00:00 2001 From: Andrej Podzimek Date: Tue, 1 Dec 2020 20:07:19 +0100 Subject: Adding special TLS protocol names that disable client renegotiation. --- imap/imapd-ssl.dist.in.git | 2 ++ imap/pop3d-ssl.dist.in.git | 2 ++ tcpd/libcouriertls.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/imap/imapd-ssl.dist.in.git b/imap/imapd-ssl.dist.in.git index 8ed9e36..35880c8 100644 --- a/imap/imapd-ssl.dist.in.git +++ b/imap/imapd-ssl.dist.in.git @@ -138,7 +138,9 @@ COURIERTLS=@bindir@/couriertls # # TLSv1 - TLS 1.0, or higher. # TLSv1.1 - TLS1.1, or higher. +# TLSv1.1++ TLS1.1, or higher, without client-initiated renegotiation. # TLSv1.2 - TLS1.2, or higher. +# TLSv1.2++ TLS1.2, or higher, without client-initiated renegotiation. # # The default value is TLSv1 diff --git a/imap/pop3d-ssl.dist.in.git b/imap/pop3d-ssl.dist.in.git index bca75e8..dd352cd 100644 --- a/imap/pop3d-ssl.dist.in.git +++ b/imap/pop3d-ssl.dist.in.git @@ -125,7 +125,9 @@ COURIERTLS=@bindir@/couriertls # # TLSv1 - TLS 1.0, or higher. # TLSv1.1 - TLS1.1, or higher. +# TLSv1.1++ TLS1.1, or higher, without client-initiated renegotiation. # TLSv1.2 - TLS1.2, or higher. +# TLSv1.2++ TLS1.2, or higher, without client-initiated renegotiation. # # The default value is TLSv1. diff --git a/tcpd/libcouriertls.c b/tcpd/libcouriertls.c index 1f5a40f..246b90d 100644 --- a/tcpd/libcouriertls.c +++ b/tcpd/libcouriertls.c @@ -66,12 +66,14 @@ struct proto_ops op_list[] = { #ifdef SSL_OP_NO_TLSv1 #ifdef SSL_OP_NO_TLSv1_1 + { "TLSv1.2++", &SSLv23_method, SSL_OP_ALL|SSL_OP_NO_SSLv2|SSL_OP_NO_SSLv3|SSL_OP_NO_TLSv1|SSL_OP_NO_TLSv1_1|SSL_OP_NO_RENEGOTIATION }, { "TLSv1.2+", &SSLv23_method, SSL_OP_ALL|SSL_OP_NO_SSLv2|SSL_OP_NO_SSLv3|SSL_OP_NO_TLSv1|SSL_OP_NO_TLSv1_1 }, { "TLSv1.2", &SSLv23_method, SSL_OP_ALL|SSL_OP_NO_SSLv2|SSL_OP_NO_SSLv3|SSL_OP_NO_TLSv1|SSL_OP_NO_TLSv1_1 }, #endif #endif #ifdef SSL_OP_NO_TLSv1 + { "TLSv1.1++", &SSLv23_method, SSL_OP_ALL|SSL_OP_NO_SSLv2|SSL_OP_NO_SSLv3|SSL_OP_NO_TLSv1|SSL_OP_NO_RENEGOTIATION }, { "TLSv1.1+", &SSLv23_method, SSL_OP_ALL|SSL_OP_NO_SSLv2|SSL_OP_NO_SSLv3|SSL_OP_NO_TLSv1 }, { "TLSv1.1", &SSLv23_method, SSL_OP_ALL|SSL_OP_NO_SSLv2|SSL_OP_NO_SSLv3|SSL_OP_NO_TLSv1 }, #endif -- cgit v1.2.3