Skip to content

Commit

Permalink
Removed flag SC_PKCS15_PRKEY_USAGE_ENCRYPT
Browse files Browse the repository at this point in the history
  • Loading branch information
jozsefd authored and Jakuje committed Nov 19, 2021
1 parent eb088b1 commit edca4a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libopensc/pkcs15-nqApplet.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ static int add_nqapplet_objects(sc_pkcs15_card_t *p15card)
LOG_TEST_RET(card->ctx, rv, "Failed to add Auth. certificate");

// 2.2) PrK.CH.Auth
rv = add_nqapplet_private_key(p15card, "1", 0x01, "PrK.CH.Auth", "1", SC_PKCS15_PRKEY_USAGE_SIGN | SC_PKCS15_PRKEY_USAGE_ENCRYPT | SC_PKCS15_PRKEY_USAGE_DECRYPT);
rv = add_nqapplet_private_key(p15card, "1", 0x01, "PrK.CH.Auth", "1", SC_PKCS15_PRKEY_USAGE_SIGN | SC_PKCS15_PRKEY_USAGE_DECRYPT);
LOG_TEST_RET(card->ctx, rv, "Failed to add Auth. private key");

// 3.1) C.CH.Encr
Expand Down

0 comments on commit edca4a8

Please sign in to comment.