From: "cron2 (Code Review)" Date: Thu, 26 Mar 2026 14:10:54 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <534dd5f6f3953b3327d96623dc6f9ee1f9209223-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="Zi+knNkI2Bg="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Do not support tls_ctx_set_cert_profile on AWS-LC List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: flichtenheld , openvpn-devel --Zi+knNkI2Bg= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/15= 79?usp=3Demail ) Change subject: Do not support tls_ctx_set_cert_profile on AWS-LC ...................................................................... Do not support tls_ctx_set_cert_profile on AWS-LC SSL_CTX_set_security_level does nothing on AWS-LC and gives a deprecated warning on compile. It is better to give the user a warning than to effectively silently ignore it as well. Change-Id: I74841d3611c62d3c59fc839bc73a0c83ce025262 Signed-off-by: Arne Schwabe Acked-by: Frank Lichtenheld Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1579 Message-Id: <20260322111207.8346-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg36= 243.html Signed-off-by: Gert Doering --- M src/openvpn/ssl_openssl.c 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/openvpn/ssl_openssl.c b/src/openvpn/ssl_openssl.c index 48cbaa8..a26663a 100644 --- a/src/openvpn/ssl_openssl.c +++ b/src/openvpn/ssl_openssl.c @@ -518,8 +518,9 @@ void tls_ctx_set_cert_profile(struct tls_root_ctx *ctx, const char *profile) { -#if OPENSSL_VERSION_NUMBER > 0x10100000L \ - && (!defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER > 0x3= 060000fL) +#if OPENSSL_VERSION_NUMBER > 0x10100000L = \ + && (!defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER > 0x3= 060000fL) \ + && !defined(OPENSSL_IS_AWSLC) /* OpenSSL does not have certificate profiles, but a complex set of * callbacks that we could try to implement to achieve something simil= ar. * For now, use OpenSSL's security levels to achieve similar (but not = equal) @@ -549,8 +550,8 @@ if (profile) { msg(M_WARN, - "WARNING: OpenSSL 1.1.0 and LibreSSL do not support " - "--tls-cert-profile, ignoring user-set profile: '%s'", + "WARNING: OpenSSL 1.1.0, AWS-LC and LibreSSL < 3.6.0 do not " + "support --tls-cert-profile, ignoring user-set profile: '%s'", profile); } #endif /* if OPENSSL_VERSION_NUMBER > 0x10100000L */ -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1579?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: merged Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I74841d3611c62d3c59fc839bc73a0c83ce025262 Gerrit-Change-Number: 1579 Gerrit-PatchSet: 3 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel --Zi+knNkI2Bg= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 sub= mitted this change.

View Change

Do not support tls_ctx_set_cert_profile on AWS-L=
C

SSL_CTX_set_security_level does nothing on AWS-LC and gives a depr= ecated
warning on compile. It is better to give the user a warning than = to
effectively silently ignore it as well.

Change-Id: I74841d3611= c62d3c59fc839bc73a0c83ce025262
Signed-off-by: Arne Schwabe <arne@...1386...= 227...>
Acked-by: Frank Lichtenheld <frank@...2641...>
Gerri= t URL: https://gerrit.openvpn.net/c/openvpn/+/1579
Message-Id: <20260= 322111207.8346-1-gert@...1296...>
URL: https://www.mail-archive.com/o= penvpn-devel@lists.sourceforge.net/msg36243.html
Signed-off-by: Gert Doe= ring <gert@...1296...>
---
M src/openvpn/ssl_openssl.c
1 fil= e changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/openvpn/ssl_openssl.c b/src/openvpn/ssl_openssl.c
index 48cbaa8..a26663a 100644
--- a/src/openvpn/= ssl_openssl.c
+++ b/src/openvpn/ssl_openssl.c
@@ -518,8 +518,9 @@
void
tls_ctx_set_c= ert_profile(struct tls_root_ctx *ctx, const char *profile)
= {
-#if OPENSSL_VERSION= _NUMBER > 0x10100000L \
- && (!defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_= NUMBER > 0x3060000fL)
+#if OPENSSL_VERSION_NUMBER > 0x10100000L = \
+ = && (!defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER= > 0x3060000fL) \
= + && !defined(OPENSSL_IS_AWSLC)
/* OpenSSL = does not have certificate profiles, but a complex set of
= * callbacks that we could try to implement to achieve something similar= .
* For now, use OpenSSL's security levels to ach= ieve similar (but not equal)
@@ -549,8 +550,8 @@
= if (profile)
{
msg= (M_WARN,
- &= quot;WARNING: OpenSSL 1.1.0 and LibreSSL do not support "
- "--tls-cert-profi= le, ignoring user-set profile: '%s'",
+ "WARNING: OpenSSL 1.1.0, AW= S-LC and LibreSSL < 3.6.0 do not "
+ "support --tls-cert-profile, ignori= ng user-set profile: '%s'",
profi= le);
}
#endif /* if OPENSSL_VERSION_N= UMBER > 0x10100000L */

To view, visi= t change= 1579. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I74841d3611c62d3c59fc839bc73= a0c83ce025262
Gerrit-Change-Number: 1579
Gerrit-PatchSet: 3
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --Zi+knNkI2Bg=--