From: "MaxF (Code Review)" Date: Fri, 14 Jun 2024 13:14:58 +0000 In-Reply-To: References: Reply-To: max@...2606..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <541adc008c7374b1b1e2eee0f51e108046d10452-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="xVqrblBvp1U="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: mbedtls: Remove support for old TLS versions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos , flichtenheld Cc: openvpn-devel --xVqrblBvp1U= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. Hello flichtenheld, plaisthos, I'd like you to reexamine a change. Please visit http://gerrit.openvpn.net/c/openvpn/+/682?usp=3Demail to look at the new patch set (#2). Change subject: mbedtls: Remove support for old TLS versions ...................................................................... mbedtls: Remove support for old TLS versions Recent versions of mbedtls have dropped support for TLS 1.0 and 1.1. Rather than checking which versions are supported, drop support for everything before 1.2. Change-Id: Ia3883a26ac26df6bbb5353fb074a2e0f814737be Signed-off-by: Max Fillinger --- M src/openvpn/ssl_mbedtls.c 1 file changed, 1 insertion(+), 19 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/82/682/2 diff --git a/src/openvpn/ssl_mbedtls.c b/src/openvpn/ssl_mbedtls.c index a68588e..ec9ec13 100644 --- a/src/openvpn/ssl_mbedtls.c +++ b/src/openvpn/ssl_mbedtls.c @@ -1040,12 +1040,8 @@ { #if defined(MBEDTLS_SSL_PROTO_TLS1_2) return TLS_VER_1_2; -#elif defined(MBEDTLS_SSL_PROTO_TLS1_1) - return TLS_VER_1_1; -#elif defined(MBEDTLS_SSL_PROTO_TLS1) - return TLS_VER_1_0; #else /* defined(MBEDTLS_SSL_PROTO_TLS1_2) */ - #error "mbedtls is compiled without support for TLS 1.0, 1.1 and 1.2." + #error "mbedtls is compiled without support for TLS 1.2." #endif /* defined(MBEDTLS_SSL_PROTO_TLS1_2) */ } @@ -1067,20 +1063,6 @@ switch (tls_ver) { -#if defined(MBEDTLS_SSL_PROTO_TLS1) - case TLS_VER_1_0: - *major =3D MBEDTLS_SSL_MAJOR_VERSION_3; - *minor =3D MBEDTLS_SSL_MINOR_VERSION_1; - break; -#endif - -#if defined(MBEDTLS_SSL_PROTO_TLS1_1) - case TLS_VER_1_1: - *major =3D MBEDTLS_SSL_MAJOR_VERSION_3; - *minor =3D MBEDTLS_SSL_MINOR_VERSION_2; - break; -#endif - #if defined(MBEDTLS_SSL_PROTO_TLS1_2) case TLS_VER_1_2: *major =3D MBEDTLS_SSL_MAJOR_VERSION_3; -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/682?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ia3883a26ac26df6bbb5353fb074a2e0f814737be Gerrit-Change-Number: 682 Gerrit-PatchSet: 2 Gerrit-Owner: MaxF Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-MessageType: newpatchset --xVqrblBvp1U= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos.

MaxF uploaded patch set #2 to this change.

View Change=

mbedtls: Remove support for old TLS versions

Recent versions of mbe= dtls have dropped support for TLS 1.0 and 1.1.
Rather than checking whic= h versions are supported, drop support for
everything before 1.2.
Change-Id: Ia3883a26ac26df6bbb5353fb074a2e0f814737be
Signed-off-by: Max= Fillinger <maximilian.fillinger@...2507...>
---
M src/openvpn/= ssl_mbedtls.c
1 file changed, 1 insertion(+), 19 deletions(-)

=
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/82/682/2
=
diff --git a/src/openvpn/ssl_mbedtls.c b/src/openvpn/ssl_mbedtls.c
index a68588e..ec9ec13 100644
--- a/src/openvpn/= ssl_mbedtls.c
+++ b/src/openvpn/ssl_mbedtls.c
@@ -1040,12 +1040,8 @@
{
#if defined(M= BEDTLS_SSL_PROTO_TLS1_2)
return TLS_VER_1_2;-#elif defined(MBEDTLS_SSL_PROTO= _TLS1_1)
- return TL= S_VER_1_1;
-#elif defin= ed(MBEDTLS_SSL_PROTO_TLS1)
- return TLS_VER_1_0;
#else /* defined(MBEDTLS_SSL_= PROTO_TLS1_2) */
- #= error "mbedtls is compiled without support for TLS 1.0, 1.1 and 1.2.&q= uot;
+ #error &quo= t;mbedtls is compiled without support for TLS 1.2."
#= endif /* defined(MBEDTLS_SSL_PROTO_TLS1_2) */
}
=
@@ -1067,20 +1063,6 @@

= switch (tls_ver)
{
-#if defined(MBEDTLS_SSL_PROTO_TLS1)
= - case TLS_VER_1_0:=
- *major =3D MBEDT= LS_SSL_MAJOR_VERSION_3;
- *minor =3D MBEDTLS_SSL_MINOR_VERSION_1;
- break;
-#endif
-
-#if def= ined(MBEDTLS_SSL_PROTO_TLS1_1)
- case TLS_VER_1_1:
- *major =3D MBEDTLS_SSL_MAJOR_VERSION_3;
= - *minor =3D MBEDTLS_S= SL_MINOR_VERSION_2;
- = break;
-#endi= f
-
#i= f defined(MBEDTLS_SSL_PROTO_TLS1_2)
case TLS_VER_1= _2:
*major =3D MBEDTLS_SSL_MAJOR_VERSION_3;

To view, visit change 682. To unsubscribe, or = for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia3883a26ac26df6bbb5353fb074= a2e0f814737be
Gerrit-Change-Number: 682
Gerrit-PatchSet: 2
Gerrit-Owner: MaxF <max@...2606...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-MessageType: newpatchset
--xVqrblBvp1U=--