1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-10 13:04:23 +01: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 781e9746dff21fc2721373205e63d1d09722d590)
This commit is contained in:
Werner Koch 2013-07-01 18:29:21 +02:00
parent 7ce72c97bf
commit fc7d033d8e

View File

@ -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);