From: Jay Freeman (saurik) Date: Sat, 13 Oct 2018 07:34:28 +0000 (-0700) Subject: Fix build when defining LDID_NOSMIME (no openssl). X-Git-Url: https://git.saurik.com/ldid.git/commitdiff_plain/c1f7096708df36a73b1f2b4769ea46dc483b5852 Fix build when defining LDID_NOSMIME (no openssl). --- diff --git a/ldid.cpp b/ldid.cpp index 353a20e..32fd2d9 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -1731,6 +1731,7 @@ static void Commit(const std::string &path, const std::string &temp) { namespace ldid { +#ifndef LDID_NOSMIME static void get(std::string &value, X509_NAME *name, int nid) { auto index(X509_NAME_get_index_by_NID(name, nid, -1)); _assert(index >= 0); @@ -1742,6 +1743,7 @@ static void get(std::string &value, X509_NAME *name, int nid) { _assert(asn != NULL); value.assign(reinterpret_cast(ASN1_STRING_data(asn)), ASN1_STRING_length(asn)); } +#endif static void req(std::streambuf &buffer, uint32_t value) { value = Swap(value);