From: "cron2 (Code Review)" Date: Thu, 26 Mar 2026 14:10:52 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <534dd5f6f3953b3327d96623dc6f9ee1f9209223-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="QuM2+NFQXhE="; 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 , flichtenheld Cc: openvpn-devel --QuM2+NFQXhE= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#3) to the change originally created by= plaisthos. ( http://gerrit.openvpn.net/c/openvpn/+/1579?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by flichtenheld 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(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/79/1579/3 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: newpatchset 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 --QuM2+NFQXhE= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 upl= oaded patch set #3 to the change originally created by plaisthos.<= /p>

Vi= ew Change

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

Do not support tls_ctx_set_c=
ert_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.

Ch= ange-Id: I74841d3611c62d3c59fc839bc73a0c83ce025262
Signed-off-by: Arne S= chwabe <arne@...1227...>
Acked-by: Frank Lichtenheld <frank@...493...= 2641...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1579
M= essage-Id: <20260322111207.8346-1-gert@...1296...>
URL: https://ww= w.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg36243.html
Sig= ned-off-by: Gert Doering <gert@...1296...>
---
M src/openvpn/ss= l_openssl.c
1 file changed, 5 insertions(+), 4 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes=
/79/1579/3
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)<= /span>
{
-#if= OPENSSL_VERSION_NUMBER > 0x10100000L \
- && (!defined(LIBRESSL_VERSION_NUMBER) || L= IBRESSL_VERSION_NUMBER > 0x3060000fL)
+#if OPENSSL_VERSION_NUMBER > 0x10100000L = \
+ && (!defined(LIBRESSL_VERSION_NUMBER) || LIBRESS= L_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 s= omething similar.
* For now, use OpenSSL's securi= ty levels to achieve similar (but not equal)
@@ -549,8 +550= ,8 @@
if (profile)
{
msg(M_WARN,

- "= --tls-cert-profile, ignoring user-set profile: '%s'",+ "WARNING: O= penSSL 1.1.0, AWS-LC and LibreSSL < 3.6.0 do not "
+ "support --tls-cert= -profile, ignoring user-set profile: '%s'",
= profile);
}
#endif /* if O= PENSSL_VERSION_NUMBER > 0x10100000L */

=

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

Gerrit-MessageType: newpatchset
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>
= --QuM2+NFQXhE=--