fixed resuming the PIN

initialization of the boxing commands in perform_pace always destroyed
the established security context.
This commit is contained in:
Frank Morgner
2014-02-19 01:05:01 +01:00
parent 68d8a9cf64
commit 6b7d42000b
5 changed files with 18 additions and 13 deletions

View File

@@ -21,6 +21,7 @@
#include "iso-sm-internal.h"
#include "libopensc/internal.h"
#include "libopensc/pace.h"
#include <npa/boxing.h>
#include <npa/npa.h>
#include <string.h>
@@ -61,6 +62,10 @@ static int npa_init(sc_card_t * card)
card->drv_data = NULL;
card->caps |= SC_CARD_CAP_APDU_EXT | SC_CARD_CAP_RNG;
#ifdef DISABLE_GLOBAL_BOXING_INITIALIZATION
sc_detect_boxing_cmds(card->reader);
#endif
return SC_SUCCESS;
}