aboutsummaryrefslogtreecommitdiffstats
path: root/ldid.cpp
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-10-13 13:52:16 -0400
committerCameron Katri <me@cameronkatri.com>2021-10-13 13:52:16 -0400
commit294b81953c0801212a7f0927133e3c43ca231ab3 (patch)
tree1a87c5a845de6de9fb1ec0d15e139d5f6b0708c2 /ldid.cpp
parentbaa8a880e5b2c1990939cf40ce6c9135c0379561 (diff)
downloadldid-294b81953c0801212a7f0927133e3c43ca231ab3.tar.gz
ldid-294b81953c0801212a7f0927133e3c43ca231ab3.tar.zst
ldid-294b81953c0801212a7f0927133e3c43ca231ab3.zip
Hack fix for iOS 15.1 beta
iOS 15.1+ requires either hash agility or sha256 to be before sha1.
Diffstat (limited to 'ldid.cpp')
-rw-r--r--ldid.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldid.cpp b/ldid.cpp
index 4715192..94a8a05 100644
--- 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;