aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-09-08 11:33:46 +0200
committerAndreas Schneider <mail@cynapses.org>2009-09-15 17:26:13 +0200
commit48456426112eefd3a852138d9c9e3eb4cf84d29b (patch)
treec7fc17fb7197979d4f4160b6d56035880d59ae1e /include
parentde8808cb47470638359dc7eb8343552d3b94ec38 (diff)
downloadlibssh-48456426112eefd3a852138d9c9e3eb4cf84d29b.tar.gz
libssh-48456426112eefd3a852138d9c9e3eb4cf84d29b.tar.xz
libssh-48456426112eefd3a852138d9c9e3eb4cf84d29b.zip
Added support for ~/.ssh/config.
Diffstat (limited to 'include')
-rw-r--r--include/libssh/libssh.h1
-rw-r--r--include/libssh/priv.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index 3ab9b494..7e4a99d4 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 1318cb08..f24102ff 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);