openwrt/package/libs
Sean Khan 31ec4515c3 openssl: conditionally disable engine section
Currently, the build option to enable/disable engine support isn't
reflected in the final '/etc/ssl/openssl.cnf' config. It assumes `engines`
is always enabled, producing an error whenever running any
commands in openssl util or programs that explicitly use settings
from '/etc/ssl/openssl.cnf'.

```
➤ openssl version
FATAL: Startup failure (dev note: apps_startup()) for openssl
307D1EA97F000000:error:12800067:lib(37):dlfcn_load:reason(103):crypto/dso/dso_dlfcn.c:118:filename(libengines.so):
Error loading shared library libengines.so: No such file or directory
307D1EA97F000000:error:12800067:lib(37):DSO_load:reason(103):crypto/dso/dso_lib.c:152:
307D1EA97F000000:error:0700006E:lib(14):module_load_dso:reason(110):crypto/conf/conf_mod.c:321:module=engines, path=engines
307D1EA97F000000:error:07000071:lib(14):module_run:reason(113):crypto/conf/conf_mod.c:266:module=engines
```

Build should check for the `CONFIG_OPENSSL_ENGINE` option, and comment out `engines`
if not explicitly enabled.

Example:
```
[openssl_init]
providers = provider_sect
```

After this change, openssl util works correctly.

```
➤ openssl version
OpenSSL 3.0.14 4 Jun 2024 (Library: OpenSSL 3.0.14 4 Jun 2024)
```

Signed-off-by: Sean Khan <datapronix@protonmail.com>
Link: https://github.com/openwrt/openwrt/pull/15661
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-06-22 16:31:23 +02:00
..
argp-standalone
elfutils Revert "elfutils: fix a missing typedef in the last update" 2024-04-15 22:05:24 +02:00
gettext-full gettext-full: update to 0.22.5 2024-04-25 21:33:51 +02:00
gmp
jansson
libbpf libbpf: Update to v1.4.3 2024-06-08 14:21:40 +02:00
libbsd libbsd: update to 0.11.8 2024-01-30 10:39:21 +01:00
libcap
libevent2 libevent2: make cmake use relative imported path 2024-03-13 00:24:43 +00:00
libiconv-full
libjson-c package/libs/libjson-c: fix PKG_CPE_ID 2024-04-27 23:44:20 +02:00
libmd
libmnl
libnetfilter-conntrack
libnfnetlink
libnftnl
libnl
libnl-tiny treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
libpcap
libselinux
libsemanage libaudit: update to 3.1.4, join with daemon and utils, rename 2024-04-29 00:53:43 +02:00
libsepol
libtool
libtraceevent
libtracefs
libubox treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
libunistring
libunwind libunwind: add support for loongarch64 2024-05-04 14:14:24 +08:00
libusb
libxml2 libxml2: update to 2.12.6 2024-05-05 21:45:52 +02:00
mbedtls mbedtls: fix build on GCC 14 2024-05-31 10:33:06 +02:00
mpfr
musl-fts
ncurses
nettle
openssl openssl: conditionally disable engine section 2024-06-22 16:31:23 +02:00
pcre2 package/libs/pcre2: fix PKG_CPE_ID 2024-04-27 12:05:43 +02:00
popt
readline
sysfsutils
toolchain libquadmath: Add libquadmath to the toolchain 2024-06-17 13:12:29 +02:00
uclient uclient: update to Git HEAD (2024-04-19) 2024-04-19 20:06:47 +02:00
udebug treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
ustream-ssl ustream-ssl: update to Git HEAD (2024-04-19) 2024-04-19 18:00:23 +02:00
wolfssl wolfssl: Update to 5.7.0 2024-04-24 23:01:03 +02:00
zlib zlib: update to 1.3.1 2024-02-02 17:26:29 +01:00