]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ssl-util: prefer OpenSSL 4 42676/head
authorLuca Boccassi <luca.boccassi@gmail.com>
Sat, 20 Jun 2026 14:21:26 +0000 (15:21 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 22 Jun 2026 08:54:09 +0000 (09:54 +0100)
For the next version we can switch to preferring the new version

src/shared/ssl-util.c
src/shared/ssl-util.h

index 226120c70e66f1f9873c056ac0cd85fa56516082..4b7ab2ec29f741c44dbccbc3d3abf244dee7c19b 100644 (file)
@@ -40,8 +40,7 @@ int dlopen_libssl(int log_level) {
 
         LIBSSL_NOTE(SD_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED);
 
-        // FIXME: switch order to prefer libssl.so.4 in a future version once it has stabilized
-        FOREACH_STRING(soname, "libssl.so.3", "libssl.so.4") {
+        FOREACH_STRING(soname, "libssl.so.4", "libssl.so.3") {
                 r = dlopen_many_sym_or_warn(
                                 &libssl_dl,
                                 soname,
index aa3b8308665bac59c9a1cbc9be008a4c18dd9205..77b5c049f9e3ada7cadc599cf5d26e4f1c3b6a2b 100644 (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.4")
+                           "libssl.so.4", "libssl.so.3")
 
 #define DLOPEN_LIBSSL(log_level, priority)                              \
         ({                                                              \