diff options
author | Werner Koch <[email protected]> | 2019-01-17 14:42:33 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2019-01-22 09:13:04 +0000 |
commit | 11a65159f997ccd69ecb9d867c1f3d0c4d8837d6 (patch) | |
tree | ad67a3251740d125ea5d0d5da41d15885c788c50 /scd/command.c | |
parent | gpg: Stop early when trying to create a primary Elgamal key. (diff) | |
download | gnupg-11a65159f997ccd69ecb9d867c1f3d0c4d8837d6.tar.gz gnupg-11a65159f997ccd69ecb9d867c1f3d0c4d8837d6.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 <[email protected]>
(cherry picked from commit d93797c8a7892fe26672c551017468e9f8099ef6)
Diffstat (limited to 'scd/command.c')
0 files changed, 0 insertions, 0 deletions