diff options
author | Werner Koch <wk@gnupg.org> | 2011-11-28 10:39:36 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2011-11-28 10:48:25 +0100 |
commit | 781e9746dff21fc2721373205e63d1d09722d590 (patch) | |
tree | 46305dc1d16c613346eac4a2c399e6b25b7165df /agent/command-ssh.c | |
parent | PC/SC pinpad support. (diff) | |
download | gnupg2-781e9746dff21fc2721373205e63d1d09722d590.tar.xz gnupg2-781e9746dff21fc2721373205e63d1d09722d590.zip |
Improve ssh card key diagnostic message.
* command-ssh.c (card_key_available): Change wording of no key
diagnostic.
(ssh_handler_request_identities): Do not call card_key_available
if the scdaemon is disabled.
Diffstat (limited to '')
-rw-r--r-- | agent/command-ssh.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/agent/command-ssh.c b/agent/command-ssh.c index 7b4d47924..54e56eac0 100644 --- a/agent/command-ssh.c +++ b/agent/command-ssh.c @@ -1710,7 +1710,7 @@ card_key_available (ctrl_t ctrl, gcry_sexp_t *r_pk, char **cardsn) } if (err) { - log_error (_("error getting default authentication keyID of card: %s\n"), + log_error (_("no authentication key for ssh on card: %s\n"), gpg_strerror (err)); xfree (serialno); return err; @@ -1924,7 +1924,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); |