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
..
2023-10-17 11:05:16 +02:00
2024-06-08 14:21:40 +02:00
2024-01-30 10:39:21 +01:00
2023-05-22 18:51:31 +02:00
2023-10-12 09:50:25 +02:00
2022-09-06 16:36:44 +01:00
2022-09-06 16:36:45 +01:00
2023-07-18 14:37:19 +02:00
2024-01-04 16:06:44 +01:00
2023-10-29 19:42:32 +01:00
2022-07-10 19:07:47 +02:00
2024-01-25 17:31:50 +01:00
2024-05-05 21:45:52 +02:00
2024-05-31 10:33:06 +02:00
2024-01-04 22:40:05 +01:00
2023-02-26 01:12:02 +01:00
2023-07-19 15:25:35 +02:00
2024-04-27 12:05:43 +02:00
2023-09-25 23:06:33 +02:00
2022-10-23 18:16:22 +02:00
2024-04-24 23:01:03 +02:00
2024-02-02 17:26:29 +01:00