diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2005-08-29 16:14:39 +0000 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2005-08-29 16:14:39 +0000 |
commit | f0008adac6f9f5b6b2a06541bda7502139759ede (patch) | |
tree | 4c76a7f95f603709bf4c6c5483bdce8f2904a75c /libssh | |
parent | c767514dae4bc9f8a52d74f378650f55f4f1a34f (diff) | |
download | libssh-f0008adac6f9f5b6b2a06541bda7502139759ede.tar.gz libssh-f0008adac6f9f5b6b2a06541bda7502139759ede.tar.xz libssh-f0008adac6f9f5b6b2a06541bda7502139759ede.zip |
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
Diffstat (limited to 'libssh')
-rw-r--r-- | libssh/options.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |