From: "plaisthos (Code Review)" Date: Tue, 17 Mar 2026 14:43:39 +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="ZpGrDZm4eZw="; 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: flichtenheld Cc: openvpn-devel --ZpGrDZm4eZw= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. Hello flichtenheld, I'd like you to reexamine a change. Please visit http://gerrit.openvpn.net/c/openvpn/+/1579?usp=3Demail to look at the new patch set (#2). The following approvals got outdated and were removed: Code-Review-1 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 --- 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/2 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: 2 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld --ZpGrDZm4eZw= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: flichtenheld, plaisthos.

plaisthos uploaded patch set #2 to this change.

<= a href=3D"http://gerrit.openvpn.net/c/openvpn/+/1579?usp=3Demail">View Chan= ge

The following approvals got outdated and were removed: Code-Review-1 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...>
---
M src/openvpn/ssl_openssl.c
1 f= ile changed, 5 insertions(+), 4 deletions(-)

git=
 pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/79/1579/2
diff --git a/src/openvpn/ssl_openssl.c b/src/openvpn/ssl_openssl.c<= br>index 48cbaa8..a26663a 100644
--- a/src/openvpn/ss= l_openssl.c
+++ b/src/openvpn/ssl_openssl.c
@@ -518,8 +518,9 @@
void
tls_ctx_set_cer= t_profile(struct tls_root_ctx *ctx, const char *profile)
{=
-#if OPENSSL_VERSION_N= UMBER > 0x10100000L \
+ = && (!defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER &= gt; 0x3060000fL) \
+ = && !defined(OPENSSL_IS_AWSLC)
/* OpenSSL do= es not have certificate profiles, but a complex set of
= * callbacks that we could try to implement to achieve something similar.<= /span>
* For now, use OpenSSL's security levels to achie= ve similar (but not equal)
@@ -549,8 +550,8 @@
if (profile)

{
msg(M= _WARN,
- &qu= ot;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_NUM= BER > 0x10100000L */

To view, visit = change 1= 579. 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: 2
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: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
= --ZpGrDZm4eZw=--