Skip to content

Commit

Permalink
add format unknown (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin authored Oct 9, 2023
1 parent 029587f commit 350a478
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 @@ -66,7 +66,6 @@ int aws_import_ecc_key_into_keychain(
AWS_ZERO_STRUCT(import_params);
import_params.version = SEC_KEY_IMPORT_EXPORT_PARAMS_VERSION;
import_params.passphrase = CFSTR("");
format = kSecFormatUnknown;

OSStatus key_status =
SecItemImport(key_data, NULL, &format, &item_type, 0, &import_params, import_keychain, NULL);
Expand Down Expand Up @@ -164,6 +163,7 @@ int aws_import_public_and_private_keys_to_identity(
SecItemImport(cert_data, NULL, &format, &item_type, 0, &import_params, import_keychain, &cert_import_output);

/* import private key */
format = kSecFormatUnknown;
item_type = kSecItemTypePrivateKey;
OSStatus key_status =
SecItemImport(key_data, NULL, &format, &item_type, 0, &import_params, import_keychain, &key_import_output);
Expand Down

0 comments on commit 350a478

Please sign in to comment.