ECC Fixes.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 28 Apr 2014 01:36:16 +0000 (10:36 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 28 Apr 2014 01:36:16 +0000 (10:36 +0900)
commit21dab64030c95a909767bf6d8f99e8476f9df8a2
tree78338ccea643a67aadb268d96980e4e917ef5360
parentfdd938a5bbecb5b70f564ae3afb4e17905404bb2
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.
agent/cvt-openpgp.c
agent/gpg-agent.c
g10/call-agent.c
g10/pubkey-enc.c