diff options
author | Werner Koch <[email protected]> | 2016-01-08 16:22:32 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-01-08 16:22:32 +0000 |
commit | 4970868d8d84d3a64b067e5aafc9f097621758d3 (patch) | |
tree | aeee7248153198e8165421721bb23597d17176b1 /g10/main.h | |
parent | gpg: Add an exact search flag to the PK struct. (diff) | |
download | gnupg-4970868d8d84d3a64b067e5aafc9f097621758d3.tar.gz gnupg-4970868d8d84d3a64b067e5aafc9f097621758d3.zip |
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 <[email protected]>
Diffstat (limited to 'g10/main.h')
-rw-r--r-- | g10/main.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 ); |