mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
ssh: Do not look for a card based ssh key if scdaemon is disabled.
* agent/command-ssh.c (ssh_handler_request_identities): Do not call
card_key_available if the scdaemon is disabled.
--
(back ported from commit id 781e9746df
)
This commit is contained in:
parent
7ce72c97bf
commit
fc7d033d8e
1 changed files with 2 additions and 1 deletions
|
@ -1926,7 +1926,8 @@ ssh_handler_request_identities (ctrl_t ctrl,
|
|||
reader - this should be allowed even without being listed in
|
||||
sshcontrol. */
|
||||
|
||||
if (!card_key_available (ctrl, &key_public, &cardsn))
|
||||
if (!opt.disable_scdaemon
|
||||
&& !card_key_available (ctrl, &key_public, &cardsn))
|
||||
{
|
||||
err = ssh_send_key_public (key_blobs, key_public, cardsn);
|
||||
gcry_sexp_release (key_public);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue