1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-10 21:38:50 +01:00
gnupg/agent
Werner Koch 8b8a8b246c
ssh: Allow to define the order in which keys are returned.
* agent/findkey.c (public_key_from_file): Add arg r_sshorder.
(agent_ssh_key_from_file): Ditto.
* agent/command-ssh.c (struct key_collection_item_s): New.
(struct key_collection_s): New.
(search_control_file): Add art r_lnr.
(add_to_key_array): New.
(free_key_array): New.
(compare_key_collection_items): New.
(ssh_send_available_keys): Rewrite to return the keys in the user
given order.
--

GnuPG-bug-id: 6212

We now first return the keys from active cards, followed by keys
listed in sshcontrol, finally from those with the "Use-for-ssh" key
attribute.  Keys from active cards are returned sorted by their S/N.
Keys from sshcontrol are returned in the order they are given in that
file.  Use-for-ssh keys are ordered by the value assigned to that key
attribute.  The values for the latter are clamped at 99999.
2023-02-01 09:27:28 +01:00
..
agent.h ssh: Allow to define the order in which keys are returned. 2023-02-01 09:27:28 +01:00
all-tests.scm tests: Support semihosted environment. 2022-12-01 13:59:06 +09:00
cache.c agent: Fix SEGV when debuging for cache enabled. 2020-10-09 13:57:29 +09:00
call-daemon.c agent,gpg,tools: Fix use of log_get_fd. 2022-06-22 13:34:06 +09:00
call-pinentry.c agent: Do not consider --min-passphrase-len for the magic wand. 2022-06-27 18:06:40 +02:00
call-scd.c agent: Handle USAGE information in KEYINFO. 2022-05-26 14:01:03 +09:00
call-tpm2d.c agent: always use hexgrip when storing key password 2022-01-24 22:22:05 +01:00
ChangeLog-2011 Fix typos 2015-10-28 10:20:17 +01:00
command-ssh.c ssh: Allow to define the order in which keys are returned. 2023-02-01 09:27:28 +01:00
command.c agent: Allow arguments to "scd serialno" in restricted mode. 2022-12-12 14:43:01 +01:00
cvt-openpgp.c agent: Fix import of protected v5 keys. 2022-12-01 10:12:21 +01: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 agent: Move confirmation handling into findkey.c. 2022-05-20 13:43:08 +09:00
divert-tpm2.c agent: Move confirmation handling into findkey.c. 2022-05-20 13:43:08 +09:00
findkey.c ssh: Allow to define the order in which keys are returned. 2023-02-01 09:27:28 +01:00
genkey.c agent,common,dirmngr,tests,tools: Remove spawn PREEXEC argument. 2022-10-20 14:19:19 +09:00
gpg-agent-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpg-agent.c common: Slight redefinition of nvc_get_boolean. 2023-01-24 10:07:02 +01:00
keyformat.txt ssh: Allow to define the order in which keys are returned. 2023-02-01 09:27:28 +01:00
learncard.c agent: Allow signing with card key even without a stub key. 2020-02-13 11:45:41 +01:00
Makefile.am build: Remove Windows CE support. 2022-12-09 14:06:08 +09:00
pkdecrypt.c agent: Move confirmation handling into findkey.c. 2022-05-20 13:43:08 +09:00
pksign.c agent: Move confirmation handling into findkey.c. 2022-05-20 13:43:08 +09:00
preset-passphrase.c Use gpgrt's new option parser for the tools. 2020-02-21 20:28:47 +01:00
protect-tool.c agent: Avoid memory leaks in error code paths. 2021-05-20 13:38:07 +02:00
protect.c agent,dirmngr,gpg,scd: Clean up for modern compiler. 2022-09-14 12:08:58 +09:00
sexp-secret.c agent: Avoid uninitialized buffer. 2021-11-12 15:36:02 +09:00
t-protect.c build: Always use EXTERN_UNLESS_MAIN_MODULE pattern. 2020-02-10 16:50:47 +01:00
trans.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
trustlist.c agent: Allow trustlist on Windows in Unicode homedirs. 2022-11-10 14:55:38 +01:00
w32main.c Spelling cleanup. 2020-02-18 18:07:46 -05:00
w32main.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00