]> git.cameronkatri.com Git - ldid.git/commitdiff
Fix hash order
authorCameron Katri <me@cameronkatri.com>
Tue, 22 Mar 2022 03:47:15 +0000 (23:47 -0400)
committerCameron Katri <me@cameronkatri.com>
Tue, 22 Mar 2022 03:47:15 +0000 (23:47 -0400)
This commit was made under a faulty assumption.

Revert "Hack fix for iOS 15.1 beta"

This reverts commit 294b81953c0801212a7f0927133e3c43ca231ab3.

ldid.cpp

index f65b084d93d916b4e8269073e1182b5174fd9a75..9cea7b8716c34de8b9f6792edebd151bfff3b827 100644 (file)
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -1253,10 +1253,10 @@ static const std::vector<Algorithm *> &GetAlgorithms() {
 
     static std::vector<Algorithm *> algorithms;
     if (algorithms.empty()) {
-        if (do_sha256)
-            algorithms.push_back(&sha256);
         if (do_sha1)
             algorithms.push_back(&sha1);
+        if (do_sha256)
+            algorithms.push_back(&sha256);
     }
 
     return algorithms;