From 136efd6ed571bcc8c8ad18ac2bed203eb8a9d8bc Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 27 Nov 2013 20:08:02 +0100 Subject: pki: Add ssh_pki_import_privkey_file(). --- include/libssh/libssh.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/libssh') diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 0641d2c4..f3da1e3c 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -513,6 +513,11 @@ LIBSSH_API int ssh_pki_import_privkey_file(const char *filename, ssh_auth_callback auth_fn, void *auth_data, ssh_key *pkey); +LIBSSH_API int ssh_pki_export_privkey_file(const ssh_key privkey, + const char *passphrase, + ssh_auth_callback auth_fn, + void *auth_data, + const char *filename); LIBSSH_API int ssh_pki_import_pubkey_base64(const char *b64_key, enum ssh_keytypes_e type, -- cgit