scd: support any curves defined by libgcrypt.
authorNIIBE Yutaka <gniibe@fsij.org>
Sat, 25 Jul 2015 03:09:23 +0000 (12:09 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Sat, 25 Jul 2015 03:09:23 +0000 (12:09 +0900)
commitef080d5c7fb7f3b75c3c57c011f78a312b8e13a9
tree8700bb903f43af4979141d1ddbdd947ad890dfd8
parent4ee4b998378edf224dbd955145604740cbfbb427
scd: support any curves defined by libgcrypt.

* g10/call-agent.h (struct agent_card_info_s): Add curve field.
* g10/call-agent.c (learn_status_cb): Use curve name.
* g10/card-util.c (card_status): Show pubkey name.
* scd/app-openpgp.c (struct app_local_s): Record OID and flags.
(store_fpr): Use ALGO instead of key type.
(send_key_attr): Use curve name instead of OID.
(get_public_key): Clean up by OID to curve name.
(ecc_writekey): Support any curves in libgcrypt.
(do_genkey, do_auth, ): Follow the change.
(ecc_oid): New.
(parse_algorithm_attribute): Show OID here.
g10/call-agent.c
g10/call-agent.h
g10/card-util.c
scd/app-openpgp.c