From 29ecccb96d495c5a99481fea19a4906d596ed925 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 28 Aug 2011 14:19:07 +0200 Subject: keyfiles: Make ssh_try_publickey_from_file() legacy. --- include/libssh/legacy.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/libssh/legacy.h') 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); -- cgit