diff options
author | Werner Koch <wk@gnupg.org> | 2007-01-31 15:24:41 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2007-01-31 15:24:41 +0100 |
commit | b861561e4791244a21fc118ec45f4c6afe71044b (patch) | |
tree | b88c2c6f95cca85116747b3e746f0d765b622c2a /scd/ccid-driver.c | |
parent | Added LIBINTL to more Makefile targets. (diff) | |
download | gnupg2-b861561e4791244a21fc118ec45f4c6afe71044b.tar.xz gnupg2-b861561e4791244a21fc118ec45f4c6afe71044b.zip |
Included LIBICONV in all Makefiles.
g10/
* passphrase.c (passphrase_get): Set the cancel flag on all error
from the agent. Fixes a bug reported by Tom Duerbusch.
sm/
* gpgsm.c (main): Let --gen-key print a more informative error
message.
Diffstat (limited to 'scd/ccid-driver.c')
-rw-r--r-- | scd/ccid-driver.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scd/ccid-driver.c b/scd/ccid-driver.c index 35fedfd55..bbb886239 100644 --- a/scd/ccid-driver.c +++ b/scd/ccid-driver.c @@ -2371,9 +2371,9 @@ ccid_transceive_secure (ccid_driver_t handle, /* The CHERRY XX44 does not yet work. I have not investigated it closer because there is another problem: It echos a "*" for each entered character and we somehow need to arrange that it - doesn't get to the tty at all. Given thate are running + doesn't get to the tty at all. Given that we are running without a control terminal there is not much we can do about. - A weird hack using pinentry comes in mind but I doubnt that + A weird hack using pinentry comes in mind but I doubt that this is a clean solution. Need to contact Cherry. */ default: @@ -2417,8 +2417,11 @@ ccid_transceive_secure (ccid_driver_t handle, msg[14] = 0x00; /* bmPINLengthFormat: Units are bytes, position is 0. */ } - msg[15] = pinlen_max; /* wPINMaxExtraDigit-Maximum. */ + + /* The following is a little endian word. */ + msg[15] = pinlen_max; /* wPINMaxExtraDigit-Maximum. */ msg[16] = pinlen_min; /* wPINMaxExtraDigit-Minimum. */ + msg[17] = 0x02; /* bEntryValidationCondition: Validation key pressed */ if (pinlen_min && pinlen_max && pinlen_min == pinlen_max) |