diff options
| author | Werner Koch <[email protected]> | 2009-03-26 19:27:04 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2009-03-26 19:27:04 +0000 |
| commit | 990585ad7d887265cacc0cd75cda12b38f8d6ff8 (patch) | |
| tree | 6644488ea6906b3ec2d85ada0b23bc688bd4cfe5 /scd/apdu.c | |
| parent | Fixed a trustlist update problem. (diff) | |
| download | gnupg-990585ad7d887265cacc0cd75cda12b38f8d6ff8.tar.gz gnupg-990585ad7d887265cacc0cd75cda12b38f8d6ff8.zip | |
Signing using Netkey 3 cards does now work.
Diffstat (limited to 'scd/apdu.c')
| -rw-r--r-- | scd/apdu.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scd/apdu.c b/scd/apdu.c index dfddd3f72..b12b7e951 100644 --- a/scd/apdu.c +++ b/scd/apdu.c @@ -1951,6 +1951,9 @@ open_ccid_reader (const char *portstr) reader_table[slot].send_apdu_reader = send_apdu_ccid; reader_table[slot].check_keypad = check_ccid_keypad; reader_table[slot].dump_status_reader = dump_ccid_reader_status; + /* Our CCID reader code does not support T=0 at all, thus reset the + flag. */ + reader_table[slot].is_t0 = 0; dump_reader_status (slot); return slot; @@ -2839,10 +2842,10 @@ send_le (int slot, int class, int ins, int p0, int p1, if (lc != -1 && (lc > 255 || lc < 0)) { - /* Data does not fit into an APDU. What we do now dependes on + /* Data does not fit into an APDU. What we do now depends on the EXTENDED_MODE parameter. */ if (!extended_mode) - return SW_WRONG_LENGTH; /* No way. to send such an APDU. */ + return SW_WRONG_LENGTH; /* No way to send such an APDU. */ else if (extended_mode > 0) return SW_HOST_NOT_SUPPORTED; /* FIXME. */ else if (extended_mode < 0) |
