diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-04-30 13:06:24 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-04-30 13:06:24 +0000 |
commit | e0f88041945df494d1242cbaf3984edeeb68dd72 (patch) | |
tree | 395dd2c1429c69837ec7a83ca2b79af9c73ed996 /readconf.c | |
parent | 8a188a80274be0fb3d68049a8ba6cda58aab46f4 (diff) | |
download | openssh-git-e0f88041945df494d1242cbaf3984edeeb68dd72.tar.gz |
- markus@cvs.openbsd.org 2001/04/30 11:18:52
[readconf.c readconf.h ssh.1 ssh.c sshconnect.c]
implement 'ssh -b bind_address' like 'telnet -b'
Diffstat (limited to 'readconf.c')
-rw-r--r-- | readconf.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -12,7 +12,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: readconf.c,v 1.76 2001/04/17 10:53:25 markus Exp $"); +RCSID("$OpenBSD: readconf.c,v 1.77 2001/04/30 11:18:51 markus Exp $"); #include "ssh.h" #include "xmalloc.h" @@ -111,7 +111,7 @@ typedef enum { oGlobalKnownHostsFile2, oUserKnownHostsFile2, oPubkeyAuthentication, oKbdInteractiveAuthentication, oKbdInteractiveDevices, oHostKeyAlias, oDynamicForward, oPreferredAuthentications, oHostbasedAuthentication, - oHostKeyAlgorithms + oHostKeyAlgorithms, oBindAddress } OpCodes; /* Textual representations of the tokens. */ @@ -177,6 +177,7 @@ static struct { { "dynamicforward", oDynamicForward }, { "preferredauthentications", oPreferredAuthentications }, { "hostkeyalgorithms", oHostKeyAlgorithms }, + { "bindaddress", oBindAddress }, { NULL, 0 } }; @@ -459,6 +460,10 @@ parse_string: charptr = &options->preferred_authentications; goto parse_string; + case oBindAddress: + charptr = &options->bind_address; + goto parse_string; + case oProxyCommand: charptr = &options->proxy_command; string = xstrdup(""); @@ -761,6 +766,7 @@ initialize_options(Options * options) options->num_remote_forwards = 0; options->log_level = (LogLevel) - 1; options->preferred_authentications = NULL; + options->bind_address = NULL; } /* |