]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Add --with-openssl-engine autoconf option (auto|yes|no)
authorArne Schwabe <arne@rfc2549.org>
Thu, 12 May 2022 12:14:27 +0000 (14:14 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 13 May 2022 06:52:38 +0000 (08:52 +0200)
commitc5d61b345e21860b2357206848535a8452754ad8
tree8a99c139447bc210a158d0d4620867831c7d44a0
parentdea694099ff223feb63199bd0ca7afd74504711d
Add --with-openssl-engine autoconf option (auto|yes|no)

This is a cherry-pick to release2.5 from 0df2261da. The OpenSSL engine
tests fail  otherwise and it is good to have the same behaviour as in
master/2.6

This allows to select engine support at configure time. For OpenSSL 1.1 the
default is not changed and we detect if engine support is available.

Engine support is deprecated in OpenSSL 3.0 and for OpenSSL 3.0 the default
is to disable engine support as engine support is deprecated and generates
compiler warnings which in turn also break -Werror.

By using --with-openssl-engine=no or --with-openssl-engine=yes engine
support can be forced on or off. If it is enabled but not detected an
error will be thown.

This commit cleans up the configure logic a bit and removes the
ENGINE_cleanup checks as we can just assume that it will be also
available as macro or function if the other engine functions are
available. Before the cleanup we would only check for the existance
of engine.h if ENGINE_cleanup was not found.

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20220512121429.2096164-6-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24332.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Changes.rst
configure.ac