All of lore.kernel.org
 help / color / mirror / Atom feed
* [Openvpn-devel] [PATCH] Fix OpenSSL 1.1.1 not using auto ecliptic curve selection
@ 2020-03-28  4:08 Arne Schwabe
  2020-04-01 10:21 ` [Openvpn-devel] [PATCH 2/3] Refactor counting number of element in a : delimited list into function Arne Schwabe
                   ` (4 more replies)
  0 siblings, 5 replies; 22+ messages in thread
From: Arne Schwabe @ 2020-03-28  4:08 UTC (permalink / raw)
  To: openvpn-devel

Commit 8a01147ff attempted to avoid calling the deprecated/noop
operation SSL_CTX_set_ecdh_auto by surrounding it with #ifdef.
Unfortunately, that change also made the return; that would exit
the function no longer being compiled when using OpenSSL 1.1.0+.
As consequence OpenVPN with OpenSSL 1.1.0+ would always set
secp384r1 as ecdh curve unless otherwise specified by ecdh

This patch restores the correct/previous behaviour.
---
 src/openvpn/ssl_openssl.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/openvpn/ssl_openssl.c b/src/openvpn/ssl_openssl.c
index 3f0031ff..4b5ca214 100644
--- a/src/openvpn/ssl_openssl.c
+++ b/src/openvpn/ssl_openssl.c
@@ -678,8 +678,11 @@ tls_ctx_load_ecdh_params(struct tls_root_ctx *ctx, const char *curve_name
         /* OpenSSL 1.0.2 and newer can automatically handle ECDH parameter
          * loading */
         SSL_CTX_set_ecdh_auto(ctx->ctx, 1);
-        return;
+
+        /* OpenSSL 1.1.0 and newer have always ecdh auto loading enabled,
+         * so do nothing */
 #endif
+        return;
 #else
         /* For older OpenSSL we have to extract the curve from key on our own */
         EC_KEY *eckey = NULL;
-- 
2.26.0



^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2020-06-25  6:13 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-28  4:08 [Openvpn-devel] [PATCH] Fix OpenSSL 1.1.1 not using auto ecliptic curve selection Arne Schwabe
2020-04-01 10:21 ` [Openvpn-devel] [PATCH 2/3] Refactor counting number of element in a : delimited list into function Arne Schwabe
2020-04-01 10:21   ` [Openvpn-devel] [PATCH 3/3] Implement tls-groups option to specify eliptic curves/groups Arne Schwabe
2020-04-15 22:31     ` Antonio Quartulli
2020-04-17  7:47       ` Arne Schwabe
2020-04-17  8:09         ` Antonio Quartulli
2020-04-15 12:05   ` [Openvpn-devel] [PATCH 2/3] Refactor counting number of element in a : delimited list into function Antonio Quartulli
2020-04-16 14:46     ` Arne Schwabe
2020-04-15  9:50 ` [Openvpn-devel] [PATCH] Fix OpenSSL 1.1.1 not using auto ecliptic curve selection Antonio Quartulli
2020-04-16 15:26   ` [Openvpn-devel] [PATCH v2 2/3] Refactor counting number of element in a : delimited list into function Arne Schwabe
2020-04-16 15:26     ` [Openvpn-devel] [PATCH v2 3/3] Implement tls-groups option to specify eliptic curves/groups Arne Schwabe
2020-06-04 21:25       ` Antonio Quartulli
2020-06-04 22:15         ` Arne Schwabe
2020-04-18 21:11     ` [Openvpn-devel] [PATCH v2 2/3] Refactor counting number of element in a : delimited list into function Antonio Quartulli
2020-04-19 10:15     ` [Openvpn-devel] [PATCH applied] " Gert Doering
2020-04-15 10:15 ` [Openvpn-devel] [PATCH applied] Re: Fix OpenSSL 1.1.1 not using auto ecliptic curve selection Gert Doering
2020-06-04 22:16 ` [Openvpn-devel] [PATCH v3 3/3] Implement tls-groups option to specify eliptic curves/groups Arne Schwabe
2020-06-04 23:21   ` Arne Schwabe
2020-06-22 14:02   ` [Openvpn-devel] [PATCH v4 " Arne Schwabe
2020-06-23  9:21     ` Antonio Quartulli
2020-06-25  6:13       ` Antonio Quartulli
2020-06-04 23:19 ` [Openvpn-devel] [PATCH v3 " Arne Schwabe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.