diff options
author | Werner Koch <[email protected]> | 2021-12-20 16:15:14 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2021-12-20 18:34:34 +0000 |
commit | afe5fcda52e88438c7a7278117b2e03f510a9c1c (patch) | |
tree | f04be1318b1f98ba582d58389091ecc50d7f400d /g10/main.h | |
parent | gpg: Allow passing a keygrip as description to pinentry. (diff) | |
download | gnupg-afe5fcda52e88438c7a7278117b2e03f510a9c1c.tar.gz gnupg-afe5fcda52e88438c7a7278117b2e03f510a9c1c.zip |
gpg: Add unfinished code for --export-secret-ssh-key.
* g10/gpg.c (exportSecretSshKey): New.
(opts): Add --export-secret-ssh-key.
(main): Implement option.
* g10/export.c (do_export_stream): Factor keywrap key code out to ...
(get_keywrap_key): new.
(mb_write_uint32, mb_write_uint8)
(mb_write_data, mb_write_cstring)
(mb_write_string, mb_write_mpi): New.
(receive_raw_seckey_from_agent): New.
(export_secret_ssh_key): New.
--
Due to time constraints the code is not yet ready.
Diffstat (limited to 'g10/main.h')
-rw-r--r-- | g10/main.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/main.h b/g10/main.h index 05ec8c26a..e5308744a 100644 --- a/g10/main.h +++ b/g10/main.h @@ -443,6 +443,7 @@ gpg_error_t write_keyblock_to_output (kbnode_t keyblock, int with_armor, unsigned int options); gpg_error_t export_ssh_key (ctrl_t ctrl, const char *userid); +gpg_error_t export_secret_ssh_key (ctrl_t ctrl, const char *userid); /*-- dearmor.c --*/ int dearmor_file( const char *fname ); |