From: "plaisthos (Code Review)" Date: Fri, 1 Dec 2023 12:19:04 +0000 In-Reply-To: References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="TYNdh9HyFQY="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Extend the error message when TLS 1.0 PRF fails List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: openvpn-devel --TYNdh9HyFQY= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld. Hello flichtenheld,=20 I'd like you to reexamine a change. Please visit http://gerrit.openvpn.net/c/openvpn/+/456?usp=3Demail to look at the new patch set (#7). The following approvals got outdated and were removed: Code-Review-1 by flichtenheld Change subject: Extend the error message when TLS 1.0 PRF fails ...................................................................... Extend the error message when TLS 1.0 PRF fails This error will probably become more and more common in the future when more and more systems will drop TLS 1.0 PRF support. We are already seeing people stumbling upon this (see GitHub issue #460) The current error messages TLS Error: PRF calcuation failed TLS Error: generate_key_expansion failed are not very helpful for people that do not have deep understanding of TLS or the OpenVPN protocol. Improve this message to give a normal user a chance to understand that the peer needs to be OpenVPN 2.6.x or newer. Change-Id: Ib3b64b52beed69dc7740f191b0e9a9dc9af5b7f3 Signed-off-by: Arne Schwabe --- M src/openvpn/ssl.c 1 file changed, 6 insertions(+), 1 deletion(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/56/456/7 diff --git a/src/openvpn/ssl.c b/src/openvpn/ssl.c index 400230c..6ae3db4 100644 --- a/src/openvpn/ssl.c +++ b/src/openvpn/ssl.c @@ -1641,7 +1641,12 @@ { if (!generate_key_expansion_openvpn_prf(session, &key2)) { - msg(D_TLS_ERRORS, "TLS Error: PRF calcuation failed"); + msg(D_TLS_ERRORS, "TLS Error: PRF calculation failed. Your sys= tem " + "might not support the old TLS 1.0 PRF calculation anymore= or " + "the policy does not allow it (e.g. running in FIPS mode).= " + "The peer did not announce support for the modern TLS Expo= rt " + "feature that replaces the TLS 1.0 PRF (requires OpenVPN " + "2.6.x or higher)"); goto exit; } } -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/456?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: Ib3b64b52beed69dc7740f191b0e9a9dc9af5b7f3 Gerrit-Change-Number: 456 Gerrit-PatchSet: 7 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: flichtenheld Gerrit-MessageType: newpatchset --TYNdh9HyFQY= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld.

plaisthos uploaded patch set #7 to this change.

<= a href=3D"http://gerrit.openvpn.net/c/openvpn/+/456?usp=3Demail">View Chang= e

The following approvals got outdated and were removed: Code-Review-1 by flichtenheld

Extend the error message when TLS 1.0 PRF fai=
ls

This error will probably become more and more common in the futur= e when
more and more systems will drop TLS 1.0 PRF support. We are alrea= dy
seeing people stumbling upon this (see GitHub issue #460)

The = current error messages

TLS Error: PRF calcuation failed
TLS E= rror: generate_key_expansion failed

are not very helpful for people = that do not have deep understanding
of TLS or the OpenVPN protocol. Impr= ove this message to give a normal
user a chance to understand that the p= eer needs to be OpenVPN 2.6.x or
newer.

Change-Id: Ib3b64b52beed6= 9dc7740f191b0e9a9dc9af5b7f3
Signed-off-by: Arne Schwabe <arne@...1830...= ...>
---
M src/openvpn/ssl.c
1 file changed, 6 insertions(+), 1= deletion(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs=
/changes/56/456/7
diff --git a/src/openvpn/ssl.c b/src/openvpn/ssl.=
c
index 400230c..6ae3db4 100644
--- a/src/o= penvpn/ssl.c
+++ b/src/openvpn/ssl.c
@@ -16= 41,7 +1641,12 @@
{
if (!gener= ate_key_expansion_openvpn_prf(session, &key2))
= {
- msg(D_T= LS_ERRORS, "TLS Error: PRF calcuation failed");
+ msg(D_TLS_ERRORS, "T= LS Error: PRF calculation failed. Your system "
+ "might not support t= he old TLS 1.0 PRF calculation anymore or "
+ "the policy does not allo= w it (e.g. running in FIPS mode). "
+ "The peer did not announce suppor= t for the modern TLS Export "
+ "feature that replaces the TLS 1.0 PRF = (requires OpenVPN "
+ "2.6.x or higher)");
= goto exit;
}
}

To view, visit change 456. To unsubscribe, or for he= lp writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ib3b64b52beed69dc7740f191b0e= 9a9dc9af5b7f3
Gerrit-Change-Number: 456
Gerrit-PatchSet: 7
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-MessageType: newpatchset
--TYNdh9HyFQY=--