From: "plaisthos (Code Review)" Date: Tue, 17 Mar 2026 13:32:12 +0000 References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="XLAWINuGTS0="; 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: , Cc: openvpn-devel --XLAWINuGTS0= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable plaisthos has uploaded this change for review. ( http://gerrit.openvpn.net/= c/openvpn/+/1579?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 --- M src/openvpn/ssl_openssl.c 1 file changed, 4 insertions(+), 3 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/79/1579/1 diff --git a/src/openvpn/ssl_openssl.c b/src/openvpn/ssl_openssl.c index 48cbaa8..66f3e91 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,7 +550,7 @@ if (profile) { msg(M_WARN, - "WARNING: OpenSSL 1.1.0 and LibreSSL do not support " + "WARNING: OpenSSL 1.1.0, aws-lc and LibreSSL do not support " "--tls-cert-profile, ignoring user-set profile: '%s'", profile); } -- 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: newchange Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I74841d3611c62d3c59fc839bc73a0c83ce025262 Gerrit-Change-Number: 1579 Gerrit-PatchSet: 1 Gerrit-Owner: plaisthos Gerrit-CC: openvpn-devel --XLAWINuGTS0= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

plaisthos has upl= oaded this change for review.

View Change

Do not support tls_ctx_set_cert_profile on AWS-LC

SSL_CTX_set_se= curity_level does nothing on AWS-LC and gives a deprecated
warning on co= mpile. It is better to give the user a warning than to
effectively silen= tly ignore it as well.

Change-Id: I74841d3611c62d3c59fc839bc73a0c83c= e025262
Signed-off-by: Arne Schwabe <arne@...1227...>
---
M = src/openvpn/ssl_openssl.c
1 file changed, 4 insertions(+), 3 deletions(-= )

git pull ssh://gerrit.openvpn.net:29418/openvp=
n refs/changes/79/1579/1
diff --git a/src/openvpn/ssl_openssl.c b/s=
rc/openvpn/ssl_openssl.c
index 48cbaa8..66f3e91 100644
--- a/src/openvpn/ssl_openssl.c
+++ b/src/openv= pn/ssl_openssl.c
@@ -518,8 +518,9 @@
void<= /span>
tls_ctx_set_cert_profile(struct tls_root_ctx *ctx, const c= har *profile)
{
-#if OPENSSL_VERSION_NUMBER > 0x10100000L \
- && (!defined(LIBRESSL_VERSIO= N_NUMBER) || LIBRESSL_VERSION_NUMBER > 0x3060000fL)
+#if OPENSSL_VERSION_NUMBER > 0x101000= 00L \
+ && (!defined(LIBRESSL_VERSION_NUMB= ER) || LIBRESSL_VERSION_NUMBER > 0x3060000fL) \
+ && !defined(OPENSSL_IS_AWSLC)
/* OpenSSL does not have certificate profiles, but a com= plex set of
* callbacks that we could try to implemen= t to achieve something similar.
* For now, use OpenSS= L's security levels to achieve similar (but not equal)
= @@ -549,7 +550,7 @@
if (profile)
= {
msg(M_WARN,
- "WARNING: OpenSSL 1.1.0 and LibreSSL do n= ot support "
+ = "WARNING: OpenSSL 1.1.0, aws-lc and LibreSSL do not support = "
"--tls-cert-profile, ignoring user= -set profile: '%s'",
profile);
}

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

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I74841d3611c62d3c59fc839bc73= a0c83ce025262
Gerrit-Change-Number: 1579
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --XLAWINuGTS0=--