1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-18 13:29:16 +02:00
openwrt/package
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
..
base-files Revert "apk: limit CONFIG_IPK_FILES_CHECKSUMS config to OPKG" 2024-06-20 05:52:05 +02:00
boot kexec-tools: fix multiple compile errors 2024-06-08 14:08:38 +02:00
devel ply: add dynamic tracing package using BPF 2024-05-31 11:51:45 +02:00
firmware firmware: intel-microcode: update to 20240531 2024-06-15 11:20:13 +02:00
kernel generic: backport pending driver for Winchip CH348 USB serial 2024-06-20 01:11:09 +01:00
libs openssl: conditionally disable engine section 2024-06-22 16:31:23 +02:00
network wifi-scripts: ensure get_freq returns int (iw-6.9) 2024-06-22 11:34:46 +02:00
system apk: host: make the help available 2024-06-11 23:58:20 +02:00
utils ucode: update to Git HEAD (2024-06-18) 2024-06-21 11:52:26 +02:00
Makefile build: package: fix missing host apk dependency 2024-06-11 23:58:14 +02:00