From 48456426112eefd3a852138d9c9e3eb4cf84d29b Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 8 Sep 2009 11:33:46 +0200 Subject: Added support for ~/.ssh/config. --- include/libssh/libssh.h | 1 + include/libssh/priv.h | 3 +++ 2 files changed, 4 insertions(+) (limited to 'include/libssh') diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 3ab9b49..7e4a99d 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -401,6 +401,7 @@ LIBSSH_API int ssh_options_set_dsa_server_key(SSH_OPTIONS *opt, const char *dsak LIBSSH_API int ssh_options_set_rsa_server_key(SSH_OPTIONS *opt, const char *rsakey); LIBSSH_API int ssh_options_set_auth_callback(SSH_OPTIONS *opt, ssh_auth_callback cb, void *userdata); +LIBSSH_API int ssh_options_parse_config(SSH_OPTIONS *opt, const char *filename); /* buffer.c */ diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 1318cb0..f24102f 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -634,6 +634,9 @@ void ssh_cleanup(SSH_SESSION *session); int ssh_send_banner(SSH_SESSION *session, int is_server); char *ssh_get_banner(SSH_SESSION *session); +/* config.c */ +int ssh_config_parse_file(ssh_options opt, const char *filename); + /* errors.c */ void ssh_set_error(void *error, int code, const char *descr, ...) PRINTF_ATTRIBUTE(3, 4); -- cgit