aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-11-27 20:08:02 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-11-27 22:54:40 +0100
commitf1c56e4309fdaeef611322321205bfe801efd14e (patch)
tree8f6bc7a3c7aaa067e68222ff954d4ddeb4609211 /include
parent1fdc1025a87792c740fa8cdd8463801392fa918e (diff)
downloadlibssh-f1c56e4309fdaeef611322321205bfe801efd14e.tar.gz
libssh-f1c56e4309fdaeef611322321205bfe801efd14e.tar.xz
libssh-f1c56e4309fdaeef611322321205bfe801efd14e.zip
pki: Add ssh_pki_import_privkey_file().
Diffstat (limited to 'include')
-rw-r--r--include/libssh/libssh.h5
1 files changed, 5 insertions, 0 deletions
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,