From 4970868d8d84d3a64b067e5aafc9f097621758d3 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 8 Jan 2016 17:22:32 +0100 Subject: 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 --- g10/main.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'g10/main.h') diff --git a/g10/main.h b/g10/main.h index 06821722a..503f262b9 100644 --- a/g10/main.h +++ b/g10/main.h @@ -368,6 +368,8 @@ gpg_error_t receive_seckey_from_agent (ctrl_t ctrl, gcry_cipher_hd_t cipherhd, char **cache_nonce_addr, const char *hexgrip, PKT_public_key *pk); +gpg_error_t export_ssh_key (ctrl_t ctrl, const char *userid); + /*-- dearmor.c --*/ int dearmor_file( const char *fname ); int enarmor_file( const char *fname ); -- cgit v1.2.3