Added support for ~/.ssh/config.

This commit is contained in:
Andreas Schneider
2009-09-08 11:33:46 +02:00
parent de8808cb47
commit 4845642611
6 changed files with 348 additions and 0 deletions

View File

@@ -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 */

View File

@@ -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);