gpg: New command --export-ssh-key
authorWerner Koch <wk@gnupg.org>
Fri, 8 Jan 2016 16:22:32 +0000 (17:22 +0100)
committerWerner Koch <wk@gnupg.org>
Fri, 8 Jan 2016 16:22:32 +0000 (17:22 +0100)
commit4970868d8d84d3a64b067e5aafc9f097621758d3
treeaeee7248153198e8165421721bb23597d17176b1
parent34bca9cd4b8517795833cb754b0d5b1dd33b08ed
gpg: New command --export-ssh-key

* g10/export.c: Include membuf.h and host2net.h.
(key_to_sshblob): New.
(export_ssh_key): New.
* g10/gpg.c (aExportSshKey): New.
(opts): Add command.
(main): Implement that command.
--

GnuPG-bug-id: 2212

I have done only a few tests rights now and the ECDSA curves do not
yet work.  However ssh-keygen -l accept RSA and ed25519 keys exported
using this command.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/export.c
g10/gpg.c
g10/main.h