From: Jay Freeman (saurik) Date: Sun, 4 Sep 2022 05:31:42 +0000 (-0700) Subject: Pass names to OBJ_create for new OpenSSL versions. X-Git-Url: https://git.saurik.com/ldid.git/commitdiff_plain/84f5fea164e9ace3a3a90df4506a92c7d6357900 Pass names to OBJ_create for new OpenSSL versions. --- diff --git a/ldid.cpp b/ldid.cpp index 6ee77c2..c4795e2 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -1933,7 +1933,7 @@ class Signature { _assert(cdattr != NULL); _scope({ APPLE_CDATTR_free(cdattr); }); - static auto nid(OBJ_create("1.2.840.113635.100.9.2", "", "")); + static auto nid(OBJ_create("1.2.840.113635.100.9.2", "apple-2", "Apple 2")); cdattr->object = OBJ_nid2obj(nid); for (Algorithm *pointer : GetAlgorithms()) { @@ -1968,7 +1968,7 @@ class Signature { // XXX: move the "cdhashes" plist code to here and remove xml argument Octet string(xml); - static auto nid(OBJ_create("1.2.840.113635.100.9.1", "", "")); + static auto nid(OBJ_create("1.2.840.113635.100.9.1", "apple-1", "Apple 1")); auto attribute(X509_ATTRIBUTE_create(nid, V_ASN1_OCTET_STRING, string)); _assert(attribute != NULL); string.release();