Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jozsefd authored and Jakuje committed Nov 19, 2021
1 parent f338d46 commit eb088b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libopensc/pkcs15-nqApplet.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,19 +154,19 @@ static int add_nqapplet_objects(sc_pkcs15_card_t *p15card)
rv = add_nqapplet_pin(p15card, "1", 0x01);
LOG_TEST_RET(card->ctx, rv, "Failed to add PIN 1");

// 2.1) CH.Auth
// 2.1) C.CH.Auth
rv = add_nqapplet_certificate(p15card, "1", "C.CH.Auth", 0x00);
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);
LOG_TEST_RET(card->ctx, rv, "Failed to add Auth. private key");

// 2.1) CH.Auth
// 3.1) C.CH.Encr
rv = add_nqapplet_certificate(p15card, "2", "C.CH.Encr", 0x01);
LOG_TEST_RET(card->ctx, rv, "Failed to add Encr. certificate");

// 2.2) PrK.CH.Auth
// 3.2) PrK.CH.Encr
rv = add_nqapplet_private_key(p15card, "2", 0x02, "PrK.CH.Encr", "1", SC_PKCS15_PRKEY_USAGE_DECRYPT);
LOG_TEST_RET(card->ctx, rv, "Failed to add Encr. private key");

Expand Down

0 comments on commit eb088b1

Please sign in to comment.