ssl-util: support OpenSSL 4

OpenSSL 4 broke ABI, so we need to look for both SONAMEs.
Try libssl.so.3 first, and fallback to libssl.so.4,
so that the older and more stable version is used if both
are installed, giving distros time to fix regressions.

Follow-up for ccdd42351f

Fixes https://github.com/systemd/systemd/issues/42675
This commit is contained in:
Luca Boccassi
2026-06-22 09:54:09 +01:00
parent 864f559b37
commit 6caa50183e
2 changed files with 40 additions and 27 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ int dlopen_libssl(int log_level);
SD_ELF_NOTE_DLOPEN("libssl", \
"Support for TLS", \
priority, \
"libssl.so.3")
"libssl.so.3", "libssl.so.4")
#define DLOPEN_LIBSSL(log_level, priority) \
({ \