summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2018-09-16 03:43:05 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2018-09-16 03:43:05 -0700
commitfd50da22b895f242997e9832908f5e6c7b1a0ea6 (patch)
tree0291c95ca243edb931690a02b9bc024f0f1e0887
parent71465d5fd1846c801f628be21c57b52031df1655 (diff)
downloadldid-fd50da22b895f242997e9832908f5e6c7b1a0ea6.tar.gz
ldid-fd50da22b895f242997e9832908f5e6c7b1a0ea6.tar.zst
ldid-fd50da22b895f242997e9832908f5e6c7b1a0ea6.zip
LDID_NOSMIME should ignore the given key argument.
-rw-r--r--ldid.cpp2
1 files changed, 2 insertions, 0 deletions
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<void (double)> &percent) -> size_t {