From: "cron2 (Code Review)" Date: Fri, 13 Oct 2023 20:19:09 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <917af56c40977b1007971776b2a1afd7a00687fb-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="ZybObjyZ1sM="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Add warning for the --show-groups command that some groups are missing List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: flichtenheld , openvpn-devel --ZybObjyZ1sM= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/36= 6?usp=3Demail ) Change subject: Add warning for the --show-groups command that some groups = are missing ...................................................................... Add warning for the --show-groups command that some groups are missing OpenSSL has a weird way of only reporting EC curves that are implemented in a certain way in the list of all EC curves. Note this fact and point out that also the very important curves X448 and X25519 are affected. Change-Id: I86641bf60d62a50e9b2719e809d2429d65c00097 Acked-by: Frank Lichtenheld Message-Id: <20231009105714.34598-1-frank@...2641...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg27= 193.html Signed-off-by: Gert Doering --- M src/openvpn/ssl_openssl.c 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/openvpn/ssl_openssl.c b/src/openvpn/ssl_openssl.c index b5cc9a7..b561e9d 100644 --- a/src/openvpn/ssl_openssl.c +++ b/src/openvpn/ssl_openssl.c @@ -2249,8 +2249,10 @@ void show_available_curves(void) { - printf("Consider using openssl 'ecparam -list_curves' as\n" - "alternative to running this command.\n"); + printf("Consider using 'openssl ecparam -list_curves' as alternative t= o running\n" + "this command.\n" + "Note this output does only list curves/groups that OpenSSL con= siders as\n" + "builtin EC curves. It does not list additional curves nor X448= or X25519\n"); #ifndef OPENSSL_NO_EC EC_builtin_curve *curves =3D NULL; size_t crv_len =3D 0; -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/366?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: I86641bf60d62a50e9b2719e809d2429d65c00097 Gerrit-Change-Number: 366 Gerrit-PatchSet: 8 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-MessageType: merged --ZybObjyZ1sM= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 submitted this change.

View Change

Add warning for the --show-groups command that=
 some groups are missing

OpenSSL has a weird way of only reporting E= C curves that are implemented
in a certain way in the list of all EC cur= ves. Note this fact and point
out that also the very important curves X4= 48 and X25519 are affected.

Change-Id: I86641bf60d62a50e9b2719e809d2= 429d65c00097
Acked-by: Frank Lichtenheld <frank@...2641...>
Mes= sage-Id: <20231009105714.34598-1-frank@...2641...>
URL: https://ww= w.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg27193.html
Sig= ned-off-by: Gert Doering <gert@...1296...>
---
M src/openvpn/ss= l_openssl.c
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/openvpn/ssl_openssl.c b/src/openvpn/ssl_openssl.c
index b5cc9a7..b561e9d 100644
--- a/src/openvpn/= ssl_openssl.c
+++ b/src/openvpn/ssl_openssl.c
@@ -2249,8 +2249,10 @@
void
show_avail= able_curves(void)
{
- printf("Consider using openssl 'ecparam -list_c= urves' as\n"
-= "alternative to running this command.\n");
<= span style=3D"color: hsl(120, 100%, 40%);">+ printf("Consider using= 'openssl ecparam -list_curves' as alternative to running\n"
+ "this= command.\n"
+ = "Note this output does only list curves/groups that OpenSSL c= onsiders as\n"
+= "builtin EC curves. It does not list additional curves nor = X448 or X25519\n");
#ifndef OPENSSL_NO_EC
<= span> EC_builtin_curve *curves =3D NULL;
size_t cr= v_len =3D 0;

To view, visit change 366. To u= nsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I86641bf60d62a50e9b2719e809d= 2429d65c00097
Gerrit-Change-Number: 366
Gerrit-PatchSet: 8
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: merged
--ZybObjyZ1sM=--