[Pcsclite-git-commit] [CCID] 01/01: scardcontrol: fix bmPINBlockString value
Ludovic Rousseau
rousseau at moszumanska.debian.org
Fri Mar 24 07:49:10 UTC 2017
This is an automated email from the git hooks/post-receive script.
rousseau pushed a commit to branch master
in repository CCID.
commit 59380a8dd99357963b8842548131873d3427d6f9
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date: Thu Mar 23 15:06:36 2017 +0100
scardcontrol: fix bmPINBlockString value
The sample code uses a (default) maximum PIN size of 8 digits.
bmPINBlockString is defined as "Defines the length in bytes of the PIN
block to present in the APDU command" so shoudl also be 8.
Thanks to Martin Elshuber for the bug report
"[#315675] scardcontrol.c - bmPINBlockString - shouldn't it be 8?"
https://alioth.debian.org/tracker/?func=detail&atid=410085&aid=315675&group_id=30105
---
examples/scardcontrol.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/scardcontrol.c b/examples/scardcontrol.c
index 983a2a3..c09c99f 100644
--- a/examples/scardcontrol.c
+++ b/examples/scardcontrol.c
@@ -605,7 +605,7 @@ int main(int argc, char *argv[])
pin_verify -> bTimerOut = 0x00;
pin_verify -> bTimerOut2 = 0x00;
pin_verify -> bmFormatString = 0x82;
- pin_verify -> bmPINBlockString = 0x04;
+ pin_verify -> bmPINBlockString = 0x08;
pin_verify -> bmPINLengthFormat = 0x00;
pin_verify -> wPINMaxExtraDigit = (PIN_min_size << 8) + PIN_max_size;
pin_verify -> bEntryValidationCondition = bEntryValidationCondition;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/CCID.git
More information about the Pcsclite-cvs-commit
mailing list