From 843aea8c5b0578212c880e4973a40c012b6d4940 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 25 Aug 2015 01:14:30 -0700 Subject: Support LC_ENCRYPTION_INFO_64, for 64-bit decrypt. --- ldid.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ldid.cpp') diff --git a/ldid.cpp b/ldid.cpp index 0648469..83ba053 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -95,6 +95,7 @@ struct load_command { #define LC_ENCRYPTION_INFO uint32_t(0x21) #define LC_DYLD_INFO uint32_t(0x22) #define LC_DYLD_INFO_ONLY uint32_t(0x22 | LC_REQ_DYLD) +#define LC_ENCRYPTION_INFO_64 uint32_t(0x2c) struct dylib { uint32_t name; @@ -1129,7 +1130,7 @@ int main(int argc, const char *argv[]) { if (false); else if (cmd == LC_CODE_SIGNATURE) signature = reinterpret_cast(load_command); - else if (cmd == LC_ENCRYPTION_INFO) + else if (cmd == LC_ENCRYPTION_INFO || cmd == LC_ENCRYPTION_INFO_64) encryption = reinterpret_cast(load_command); else if (cmd == LC_ID_DYLIB) { volatile struct dylib_command *dylib_command(reinterpret_cast(load_command)); -- cgit v1.2.3-56-ge451