summaryrefslogtreecommitdiffstats
path: root/g10/call-agent.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2015-07-25 05:09:23 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2015-07-25 05:09:23 +0200
commitef080d5c7fb7f3b75c3c57c011f78a312b8e13a9 (patch)
tree8700bb903f43af4979141d1ddbdd947ad890dfd8 /g10/call-agent.h
parentdoc: Document scissor line for commit logs (diff)
downloadgnupg2-ef080d5c7fb7f3b75c3c57c011f78a312b8e13a9.tar.xz
gnupg2-ef080d5c7fb7f3b75c3c57c011f78a312b8e13a9.zip
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.
Diffstat (limited to 'g10/call-agent.h')
-rw-r--r--g10/call-agent.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/g10/call-agent.h b/g10/call-agent.h
index df570a44b..70421dba4 100644
--- a/g10/call-agent.h
+++ b/g10/call-agent.h
@@ -55,7 +55,10 @@ struct agent_card_info_s
int chvretry[3]; /* Allowed retries for the CHV; 0 = blocked. */
struct { /* Array with key attributes. */
int algo; /* Algorithm identifier. */
- unsigned int nbits; /* Supported keysize. */
+ union {
+ unsigned int nbits; /* Supported keysize. */
+ const char *curve; /* Name of curve. */
+ };
} key_attr[3];
struct {
unsigned int ki:1; /* Key import available. */