From 294b81953c0801212a7f0927133e3c43ca231ab3 Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Wed, 13 Oct 2021 13:52:16 -0400 Subject: Hack fix for iOS 15.1 beta iOS 15.1+ requires either hash agility or sha256 to be before sha1. --- ldid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldid.cpp') 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 &GetAlgorithms() { static std::vector 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; -- cgit v1.2.3-56-ge451