summaryrefslogtreecommitdiffstats
path: root/sample.c
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 /sample.c
parentde8808cb47470638359dc7eb8343552d3b94ec38 (diff)
downloadlibssh-48456426112eefd3a852138d9c9e3eb4cf84d29b.tar.gz
libssh-48456426112eefd3a852138d9c9e3eb4cf84d29b.tar.xz
libssh-48456426112eefd3a852138d9c9e3eb4cf84d29b.zip
Added support for ~/.ssh/config.
Diffstat (limited to 'sample.c')
-rw-r--r--sample.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sample.c b/sample.c
index cc3df54..f028ceb 100644
--- a/sample.c
+++ b/sample.c
@@ -531,6 +531,9 @@ int main(int argc, char **argv){
ssh_options_free(options);
return 1;
}
+
+ ssh_options_parse_config(options, NULL);
+
session=ssh_new();
ssh_set_options(session,options);
if(ssh_connect(session)){