mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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.
This commit is contained in:
parent
fdd938a5bb
commit
21dab64030
4 changed files with 10 additions and 40 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue