1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-26 01:52:45 +02:00
gnupg/agent
Werner Koch 9011625791 ssh: Improve key lookup for many keys.
* agent/command-ssh.c: Remove dirent.h.
(control_file_s): Add struct item.
(rewind_control_file): New.
(search_control_file): Factor code out to ...
(read_control_file_item): New.
(ssh_handler_request_identities): Change to iterate over entries in
sshcontrol.
--

Formerly we scanned the private key directory for matches of entries
in sshcontrol.  This patch changes it to scan the sshcontrol file and
thus considers only keys configured there.  The rationale for this is
that it is common to have only a few ssh keys but many private keys.
Even if that assumption does not hold true, the scanning of the
sshcontrol file is faster than reading the directory and only then
scanning the ssh control for each directory entry.

(cherry picked from commit d2777f84be)
2013-07-01 20:31:11 +02:00
..
agent.h Support a confirm flag for ssh. 2011-08-04 14:42:31 +02:00
cache.c Fix bug #1053 2009-05-15 11:16:28 +00:00
call-pinentry.c agent: kill pinentry by SIGINT, fixing a bug to be killed by SIGINT. 2013-02-04 09:07:22 +09:00
call-scd.c scd: Rename 'keypad' to 'pinpad'. 2013-02-08 09:20:43 +09:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-02 19:28:02 +01:00
command-ssh.c ssh: Improve key lookup for many keys. 2013-07-01 20:31:11 +02:00
command.c New option --ssh-fpr for the agent:KEYINFO command 2011-08-04 15:00:58 +02:00
divert-scd.c scd: Rename 'keypad' to 'pinpad'. 2013-02-08 09:20:43 +09:00
findkey.c agent: Fix wrong use of gcry_sexp_build_array 2012-11-02 16:32:15 +01:00
genkey.c Fix typos spotted during translations 2012-08-24 10:34:43 +02:00
gpg-agent-w32info.rc w32: Add icons and version information. 2013-05-07 21:17:04 +02:00
gpg-agent.c Add provisions to build with Libgcrypt 1.6. 2012-05-24 10:55:11 +02:00
keyformat.txt Add more passphrase policy rules. 2007-08-28 17:48:13 +00:00
learncard.c app-openpgp changes 2009-06-09 19:11:28 +00:00
Makefile.am w32: Add icons and version information. 2013-05-07 21:17:04 +02:00
minip12.c A bunch of minor changes 2009-12-21 16:19:09 +00:00
minip12.h Changed to GPLv3. 2007-07-04 19:49:40 +00:00
pkdecrypt.c Fix bug #1053 2009-05-15 11:16:28 +00:00
pksign.c Fix bug #1053 2009-05-15 11:16:28 +00:00
preset-passphrase.c w32: Almost everywhere include winsock2.h before windows.h. 2013-04-23 18:06:46 +02:00
protect-tool.c Implement dynamic S2K count computation for GPGSM 2009-12-14 20:18:53 +00:00
protect.c w32: Almost everywhere include winsock2.h before windows.h. 2013-04-23 18:06:46 +02:00
t-protect.c Marked all unused args on non-W32 platforms. 2008-10-20 13:53:23 +00:00
trans.c Changed to GPLv3. 2007-07-04 19:49:40 +00:00
trustlist.c Fix realloc usage. Fixes bug#1163. 2009-12-02 19:02:33 +00:00
w32main.c Fixed segv in gpg-agent (command marktrusted). 2008-05-27 12:03:50 +00:00
w32main.h Changed to GPLv3. 2007-07-04 19:49:40 +00:00