]> git.saurik.com Git - ldid.git/commitdiff
Pass names to OBJ_create for new OpenSSL versions.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 4 Sep 2022 05:31:42 +0000 (22:31 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 4 Sep 2022 05:31:42 +0000 (22:31 -0700)
ldid.cpp

index 6ee77c21851c4949b4d9ded5969abacb637f7256..c4795e2d499318f9013e8fbc82fd6039464b14df 100644 (file)
--- 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();