summaryrefslogtreecommitdiffstats
path: root/scd/iso7816.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2019-01-17 15:42:33 +0100
committerWerner Koch <wk@gnupg.org>2019-01-17 15:58:30 +0100
commitd93797c8a7892fe26672c551017468e9f8099ef6 (patch)
tree829c23a93e51abadcc1c87d6a073b2f0df349977 /scd/iso7816.c
parentgpg: Report STATUS_NO_SECKEY when it is examined. (diff)
downloadgnupg2-d93797c8a7892fe26672c551017468e9f8099ef6.tar.xz
gnupg2-d93797c8a7892fe26672c551017468e9f8099ef6.zip
ssh: Simplify the curve name lookup.
* agent/command-ssh.c (struct ssh_key_type_spec): Add field alt_curve_name. (ssh_key_types): Add some alternate curve names. (ssh_identifier_from_curve_name): Lookup also bey alternative names and return the canonical name. (ssh_key_to_blob): Simplify the ECDSA case by using gcry_pk_get_curve instead of the explicit mapping. (ssh_receive_key): Likewise. Use ssh_identifier_from_curve_name to validate the curve name. Remove the reverse mapping because since GnuPG-2.2 Libgcrypt 1.7 is required. (ssh_handler_request_identities): Log an error message. -- This change will make it easier to support other curves, in particular those from tokens. Libgcrypt has a large list of alias names which we now use to to make the mapping more flexible. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'scd/iso7816.c')
0 files changed, 0 insertions, 0 deletions