gnupg/agent
Werner Koch d93797c8a7
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>
2019-01-17 15:58:30 +01:00
..
ChangeLog-2011 Fix typos 2015-10-28 10:20:17 +01:00
Makefile.am tests: Make it possible to run all tests using our infrastructure. 2017-05-11 18:12:37 +02:00
agent.h agent: Make the S2K calibration time runtime configurabe. 2018-12-11 18:12:51 +01:00
all-tests.scm tests: Make it possible to run all tests using our infrastructure. 2017-05-11 18:12:37 +02:00
cache.c agent: New commands PUT_SECRET and GET_SECRET. 2018-07-02 21:36:19 +02:00
call-pinentry.c agent: Simplify agent_popup_message_stop. 2018-11-14 10:45:15 +09:00
call-scd.c scd: Add strerror to new error message. 2018-11-30 12:38:51 +01:00
command-ssh.c ssh: Simplify the curve name lookup. 2019-01-17 15:58:30 +01:00
command.c agent: Fix possible release of unitialize var in a genkey error case. 2018-10-24 20:16:26 +02:00
cvt-openpgp.c Merge branch 'STABLE-BRANCH-2-2' into master 2018-03-27 08:48:00 +02:00
cvt-openpgp.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
divert-scd.c all: fix spelling and typos 2018-10-24 15:56:18 -04:00
findkey.c agent: Make the request origin a part of the cache items. 2018-03-27 08:40:58 +02:00
genkey.c agent: Make the request origin a part of the cache items. 2018-03-27 08:40:58 +02:00
gpg-agent-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpg-agent.c agent: Make the S2K calibration time runtime configurabe. 2018-12-11 18:12:51 +01:00
keyformat.txt all: fix more spelling errors 2018-10-25 16:53:05 -04:00
learncard.c all: fix spelling and typos 2018-10-24 15:56:18 -04:00
pkdecrypt.c Use the gpgrt log functions if possible. 2017-11-27 15:00:25 +01:00
pksign.c agent: Minor cleanup (mostly for documentation). 2017-07-28 10:38:57 +02:00
preset-passphrase.c Fix usage of ARGPARSE_OPTS. 2017-07-19 13:41:18 +09:00
protect-tool.c agent: Make the request origin a part of the cache items. 2018-03-27 08:40:58 +02:00
protect.c agent: Make the S2K calibration time runtime configurabe. 2018-12-11 18:12:51 +01:00
t-protect.c agent: Fix description of shadow format. 2017-12-08 09:19:50 +09:00
trans.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
trustlist.c Spelling fixes in docs and comments. 2017-04-28 10:06:33 +09:00
w32main.c agent: Resolve conflict of util.h. 2017-03-07 19:22:48 +09:00
w32main.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00