From 84f5fea164e9ace3a3a90df4506a92c7d6357900 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 3 Sep 2022 22:31:42 -0700 Subject: [PATCH] Pass names to OBJ_create for new OpenSSL versions. --- ldid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.45.2