=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/readconf.c,v retrieving revision 1.70 retrieving revision 1.71 diff -u -r1.70 -r1.71 --- src/usr.bin/ssh/readconf.c 2001/04/02 14:20:23 1.70 +++ src/usr.bin/ssh/readconf.c 2001/04/07 08:55:17 1.71 @@ -12,7 +12,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: readconf.c,v 1.70 2001/04/02 14:20:23 stevesk Exp $"); +RCSID("$OpenBSD: readconf.c,v 1.71 2001/04/07 08:55:17 markus Exp $"); #include "ssh.h" #include "xmalloc.h" @@ -110,7 +110,7 @@ oUsePrivilegedPort, oLogLevel, oCiphers, oProtocol, oMacs, oGlobalKnownHostsFile2, oUserKnownHostsFile2, oPubkeyAuthentication, oKbdInteractiveAuthentication, oKbdInteractiveDevices, oHostKeyAlias, - oPreferredAuthentications + oDynamicForward, oPreferredAuthentications } OpCodes; /* Textual representations of the tokens. */ @@ -172,6 +172,7 @@ { "keepalive", oKeepAlives }, { "numberofpasswordprompts", oNumberOfPasswordPrompts }, { "loglevel", oLogLevel }, + { "dynamicforward", oDynamicForward }, { "preferredauthentications", oPreferredAuthentications }, { NULL, 0 } }; @@ -580,6 +581,18 @@ if (*activep) add_local_forward(options, fwd_port, buf, fwd_host_port); break; + + case oDynamicForward: + arg = strdelim(&s); + if (!arg || *arg == '\0') + fatal("%.200s line %d: Missing port argument.", + filename, linenum); + if (arg[0] < '0' || arg[0] > '9') + fatal("%.200s line %d: Badly formatted port number.", + filename, linenum); + fwd_port = atoi(arg); + add_local_forward(options, fwd_port, "socks4", 0); + break; case oHost: *activep = 0;