crypto-util: support OpenSSL 4

OpenSSL 4 broke ABI, so we need to look for both SONAMEs.
Try libcrypto.so.3 first, and fallback to libcrypto.so.4,
so that the older and more stable version is used if both
are installed, giving distros time to fix regressions.
This commit is contained in:
Luca Boccassi
2026-06-19 13:58:52 +01:00
parent 98943422b5
commit ccdd42351f
2 changed files with 15 additions and 3 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ int dlopen_libcrypto(int log_level);
SD_ELF_NOTE_DLOPEN("libcrypto", \
"Support for cryptographic operations", \
priority, \
"libcrypto.so.3")
"libcrypto.so.3", "libcrypto.so.4")
#define DLOPEN_LIBCRYPTO(log_level, priority) \
({ \