summaryrefslogtreecommitdiff
path: root/readconf.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2010-01-10 10:31:12 +1100
committerDarren Tucker <dtucker@zip.com.au>2010-01-10 10:31:12 +1100
commit7bd98e7f74ebd8bd32157b607acedcb68201b7de (patch)
treeb62a62fcc4def0b22e48f6dde5e414a77e4d2244 /readconf.c
parent8c65f646a93ed2f61da65ba0ecf65a99bd585b79 (diff)
- dtucker@cvs.openbsd.org 2010/01/09 23:04:13
[channels.c ssh.1 servconf.c sshd_config.5 sshd.c channels.h servconf.h ssh-keyscan.1 ssh-keyscan.c readconf.c sshconnect.c misc.c ssh.c readconf.h scp.1 sftp.1 ssh_config.5 misc.h] Remove RoutingDomain from ssh since it's now not needed. It can be replaced with "route exec" or "nc -V" as a proxycommand. "route exec" also ensures that trafic such as DNS lookups stays withing the specified routingdomain. For example (from reyk): # route -T 2 exec /usr/sbin/sshd or inherited from the parent process $ route -T 2 exec sh $ ssh 10.1.2.3 ok deraadt@ markus@ stevesk@ reyk@
Diffstat (limited to 'readconf.c')
-rw-r--r--readconf.c22
1 files changed, 3 insertions, 19 deletions
diff --git a/readconf.c b/readconf.c
index 40fe8f694..d424c1697 100644
--- a/readconf.c
+++ b/readconf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: readconf.c,v 1.181 2009/12/29 16:38:41 stevesk Exp $ */ 1/* $OpenBSD: readconf.c,v 1.182 2010/01/09 23:04:13 dtucker Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -130,8 +130,8 @@ typedef enum {
130 oServerAliveInterval, oServerAliveCountMax, oIdentitiesOnly, 130 oServerAliveInterval, oServerAliveCountMax, oIdentitiesOnly,
131 oSendEnv, oControlPath, oControlMaster, oHashKnownHosts, 131 oSendEnv, oControlPath, oControlMaster, oHashKnownHosts,
132 oTunnel, oTunnelDevice, oLocalCommand, oPermitLocalCommand, 132 oTunnel, oTunnelDevice, oLocalCommand, oPermitLocalCommand,
133 oVisualHostKey, oUseRoaming, oRDomain, 133 oVisualHostKey, oUseRoaming, oZeroKnowledgePasswordAuthentication,
134 oZeroKnowledgePasswordAuthentication, oDeprecated, oUnsupported 134 oDeprecated, oUnsupported
135} OpCodes; 135} OpCodes;
136 136
137/* Textual representations of the tokens. */ 137/* Textual representations of the tokens. */
@@ -229,7 +229,6 @@ static struct {
229 { "permitlocalcommand", oPermitLocalCommand }, 229 { "permitlocalcommand", oPermitLocalCommand },
230 { "visualhostkey", oVisualHostKey }, 230 { "visualhostkey", oVisualHostKey },
231 { "useroaming", oUseRoaming }, 231 { "useroaming", oUseRoaming },
232 { "routingdomain", oRDomain },
233#ifdef JPAKE 232#ifdef JPAKE
234 { "zeroknowledgepasswordauthentication", 233 { "zeroknowledgepasswordauthentication",
235 oZeroKnowledgePasswordAuthentication }, 234 oZeroKnowledgePasswordAuthentication },
@@ -920,19 +919,6 @@ parse_int:
920 intptr = &options->use_roaming; 919 intptr = &options->use_roaming;
921 goto parse_flag; 920 goto parse_flag;
922 921
923 case oRDomain:
924 arg = strdelim(&s);
925 if (!arg || *arg == '\0')
926 fatal("%.200s line %d: Missing argument.",
927 filename, linenum);
928 value = a2rdomain(arg);
929 if (value == -1)
930 fatal("%.200s line %d: Bad rdomain.",
931 filename, linenum);
932 if (*activep)
933 options->rdomain = value;
934 break;
935
936 case oDeprecated: 922 case oDeprecated:
937 debug("%s line %d: Deprecated option \"%s\"", 923 debug("%s line %d: Deprecated option \"%s\"",
938 filename, linenum, keyword); 924 filename, linenum, keyword);
@@ -1083,7 +1069,6 @@ initialize_options(Options * options)
1083 options->local_command = NULL; 1069 options->local_command = NULL;
1084 options->permit_local_command = -1; 1070 options->permit_local_command = -1;
1085 options->use_roaming = -1; 1071 options->use_roaming = -1;
1086 options->rdomain = -1;
1087 options->visual_host_key = -1; 1072 options->visual_host_key = -1;
1088 options->zero_knowledge_password_authentication = -1; 1073 options->zero_knowledge_password_authentication = -1;
1089} 1074}
@@ -1232,7 +1217,6 @@ fill_default_options(Options * options)
1232 /* options->hostname will be set in the main program if appropriate */ 1217 /* options->hostname will be set in the main program if appropriate */
1233 /* options->host_key_alias should not be set by default */ 1218 /* options->host_key_alias should not be set by default */
1234 /* options->preferred_authentications will be set in ssh */ 1219 /* options->preferred_authentications will be set in ssh */
1235 /* options->rdomain should not be set by default */
1236} 1220}
1237 1221
1238/* 1222/*