From: Jay Freeman (saurik) Date: Sun, 16 Sep 2018 10:43:05 +0000 (-0700) Subject: LDID_NOSMIME should ignore the given key argument. X-Git-Url: https://git.saurik.com/ldid.git/commitdiff_plain/fd50da22b895f242997e9832908f5e6c7b1a0ea6 LDID_NOSMIME should ignore the given key argument. --- 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 {