Skip to content

Commit

Permalink
configure: disable engines if OPENSSL_NO_ENGINE is defined
Browse files Browse the repository at this point in the history
Starting with LibreSSL 3.8.1 the engines have been removed which causes
the OpenVPN build to fail. This can be solved during configure by
checking if OPENSSL_NO_ENGINE is defined in opensslconf.h.

Signed-off-by: orbea <[email protected]>
Acked-by: Gert Doering <[email protected]>
Message-Id: <[email protected]>
URL: https://www.mail-archive.com/[email protected]/msg26994.html
Signed-off-by: Gert Doering <[email protected]>
  • Loading branch information
orbea authored and cron2 committed Sep 10, 2023
1 parent 5f910a4 commit 34bf473
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -927,11 +927,17 @@ if test "${with_crypto_library}" = "openssl"; then
[AC_LANG_PROGRAM(
[[
#include <openssl/opensslv.h>
#include <openssl/opensslconf.h>
]],
[[
/* Version encoding: MNNFFPPS - see opensslv.h for details */
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
#error Engine supported disabled by default in OpenSSL 3.0+
#error Engine support disabled by default in OpenSSL 3.0+
#endif
/* BoringSSL and LibreSSL >= 3.8.1 removed engine support */
#ifdef OPENSSL_NO_ENGINE
#error Engine support disabled in openssl/opensslconf.h
#endif
]]
)],
Expand Down

0 comments on commit 34bf473

Please sign in to comment.