opensc/src
Maciej S. Szmigiero 1c40426421 Support PIN unblocking in minidriver via PUK as response to challenge
Minidriver currently has basic support for unblocking card PIN by providing
PUK as an administrator password to CardUnblockPin() function.

However, this doesn't work for example when trying to unblock PIN via
system smartcard PIN unblock screen accessible after pressing Ctrl+Alt+Del
as it wants to use challenge / response authentication.
MS Smart Card Minidriver specification (version 7.07) explicitly says that
challenge / response is the only authentication mode that Windows uses to
authenticate an administrator.
Unfortunately, this way of unblocking PIN seems to not be widely supported
by cards.

However, we can simply treat the provided response to challenge as PUK.
Because (at least) Ctrl+Alt+Del PIN unblock screen accepts only hex string,
every PUK digit X has to be input as '3X' (without quotes) there.
Also the response string is not hidden behind asterisks on this screen as
it should been.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
2017-03-27 11:05:16 +02:00
..
common License clarification (#988) 2017-03-14 22:47:13 +01:00
libopensc Add ptrdiff_t (pointer difference) printf length modifier 2017-03-27 11:05:16 +02:00
minidriver Support PIN unblocking in minidriver via PUK as response to challenge 2017-03-27 11:05:16 +02:00
pkcs11 Add session handle uniqueness check to PKCS#11 C_OpenSession() 2017-03-27 11:05:16 +02:00
pkcs15init License clarification (#988) 2017-03-14 22:47:13 +01:00
scconf fixed and cleaned up nmake Makefiles 2016-06-23 07:35:53 +02:00
sm Added (external) card driver for German ID card 2017-03-20 21:28:48 +01:00
smm Fix most of warnings shown when building on Linux and mingw 2017-03-27 10:58:26 +02:00
tests src/tests/Makefile.am: fix compilation with OpenSSL 2016-10-14 14:06:07 +02:00
tools Add reset operation to opensc-tool 2017-03-27 11:05:16 +02:00
Makefile.am Added (external) card driver for German ID card 2017-03-20 21:28:48 +01:00
Makefile.mak Added (external) card driver for German ID card 2017-03-20 21:28:48 +01:00