summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-09-22 20:34:23 +0200
committerAndreas Schneider <mail@cynapses.org>2009-09-22 20:34:23 +0200
commitabd8b17a04488d1e625f37236185e3f45fa04d14 (patch)
treeb140d9d6090243fbff210847a04168f5dc3cd05c
parent343e6e482a7e008586a0c9cf60456e5381037af1 (diff)
downloadlibssh-abd8b17a04488d1e625f37236185e3f45fa04d14.tar.gz
libssh-abd8b17a04488d1e625f37236185e3f45fa04d14.tar.xz
libssh-abd8b17a04488d1e625f37236185e3f45fa04d14.zip
Fixed options used in server sample.
-rw-r--r--samplesshd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/samplesshd.c b/samplesshd.c
index 25f802c..a3d688e 100644
--- a/samplesshd.c
+++ b/samplesshd.c
@@ -49,9 +49,11 @@ int main(int argc, char **argv){
int auth=0;
int sftp=0;
int i;
- ssh_options_getopt(options,&argc,argv);
- ssh_options_set_dsa_server_key(options, KEYS_FOLDER "ssh_host_dsa_key");
- ssh_options_set_rsa_server_key(options, KEYS_FOLDER "ssh_host_rsa_key");
+ ssh_options_getopt(options, &argc, argv);
+
+ ssh_options_set(options, SSH_OPTIONS_SERVER_DSAKEY, KEYS_FOLDER "ssh_host_dsa_key");
+ ssh_options_set(options, SSH_OPTIONS_SERVER_RSAKEY, KEYS_FOLDER "ssh_host_rsa_key");
+
ssh_bind=ssh_bind_new();
ssh_bind_set_options(ssh_bind,options);
if(ssh_bind_listen(ssh_bind)<0){