lighttpd: fix missing support for OpenSSL crypto library

Currently, it is not feasible to configure lighttpd to use OpenSSL as
its internal crypto library. Instead, one must rely on alternative
crypto libraries such as Nettle or mbedTLS. This setup is not ideal in
scenarios where a single crypto library is preferred. To address this
issue, lets propose introducing OpenSSL as an additional configuration
option. This change will provide the necessary dependency resolution,
fixing:

  Package lighttpd is missing dependencies for the following libraries:
  libcrypto.so.3

Fixes: #23794
Signed-off-by: Petr Štetiar <ynezz@true.cz>
This commit is contained in:
Petr Štetiar 2024-04-24 19:28:40 +00:00
parent 13bcb52870
commit dc56fbe479
No known key found for this signature in database
GPG Key ID: 58EE120F30CC02D3
1 changed files with 6 additions and 0 deletions

View File

@ -49,10 +49,12 @@ PKG_CONFIG_DEPENDS:= \
CONFIG_LIGHTTPD_CRYPTOLIB_NONE \
CONFIG_LIGHTTPD_CRYPTOLIB_NETTLE \
CONFIG_LIGHTTPD_CRYPTOLIB_MBEDTLS \
CONFIG_LIGHTTPD_CRYPTOLIB_OPENSSL \
CONFIG_LIGHTTPD_CRYPTOLIB_WOLFSSL
PKG_BUILD_DEPENDS:= \
LIGHTTPD_PCRE2:pcre2 \
LIGHTTPD_CRYPTOLIB_OPENSSL:libopenssl \
LIGHTTPD_CRYPTOLIB_NETTLE:nettle \
LIGHTTPD_CRYPTOLIB_MBEDTLS:mbedtls \
LIGHTTPD_CRYPTOLIB_WOLFSSL:wolfssl
@ -65,6 +67,7 @@ include $(INCLUDE_DIR)/meson.mk
cryptolibdep= \
+LIGHTTPD_CRYPTOLIB_NETTLE:libnettle \
+LIGHTTPD_CRYPTOLIB_MBEDTLS:libmbedtls \
+LIGHTTPD_CRYPTOLIB_OPENSSL:libopenssl \
+LIGHTTPD_CRYPTOLIB_WOLFSSL:libwolfssl
ifdef CONFIG_LIGHTTPD_CRYPTOLIB_MBEDTLS
TARGET_CPPFLAGS += -DFORCE_MBEDTLS_CRYPTO
@ -131,6 +134,9 @@ if PACKAGE_lighttpd
config LIGHTTPD_CRYPTOLIB_NETTLE
bool "libnettle"
config LIGHTTPD_CRYPTOLIB_OPENSSL
bool "libopenssl"
config LIGHTTPD_CRYPTOLIB_MBEDTLS
bool "libmbedtls"