diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2018-09-16 03:43:05 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2018-09-16 03:43:05 -0700 |
commit | fd50da22b895f242997e9832908f5e6c7b1a0ea6 (patch) | |
tree | 0291c95ca243edb931690a02b9bc024f0f1e0887 /ldid.cpp | |
parent | 71465d5fd1846c801f628be21c57b52031df1655 (diff) | |
download | ldid-fd50da22b895f242997e9832908f5e6c7b1a0ea6.tar.gz ldid-fd50da22b895f242997e9832908f5e6c7b1a0ea6.tar.zst ldid-fd50da22b895f242997e9832908f5e6c7b1a0ea6.zip |
LDID_NOSMIME should ignore the given key argument.
Diffstat (limited to 'ldid.cpp')
-rw-r--r-- | ldid.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 { |