summaryrefslogtreecommitdiffstats
path: root/include/libssh/libssh.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-07 15:00:35 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-08 15:28:31 +0200
commitf55cd7de431018bc1799aa9616006569d90f0fcc (patch)
tree9b5ba494a2c88090306067ebf58c0c25b196eae2 /include/libssh/libssh.h
parent9569d053d8f419ebd7fcdecd2c6e18ff86e34c86 (diff)
downloadlibssh-f55cd7de431018bc1799aa9616006569d90f0fcc.tar.gz
libssh-f55cd7de431018bc1799aa9616006569d90f0fcc.tar.xz
libssh-f55cd7de431018bc1799aa9616006569d90f0fcc.zip
pki: Improve ssh_key_import_private().
Diffstat (limited to 'include/libssh/libssh.h')
-rw-r--r--include/libssh/libssh.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index 577ddb7..7357129 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -429,6 +429,10 @@ LIBSSH_API int ssh_pki_import_privkey_base64(ssh_session session,
const char *b64_key,
const char *passphrase,
ssh_key *pkey);
+LIBSSH_API int ssh_key_import_private(ssh_session session,
+ const char *filename,
+ const char *passphrase,
+ ssh_key *pkey);
LIBSSH_API int ssh_userauth_pki_pubkey(ssh_session session, const char *username,
ssh_string publickey, ssh_key privatekey);
LIBSSH_API void ssh_print_hexa(const char *descr, const unsigned char *what, size_t len);