[git] GnuPG - branch, master, updated. gnupg-2.1.10-101-gb2da395

by Werner Koch cvs at cvs.gnupg.org
Fri Jan 8 20:42:31 CET 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, master has been updated
       via  b2da3951a395366bf1644bc4c4eb42d657effe17 (commit)
      from  4970868d8d84d3a64b067e5aafc9f097621758d3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b2da3951a395366bf1644bc4c4eb42d657effe17
Author: Werner Koch <wk at gnupg.org>
Date:   Fri Jan 8 20:37:25 2016 +0100

    gpg: Support ECDSA keys with --export-ssh-key.
    
    * g10/export.c (key_to_sshblob): Add hack for ECDSA.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/g10/export.c b/g10/export.c
index f415c1b..3f06934 100644
--- a/g10/export.c
+++ b/g10/export.c
@@ -1369,6 +1369,12 @@ key_to_sshblob (membuf_t *mb, const char *identifier, ...)
   ulongtobuf (nbuf, (ulong)strlen (identifier));
   put_membuf (mb, nbuf, 4);
   put_membuf_str (mb, identifier);
+  if (!strncmp (identifier, "ecdsa-sha2-", 11))
+    {
+      ulongtobuf (nbuf, (ulong)strlen (identifier+11));
+      put_membuf (mb, nbuf, 4);
+      put_membuf_str (mb, identifier+11);
+    }
   va_start (arg_ptr, identifier);
   while ((a = va_arg (arg_ptr, gcry_mpi_t)))
     {

-----------------------------------------------------------------------

Summary of changes:
 g10/export.c | 6 ++++++
 1 file changed, 6 insertions(+)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list