Show
Ignore:
Timestamp:
05/02/08 19:56:52 (7 months ago)
Author:
alonbl
Message:

Verify PIN support Plug&Play

If card was reset or reader reconnected, verify can restart
transaction, as upper level will not cache PIN in this case.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/libopensc/pkcs15-pin.c

    r3092 r3508  
    204204        card = p15card->card; 
    205205        r = sc_lock(card); 
     206        if (r == SC_ERROR_CARD_RESET || r == SC_ERROR_READER_REATTACHED) 
     207                r = sc_lock(card); 
    206208        SC_TEST_RET(card->ctx, r, "sc_lock() failed"); 
    207209        /* the path in the pin object is optional */