diff options
author | Vic Lee <llyzs@163.com> | 2009-12-30 12:02:36 +0800 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-12-30 19:05:37 +0100 |
commit | 1944dc8b5ff51daae505b5ee32c3b82c2ac4bf86 (patch) | |
tree | 77484c5868708229fb7467f74b08f50f99dfd200 /include | |
parent | f2ca2d50b5ef5559e66ed6cced71eaadec8ef866 (diff) | |
download | libssh-1944dc8b5ff51daae505b5ee32c3b82c2ac4bf86.tar.gz libssh-1944dc8b5ff51daae505b5ee32c3b82c2ac4bf86.tar.xz libssh-1944dc8b5ff51daae505b5ee32c3b82c2ac4bf86.zip |
Add new API function ssh_userauth_privatekey_file().
Signed-off-by: Vic Lee <llyzs@163.com>
Signed-off-by: Andreas Schneider <mail@cynapses.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/libssh.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 114b9931..350113c2 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -433,6 +433,8 @@ LIBSSH_API int ssh_userauth_none(ssh_session session, const char *username); LIBSSH_API int ssh_userauth_offer_pubkey(ssh_session session, const char *username, int type, ssh_string publickey); LIBSSH_API int ssh_userauth_password(ssh_session session, const char *username, const char *password); LIBSSH_API int ssh_userauth_pubkey(ssh_session session, const char *username, ssh_string publickey, ssh_private_key privatekey); +LIBSSH_API int ssh_userauth_privatekey_file(ssh_session session, const char *username, + const char *filename, const char *passphrase); LIBSSH_API const char *ssh_version(int req_version); LIBSSH_API int ssh_write_knownhost(ssh_session session); |