diff options
author | Werner Koch <[email protected]> | 2003-12-23 10:25:24 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2003-12-23 10:25:24 +0000 |
commit | 28db0fabb4edf65ad1c5bec061c19c9922be9b23 (patch) | |
tree | ce1e0fa19304aeda49e3e7f4dbf0f7f99c549cdb /scd/apdu.c | |
parent | (map_assuan_err): Prepared for a new error code. (diff) | |
download | gnupg-28db0fabb4edf65ad1c5bec061c19c9922be9b23.tar.gz gnupg-28db0fabb4edf65ad1c5bec061c19c9922be9b23.zip |
* apdu.c (apdu_send_le): Send a get_response with the indicated
length and not the 64 bytes we used for testing.
* app-openpgp.c (verify_chv2, verify_chv3, do_sign): Check the
minimum length of the passphrase, so that we don't need to
decrement the retry counter.
Diffstat (limited to '')
-rw-r--r-- | scd/apdu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/apdu.c b/scd/apdu.c index 27304c8b5..02038b65c 100644 --- a/scd/apdu.c +++ b/scd/apdu.c @@ -1207,7 +1207,7 @@ apdu_send_le(int slot, int class, int ins, int p0, int p1, apdu[apdulen++] = 0xC0; apdu[apdulen++] = 0; apdu[apdulen++] = 0; - apdu[apdulen++] = 64; /* that is 256 bytes for Le */ + apdu[apdulen++] = len; memset (apdu+apdulen, 0, sizeof (apdu) - apdulen); rc = send_apdu (slot, apdu, apdulen, result, &resultlen); if (rc || resultlen < 2) |