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

@@ -46,11 +46,6 @@
#include "libopensc/apdu.c"
#endif
#ifndef HAVE_LIST_ITERATOR_NEXT
#include "opensc/src/common/simclist.c"
#endif
static const u8 boxing_cla = 0xff;
static const u8 boxing_ins = 0x9a;
static const u8 boxing_p1 = 0x04;
@@ -737,6 +732,11 @@ void sc_detect_boxing_cmds(sc_reader_t *reader)
}
#ifndef DISABLE_GLOBAL_BOXING_INITIALIZATION
#ifndef HAVE_LIST_ITERATOR_NEXT
#include "opensc/src/common/simclist.c"
#endif
void sc_initialize_boxing_cmds(sc_context_t *ctx)
{
sc_reader_t *reader;