diff options
author | NIIBE Yutaka <[email protected]> | 2022-06-28 01:25:03 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2022-06-28 01:25:03 +0000 |
commit | 39422f1d63e2d9691d8fe4bfceb0d1e43cd914bd (patch) | |
tree | 2e5e7a7a2941bca4fc411b4b9fbf364878258b21 /agent/command-ssh.c | |
parent | agent: Do not consider --min-passphrase-len for the magic wand. (diff) | |
download | gnupg-39422f1d63e2d9691d8fe4bfceb0d1e43cd914bd.tar.gz gnupg-39422f1d63e2d9691d8fe4bfceb0d1e43cd914bd.zip |
agent: Don't assume "OPENPGP.3" key means "Use-for-ssh:".
* agent/command-ssh.c: Fix comments.
* agent/findkey.c (public_key_from_file): Remove "OPENPGP.3" check.
--
GnuPG-bug-id: 5996
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'agent/command-ssh.c')
-rw-r--r-- | agent/command-ssh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/agent/command-ssh.c b/agent/command-ssh.c index 2c18796bc..ce2b5df9d 100644 --- a/agent/command-ssh.c +++ b/agent/command-ssh.c @@ -2495,11 +2495,11 @@ ssh_send_available_keys (ctrl_t ctrl, estream_t key_blobs, u32 *key_counter_p) if (err) return err; - /* First, get information keys available on card(s). */ + /* First, get information keys available on cards on-line. */ keyinfo_on_cards = get_ssh_keyinfo_on_cards (ctrl); - /* Then, look at all keys with "OPENPGP.3" idstring. */ /* Look at all the registered and non-disabled keys, in sshcontrol. */ + /* And, look at all keys with "Use-for-ssh:" flag. */ dirname = make_filename_try (gnupg_homedir (), GNUPG_PRIVATE_KEYS_DIR, NULL); if (!dirname) |