From 01b0391dab9117fadd5c4043463013da37153a2d 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 bf9ac0c..d3712e8 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -1932,7 +1932,7 @@ class Signature { _assert(cdattr != NULL); _scope({ APPLE_CDATTR_free(cdattr); }); - static auto nid(OBJ_create("1.2.840.113635.100.9.2", NULL, NULL)); + 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()) { @@ -1967,7 +1967,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", NULL, NULL)); + 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();