diff options
| author | NIIBE Yutaka <[email protected]> | 2014-04-28 01:36:16 +0000 |
|---|---|---|
| committer | NIIBE Yutaka <[email protected]> | 2014-04-28 01:36:16 +0000 |
| commit | 21dab64030c95a909767bf6d8f99e8476f9df8a2 (patch) | |
| tree | 78338ccea643a67aadb268d96980e4e917ef5360 /g10/call-agent.c | |
| parent | gpg: Pass --homedir to gpg-agent. (diff) | |
| download | gnupg-21dab64030c95a909767bf6d8f99e8476f9df8a2.tar.gz gnupg-21dab64030c95a909767bf6d8f99e8476f9df8a2.zip | |
ECC Fixes.
* agent/cvt-openpgp.c (get_keygrip, convert_secret_key)
(convert_transfer_key): Follow newer (>= 1.6) libgcrypt API, which
does not distinguish the detail.
(do_unprotect, convert_from_openpgp_main): Don't call
map_pk_openpgp_to_gcry, as it's the value of libgcrypt API already and
not the value defined by OpenPGP.
(convert_to_openpgp): It's "ecc".
* agent/gpg-agent.c (map_pk_openpgp_to_gcry): Remove.
* g10/call-agent.c (agent_pkdecrypt): Fix off-by-one error.
* g10/pubkey-enc.c (get_it): Fix swapping the fields error.
Diffstat (limited to 'g10/call-agent.c')
| -rw-r--r-- | g10/call-agent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/call-agent.c b/g10/call-agent.c index ad578dbb6..42cc9ea1f 100644 --- a/g10/call-agent.c +++ b/g10/call-agent.c @@ -1991,7 +1991,7 @@ agent_pkdecrypt (ctrl_t ctrl, const char *keygrip, const char *desc, xfree (buf); return gpg_error (GPG_ERR_INV_SEXP); } - len -= 11; /* Count only the data of the second part. */ + len -= 10; /* Count only the data of the second part. */ p = buf + 8; /* Skip leading parenthesis and the value tag. */ n = strtoul (p, &endp, 10); |
