From fd50da22b895f242997e9832908f5e6c7b1a0ea6 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 16 Sep 2018 03:43:05 -0700 Subject: LDID_NOSMIME should ignore the given key argument. --- ldid.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ldid.cpp b/ldid.cpp index 25f3027..a34adce 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -1657,11 +1657,13 @@ Hash Sign(const void *idata, size_t isize, std::streambuf &output, const std::st for (Algorithm *algorithm : GetAlgorithms()) alloc = Align(alloc + directory + (special + normal) * algorithm->size_, 16); +#ifndef LDID_NOSMIME if (!key.empty()) { alloc += sizeof(struct BlobIndex); alloc += sizeof(struct Blob); alloc += certificate; } +#endif return alloc; }), fun([&](const MachHeader &mach_header, std::streambuf &output, size_t limit, const std::string &overlap, const char *top, const Functor &percent) -> size_t { -- cgit v1.2.3-56-ge451