]> git.cameronkatri.com Git - ldid.git/commitdiff
Hack fix for iOS 15.1 beta
authorCameron Katri <me@cameronkatri.com>
Wed, 13 Oct 2021 17:52:16 +0000 (13:52 -0400)
committerCameron Katri <me@cameronkatri.com>
Wed, 13 Oct 2021 17:52:16 +0000 (13:52 -0400)
iOS 15.1+ requires either hash agility or sha256 to be before sha1.

ldid.cpp

index 4715192de77b94f9a23c6e966c94780ba59cde9b..94a8a0552b938fa3e8c387849c4336db7ed18619 100644 (file)
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -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;