Skip to content

Commit

Permalink
pass error as pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
sbSteveK committed Sep 9, 2024
1 parent fd81c00 commit d09df65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/darwin/darwin_pki_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ int aws_secitem_import_cert_and_key(
key_attributes = CFDictionaryCreateMutable(cf_alloc, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
CFDictionaryAddValue(key_attributes, kSecAttrKeyClass, kSecAttrKeyClassPrivate);
CFDictionaryAddValue(key_attributes, kSecAttrKeyType, key_type);
key_ref = SecKeyCreateWithData(key_data, key_attributes, error);
key_ref = SecKeyCreateWithData(key_data, key_attributes, &error);

// Get the hash of the public key stored within the private key
key_copied_attributes = SecKeyCopyAttributes(key_ref);
Expand Down

0 comments on commit d09df65

Please sign in to comment.