[git] GnuPG - branch, master, updated. gnupg-2.1.0beta3-169-g76dc5c0
by NIIBE Yutaka
cvs at cvs.gnupg.org
Fri Mar 15 00:51:24 CET 2013
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".
The branch, master has been updated
via 76dc5c08dc2686eef32e1bd221c60fe91201246f (commit)
via 006782068e4d2a9413770400494421a2e9726ee7 (commit)
from 73ad742deacfe2bf7d6efc7cc30f9ced2d83521a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 76dc5c08dc2686eef32e1bd221c60fe91201246f
Author: NIIBE Yutaka <gniibe at fsij.org>
Date: Fri Mar 15 08:34:32 2013 +0900
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.
diff --git a/scd/ccid-driver.c b/scd/ccid-driver.c
index 2d1ef8d..da5fac9 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;
commit 006782068e4d2a9413770400494421a2e9726ee7
Author: NIIBE Yutaka <gniibe at fsij.org>
Date: Fri Mar 15 08:33:13 2013 +0900
scd: fix missing close paren.
* scd/app-openpgp.c (du_auth): Fix.
--
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index 1df35b2..673570d 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -3525,7 +3525,7 @@ do_auth (app_t app, const char *keyidstr,
return gpg_error (GPG_ERR_INV_VALUE);
if (app->app_local->keyattr[2].key_type == KEY_TYPE_ECDSA
- && (indatalen == 51 || indatalen == 67 || indatalen == 83)
+ && (indatalen == 51 || indatalen == 67 || indatalen == 83))
{
const char *p = (const char *)indata + 19;
indata = p;
-----------------------------------------------------------------------
Summary of changes:
scd/app-openpgp.c | 2 +-
scd/ccid-driver.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
The GNU Privacy Guard
http://git.gnupg.org
More information about the Gnupg-commits
mailing list