From: "cron2 (Code Review)" Date: Mon, 8 Dec 2025 21:38:40 +0000 In-Reply-To: References: Reply-To: gert@...1296..., 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="IADk/8J/BoI="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[release/2.6]: configure.ac: Remove use of PKCS11_HELPER_LIBS in mbedTLS checks List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld , plaisthos Cc: openvpn-devel --IADk/8J/BoI= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#2) to the change originally created by= flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1423?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by cron2 Change subject: configure.ac: Remove use of PKCS11_HELPER_LIBS in mbedTLS c= hecks ...................................................................... configure.ac: Remove use of PKCS11_HELPER_LIBS in mbedTLS checks This code was copied over and over since many years, since commit 9a3f670248d6f519a399e65a7232e2196b5115db ("Fixed autoconf script to properly detect missing pkcs11 with polarssl"). It is unclear what exact purpose it served back then but probably it is obsolete. It is definitely wrong since it means that you get PKCS11_HELPER_LIBS even if you do not specify --enable-pkcs11. Change-Id: I317be5253d6563906dd3826421dc81f737beba76 Signed-off-by: Frank Lichtenheld Acked-by: Arne Schwabe Message-Id: <20250716151857.385959-1-frank@...2641...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg32= 187.html Signed-off-by: Gert Doering Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1423 (cherry picked from commit ed690d1d58792f70b86b75b00c09df2ad96babca) Message-Id: <20251208194242.17520-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34= 913.html Signed-off-by: Gert Doering --- M configure.ac 1 file changed, 8 insertions(+), 12 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/23/1423/2 diff --git a/configure.ac b/configure.ac index 307329d..e77fd47 100644 --- a/configure.ac +++ b/configure.ac @@ -801,14 +801,6 @@ ;; esac -PKG_CHECK_MODULES( - [PKCS11_HELPER], - [libpkcs11-helper-1 >=3D 1.11], - [have_pkcs11_helper=3D"yes"], - [] -) - - if test "$enable_dco" !=3D "no"; then enable_dco_arg=3D"$enable_dco" if test "${enable_iproute2}" =3D "yes"; then @@ -1022,13 +1014,12 @@ [mbedtls_ssl_init], [MBEDTLS_LIBS=3D"-lmbedtls -lmbedx509 -lmbedcrypto"], [AC_MSG_ERROR([Could not find mbed TLS.])], - [${PKCS11_HELPER_LIBS}] ) fi fi - CFLAGS=3D"${MBEDTLS_CFLAGS} ${PKCS11_HELPER_CFLAGS} ${CFLAGS}" - LIBS=3D"${MBEDTLS_LIBS} ${PKCS11_HELPER_LIBS} ${LIBS}" + CFLAGS=3D"${MBEDTLS_CFLAGS} ${CFLAGS}" + LIBS=3D"${MBEDTLS_LIBS} ${LIBS}" AC_MSG_CHECKING([mbedtls version]) AC_COMPILE_IFELSE( @@ -1399,7 +1390,12 @@ fi if test "${enable_pkcs11}" =3D "yes"; then - test "${have_pkcs11_helper}" !=3D "yes" && AC_MSG_ERROR([PKCS11 enabled b= ut libpkcs11-helper is missing]) + PKG_CHECK_MODULES( + [PKCS11_HELPER], + [libpkcs11-helper-1 >=3D 1.11], + [have_pkcs11_helper=3D"yes"], + [AC_MSG_ERROR([PKCS11 enabled but libpkcs11-helper is missing])] + ) OPTIONAL_PKCS11_HELPER_CFLAGS=3D"${PKCS11_HELPER_CFLAGS}" OPTIONAL_PKCS11_HELPER_LIBS=3D"${PKCS11_HELPER_LIBS}" AC_DEFINE([ENABLE_PKCS11], [1], [Enable PKCS11]) -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1423?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: release/2.6 Gerrit-Change-Id: I317be5253d6563906dd3826421dc81f737beba76 Gerrit-Change-Number: 1423 Gerrit-PatchSet: 2 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel --IADk/8J/BoI= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 upl= oaded patch set #2 to the change originally created by flichtenhel= d.

View Change

The following approvals got outdated and were remove= d: Code-Review+2 by cron2

configure.ac: Remove use of PKCS11_=
HELPER_LIBS in mbedTLS checks

This code was copied over and over sin= ce many years,
since commit 9a3f670248d6f519a399e65a7232e2196b5115db
= ("Fixed autoconf script to properly detect missing pkcs11
with pola= rssl"). It is unclear what exact purpose it
served back then but pr= obably it is obsolete. It is
definitely wrong since it means that you ge= t
PKCS11_HELPER_LIBS even if you do not specify
--enable-pkcs11.
<= br>Change-Id: I317be5253d6563906dd3826421dc81f737beba76
Signed-off-by: F= rank Lichtenheld <frank@...2641...>
Acked-by: Arne Schwabe <arn= e-openvpn@...1227...>
Message-Id: <20250716151857.385959-1-frank@...220...= ..2641...>
URL: https://www.mail-archive.com/openvpn-devel@...1439...= ceforge.net/msg32187.html
Signed-off-by: Gert Doering <gert@...2132...= .>
Acked-by: Gert Doering <gert@...1296...>
Gerrit URL: http= s://gerrit.openvpn.net/c/openvpn/+/1423
(cherry picked from commit ed690= d1d58792f70b86b75b00c09df2ad96babca)
Message-Id: <20251208194242.1752= 0-1-gert@...1296...>
URL: https://www.mail-archive.com/openvpn-devel@= lists.sourceforge.net/msg34913.html
Signed-off-by: Gert Doering <gert= @...1296...>
---
M configure.ac
1 file changed, 8 insertions(+)= , 12 deletions(-)

git pull ssh://gerrit.openvpn.=
net:29418/openvpn refs/changes/23/1423/2
diff --git a/configure.ac =
b/configure.ac
index 307329d..e77fd47 100644
--- a/configure.ac
+++ b/configure.ac
@@ = -801,14 +801,6 @@
;;
esac

-PKG_CHECK_MODULES= (
- [PKCS11_HELPER],
- [libpkcs11-helper-1 >= ;=3D 1.11],
- [have_pkc= s11_helper=3D"yes"],
- []
-)<= br>-
-
if test "$enable_dco" = !=3D "no"; then
enable_dco_arg=3D"$enable_= dco"
if test "${enable_iproute2}" =3D &quo= t;yes"; then
@@ -1022,13 +1014,12 @@
= [mbedtls_ssl_init],
[MBEDTLS_LIBS=3D"-lmbedtl= s -lmbedx509 -lmbedcrypto"],
[AC_MSG_ERROR([Could= not find mbed TLS.])],
- [${PKCS11_HELPER_LIBS}]
)
fi
fi

- CFLAGS=3D"${MBEDTLS_CFLAGS} ${PKCS11_HELPER_CFLAGS} $= {CFLAGS}"
- LIBS= =3D"${MBEDTLS_LIBS} ${PKCS11_HELPER_LIBS} ${LIBS}"
+ CFLAGS=3D"${MBEDTLS_CFLAGS} = ${CFLAGS}"

+ LIB= S=3D"${MBEDTLS_LIBS} ${LIBS}"

= AC_MSG_CHECKING([mbedtls version])
AC_COMPILE_IFELSE(
@@ -1399,7 +1390,12 @@
fi
<= /span>
if test "${enable_pkcs11}" =3D "yes"; = then
- test "${hav= e_pkcs11_helper}" !=3D "yes" && AC_MSG_ERROR([PKCS11= enabled but libpkcs11-helper is missing])
+ PKG_CHECK_MODULES(
+ [PKCS11_HELPER],
+ [libpkcs11-helper-1 >=3D 1.11],
+ [have_pkcs11_helper=3D"yes&qu= ot;],
+ [AC_MSG_ERRO= R([PKCS11 enabled but libpkcs11-helper is missing])]
+ )
OPTIONAL_PKCS11_HELP= ER_CFLAGS=3D"${PKCS11_HELPER_CFLAGS}"
OPTIONAL_= PKCS11_HELPER_LIBS=3D"${PKCS11_HELPER_LIBS}"
AC= _DEFINE([ENABLE_PKCS11], [1], [Enable PKCS11])

<= /pre>

To view, visit change 1423. To unsubscribe, or for help writing mail fi= lters, visit set= tings.

=
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I317be5253d6563906dd3826421d= c81f737beba76
Gerrit-Change-Number: 1423
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --IADk/8J/BoI=--