Skip to content

Commit

Permalink
Pass names to OBJ_create for new OpenSSL versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
saurik authored and CRKatri committed Oct 24, 2022
1 parent 34ae9fa commit 01b0391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ldid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 01b0391

Please sign in to comment.