diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2013-03-15 00:34:32 +0100 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2013-03-15 00:34:32 +0100 |
commit | 76dc5c08dc2686eef32e1bd221c60fe91201246f (patch) | |
tree | eaa1499c16bb6bf1bd63aa86b31fa1dd40d98858 /scd | |
parent | scd: fix missing close paren. (diff) | |
download | gnupg2-76dc5c08dc2686eef32e1bd221c60fe91201246f.tar.xz gnupg2-76dc5c08dc2686eef32e1bd221c60fe91201246f.zip |
scd: ccid-driver supporting larger APDU.
* scd/ccid-driver.c (ccid_transceive_apdu_level): Support larger
APDU.
--
This is still ad hoc change, but it's OK. Supporting full extended
APDU exchange level is not worth yet.
Diffstat (limited to 'scd')
-rw-r--r-- | scd/ccid-driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/ccid-driver.c b/scd/ccid-driver.c index 2d1ef8d46..da5fac954 100644 --- a/scd/ccid-driver.c +++ b/scd/ccid-driver.c @@ -2839,7 +2839,7 @@ ccid_transceive_apdu_level (ccid_driver_t handle, /* The maximum length for a short APDU T=1 block is 261. For an extended APDU T=1 block the maximum length 65544; however extended APDU exchange level is not fully supported yet. */ - if (apdulen > 289) + if (apdulen > sizeof (send_buffer) - 10) return CCID_DRIVER_ERR_INV_VALUE; /* Invalid length. */ msg[0] = PC_to_RDR_XfrBlock; |