aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-10-09 22:28:03 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2009-10-09 22:28:03 +0200
commit1e0e8a54939ca84c6cd20a5447059364e789b720 (patch)
tree689aee381a3ca2db47f76535567f5f9b84b33f30 /examples
parent4b65aea401d8c6413384184143fa9147bad71060 (diff)
downloadlibssh-1e0e8a54939ca84c6cd20a5447059364e789b720.tar.gz
libssh-1e0e8a54939ca84c6cd20a5447059364e789b720.tar.xz
libssh-1e0e8a54939ca84c6cd20a5447059364e789b720.zip
samplessh uses ssh_options_getopt()
Diffstat (limited to 'examples')
-rw-r--r--examples/samplesshd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/samplesshd.c b/examples/samplesshd.c
index 4c8a5bc9..e9757f20 100644
--- a/examples/samplesshd.c
+++ b/examples/samplesshd.c
@@ -46,6 +46,7 @@ int main(int argc, char **argv){
sshbind=ssh_bind_new();
session=ssh_new();
+ ssh_options_getopt(session,&argc,argv);
ssh_bind_options_set(sshbind, SSH_BIND_OPTIONS_DSAKEY, KEYS_FOLDER "ssh_host_dsa_key");
ssh_bind_options_set(sshbind, SSH_BIND_OPTIONS_RSAKEY, KEYS_FOLDER "ssh_host_rsa_key");