Skip to content

Commit

Permalink
Issue 2105: Add new DNIe CA structure for the secure channel
Browse files Browse the repository at this point in the history
  • Loading branch information
rickyepoderi authored and frankmorgner committed Sep 25, 2020
1 parent b577531 commit 57a391f
Show file tree
Hide file tree
Showing 3 changed files with 464 additions and 70 deletions.
4 changes: 3 additions & 1 deletion src/libopensc/card-dnie.c
Expand Up @@ -2176,7 +2176,9 @@ static int dnie_pin_verify(struct sc_card *card,
if (card->atr.value[15] >= DNIE_30_VERSION) {
sc_log(card->ctx, "DNIe 3.0 detected => re-establish secure channel");
dnie_change_cwa_provider_to_secure(card);
res = cwa_create_secure_channel(card, GET_DNIE_PRIV_DATA(card)->cwa_provider, CWA_SM_ON);
if (res == SC_SUCCESS) {
res = cwa_create_secure_channel(card, GET_DNIE_PRIV_DATA(card)->cwa_provider, CWA_SM_ON);
}
}

LOG_FUNC_RETURN(card->ctx, res);
Expand Down

0 comments on commit 57a391f

Please sign in to comment.