From c085892802304eeef846cd575249d1aab9a0efcb Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 16 Aug 2011 00:07:36 +0200 Subject: pki: Add ssh_pki_import_pubkey_file(). --- include/libssh/libssh.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/libssh') diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index b74a2bcb..cbe9ff1d 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -440,6 +440,9 @@ LIBSSH_API int ssh_pki_import_pubkey_base64(ssh_session session, LIBSSH_API int ssh_pki_import_pubkey_blob(ssh_session session, const ssh_string key_blob, ssh_key *pkey); +LIBSSH_API int ssh_pki_import_pubkey_file(ssh_session session, + const char *filename, + ssh_key *pkey); LIBSSH_API ssh_string ssh_pki_publickey_to_blob(const ssh_key key); LIBSSH_API int ssh_userauth_pki_pubkey(ssh_session session, const char *username, -- cgit