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:
@@ -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) \
|
||||
({ \
|
||||
|
||||
Reference in New Issue
Block a user