diff --git a/src/shared/crypto-util.c b/src/shared/crypto-util.c index 9a3766d28c..03ca4d6e80 100644 --- a/src/shared/crypto-util.c +++ b/src/shared/crypto-util.c @@ -339,8 +339,7 @@ int dlopen_libcrypto(int log_level) { LIBCRYPTO_NOTE(SD_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED); - // FIXME: switch order to prefer libcrypto.so.4 in a future version once it has stabilized - FOREACH_STRING(soname, "libcrypto.so.3", "libcrypto.so.4") { + FOREACH_STRING(soname, "libcrypto.so.4", "libcrypto.so.3") { r = dlopen_many_sym_or_warn( &libcrypto_dl, soname, diff --git a/src/shared/crypto-util.h b/src/shared/crypto-util.h index 980c1c60a2..bd0cb7b67b 100644 --- a/src/shared/crypto-util.h +++ b/src/shared/crypto-util.h @@ -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.4") + "libcrypto.so.4", "libcrypto.so.3") #define DLOPEN_LIBCRYPTO(log_level, priority) \ ({ \