aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/legacy.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-28 14:19:07 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-28 14:19:07 +0200
commit29ecccb96d495c5a99481fea19a4906d596ed925 (patch)
tree394a14b08e8d25cbf72f8fe855b1b2a7313d30b6 /include/libssh/legacy.h
parent16b47496c1a91dbdf139528caf39326d456cd7d3 (diff)
downloadlibssh-29ecccb96d495c5a99481fea19a4906d596ed925.tar.gz
libssh-29ecccb96d495c5a99481fea19a4906d596ed925.tar.xz
libssh-29ecccb96d495c5a99481fea19a4906d596ed925.zip
keyfiles: Make ssh_try_publickey_from_file() legacy.
Diffstat (limited to 'include/libssh/legacy.h')
-rw-r--r--include/libssh/legacy.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libssh/legacy.h b/include/libssh/legacy.h
index db151f86..0cbcb1ee 100644
--- a/include/libssh/legacy.h
+++ b/include/libssh/legacy.h
@@ -97,6 +97,9 @@ LIBSSH_API ssh_string publickey_from_file(ssh_session session, const char *filen
int *type);
LIBSSH_API ssh_public_key publickey_from_privatekey(ssh_private_key prv);
LIBSSH_API ssh_string publickey_to_string(ssh_public_key key);
+LIBSSH_API int ssh_try_publickey_from_file(ssh_session session, const char *keyfile,
+ ssh_string *publickey, int *type);
+
LIBSSH_API ssh_message ssh_message_retrieve(ssh_session session, uint32_t packettype);
LIBSSH_API void string_burn(ssh_string str);
LIBSSH_API ssh_string string_copy(ssh_string str);