]> git.cameronkatri.com Git - ldid.git/blobdiff - ldid.cpp
Hack fix for iOS 15.1 beta
[ldid.git] / ldid.cpp
index 08dcf5551fda72fd212b9065c6f21a8959767318..94a8a0552b938fa3e8c387849c4336db7ed18619 100644 (file)
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -45,7 +45,7 @@
 #ifndef LDID_NOSMIME
 #include <openssl/opensslv.h>
 # if OPENSSL_VERSION_NUM >= 0x30000000
-#include <openssl/provider.h>
+#  include <openssl/provider.h>
 # endif
 #include <openssl/err.h>
 #include <openssl/pem.h>
@@ -1251,10 +1251,10 @@ static const std::vector<Algorithm *> &GetAlgorithms() {
 
     static std::vector<Algorithm *> algorithms;
     if (algorithms.empty()) {
-        if (do_sha1)
-            algorithms.push_back(&sha1);
         if (do_sha256)
             algorithms.push_back(&sha256);
+        if (do_sha1)
+            algorithms.push_back(&sha1);
     }
 
     return algorithms;