diff --git a/NEWS b/NEWS index 24f2f82..7538dda 100644 --- a/NEWS +++ b/NEWS @@ -3,7 +3,14 @@ yubico-piv-tool NEWS -- History of user-visible changes. -*- outline -*- * Version 1.1.0 (unreleased) ** Support for YubiKey 4 stuff -ECCP384, touch, retired keys etc + +* Version 1.0.2 (released 2015-09-04) + +** Query for different passwords/pins on stdin if they're not supplied. + +** If a reader fails continue trying matching readers. + +** Authentication failed is supposed to be 0x63cX not 0x630X. * Version 1.0.1 (released 2015-07-10) diff --git a/lib/ykpiv.c b/lib/ykpiv.c index 6452363..fc60d47 100644 --- a/lib/ykpiv.c +++ b/lib/ykpiv.c @@ -713,7 +713,7 @@ ykpiv_rc ykpiv_verify(ykpiv_state *state, const char *pin, int *tries) { } else if(sw == 0x9000) { return YKPIV_OK; } else if((sw >> 8) == 0x63) { - *tries = (sw & 0xff); + *tries = (sw & 0xf); return YKPIV_WRONG_PIN; } else if(sw == 0x6983) { *tries = 0;