From f0008adac6f9f5b6b2a06541bda7502139759ede Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Mon, 29 Aug 2005 16:14:39 +0000 Subject: changed config file name, take rsa,dsa and port into account git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@28 7dcaeef0-15fb-0310-b436-a5af3365683c --- libssh/options.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libssh') diff --git a/libssh/options.c b/libssh/options.c index 3695a83e..813e3ad3 100644 --- a/libssh/options.c +++ b/libssh/options.c @@ -45,6 +45,7 @@ SSH_OPTIONS *ssh_options_new(){ void ssh_options_set_port(SSH_OPTIONS *opt, unsigned int port){ opt->port=port&0xffff; + opt->bindport=port&0xffff; } SSH_OPTIONS *ssh_options_copy(SSH_OPTIONS *opt){ SSH_OPTIONS *ret=ssh_options_new(); @@ -391,7 +392,7 @@ int ssh_options_getopt(SSH_OPTIONS *options, int *argcptr, char **argv){ if(cont && localaddr) ssh_options_set_bind(options,localaddr,0); ssh_options_set_port(options,port); - options->bindport=port; + //options->bindport=port; ssh_options_allow_ssh1(options,ssh1); ssh_options_allow_ssh2(options,ssh2); -- cgit