SSH-agent / OpenPGP auth subkey issues

NIIBE Yutaka gniibe at fsij.org
Wed May 7 15:06:10 CEST 2014


On 2014-05-07 at 12:24 +0200, Kristian Fiskerstrand wrote:
> #not working 072432883ededa15bf35f80102e0572746ba4af1#
> $ ssh-add -l
> The agent has no identities.

Reading the change of 072432883ededa15bf35f80102e0572746ba4af1,
it might be comment handling problem.

Here is a possible fix.  Sorry, I don't test it (my auth
keys are in my tokens).

diff --git a/agent/command-ssh.c b/agent/command-ssh.c
index a814681..d619324 100644
--- a/agent/command-ssh.c
+++ b/agent/command-ssh.c
@@ -2331,7 +2331,9 @@ ssh_send_key_public (estream_t stream, gcry_sexp_t key,
   else
     {
       err = ssh_key_extract_comment (key, &comment);
-      if (!err)
+      if (err)
+        err = stream_write_cstring (stream, "(none)");
+      else
         err = stream_write_cstring (stream, comment);
     }
   if (err)
-- 





More information about the Gnupg-devel mailing list