diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | configure.ac | 9 | ||||
-rw-r--r-- | misc.c | 4 | ||||
-rw-r--r-- | readconf.c | 6 | ||||
-rw-r--r-- | servconf.c | 6 | ||||
-rw-r--r-- | ssh-keyscan.c | 6 |
6 files changed, 31 insertions, 2 deletions
@@ -159,6 +159,8 @@ | |||
159 | - (dtucker) [Makefile.in] .c files do not belong in the OBJ lines. | 159 | - (dtucker) [Makefile.in] .c files do not belong in the OBJ lines. |
160 | - (dtucker) [sftp.c] ifdef out the sftp completion bits for platforms that | 160 | - (dtucker) [sftp.c] ifdef out the sftp completion bits for platforms that |
161 | don't have libedit. | 161 | don't have libedit. |
162 | - (dtucker) [configure.ac misc.c readconf.c servconf.c ssh-keyscan.c] Make | ||
163 | RoutingDomain an unsupported option on platforms that don't have it. | ||
162 | 164 | ||
163 | 20091226 | 165 | 20091226 |
164 | - (tim) [contrib/cygwin/Makefile] Install ssh-copy-id and ssh-copy-id.1 | 166 | - (tim) [contrib/cygwin/Makefile] Install ssh-copy-id and ssh-copy-id.1 |
diff --git a/configure.ac b/configure.ac index 94f049fc6..424114015 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.432 2009/12/08 02:39:48 dtucker Exp $ | 1 | # $Id: configure.ac,v 1.433 2010/01/08 08:53:52 dtucker Exp $ |
2 | # | 2 | # |
3 | # Copyright (c) 1999-2004 Damien Miller | 3 | # Copyright (c) 1999-2004 Damien Miller |
4 | # | 4 | # |
@@ -15,7 +15,7 @@ | |||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 | 16 | ||
17 | AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) | 17 | AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org) |
18 | AC_REVISION($Revision: 1.432 $) | 18 | AC_REVISION($Revision: 1.433 $) |
19 | AC_CONFIG_SRCDIR([ssh.c]) | 19 | AC_CONFIG_SRCDIR([ssh.c]) |
20 | 20 | ||
21 | AC_CONFIG_HEADER(config.h) | 21 | AC_CONFIG_HEADER(config.h) |
@@ -1623,6 +1623,11 @@ if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "x | |||
1623 | ) | 1623 | ) |
1624 | fi | 1624 | fi |
1625 | 1625 | ||
1626 | AC_CHECK_DECL(SO_RDOMAIN, | ||
1627 | AC_DEFINE(USE_ROUTINGDOMAIN, 1, [Enable rdomain/VRF support]), , | ||
1628 | [#include <sys/types.h> | ||
1629 | #include <sys/socket.h>]) | ||
1630 | |||
1626 | dnl see whether mkstemp() requires XXXXXX | 1631 | dnl see whether mkstemp() requires XXXXXX |
1627 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | 1632 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then |
1628 | AC_MSG_CHECKING([for (overly) strict mkstemp]) | 1633 | AC_MSG_CHECKING([for (overly) strict mkstemp]) |
@@ -155,6 +155,7 @@ set_nodelay(int fd) | |||
155 | int | 155 | int |
156 | socket_rdomain(int domain, int type, int protocol, int rdomain) | 156 | socket_rdomain(int domain, int type, int protocol, int rdomain) |
157 | { | 157 | { |
158 | #ifdef USE_ROUTINGDOMAIN | ||
158 | int sock, ipproto = IPPROTO_IP; | 159 | int sock, ipproto = IPPROTO_IP; |
159 | 160 | ||
160 | if ((sock = socket(domain, type, protocol)) == -1) | 161 | if ((sock = socket(domain, type, protocol)) == -1) |
@@ -186,6 +187,7 @@ socket_rdomain(int domain, int type, int protocol, int rdomain) | |||
186 | } | 187 | } |
187 | 188 | ||
188 | return (sock); | 189 | return (sock); |
190 | #endif | ||
189 | } | 191 | } |
190 | 192 | ||
191 | /* Characters considered whitespace in strsep calls. */ | 193 | /* Characters considered whitespace in strsep calls. */ |
@@ -273,6 +275,7 @@ a2port(const char *s) | |||
273 | return (int)port; | 275 | return (int)port; |
274 | } | 276 | } |
275 | 277 | ||
278 | #ifdef USE_ROUTINGDOMAIN | ||
276 | int | 279 | int |
277 | a2rdomain(const char *s) | 280 | a2rdomain(const char *s) |
278 | { | 281 | { |
@@ -284,6 +287,7 @@ a2rdomain(const char *s) | |||
284 | return -1; | 287 | return -1; |
285 | return (int)rdomain; | 288 | return (int)rdomain; |
286 | } | 289 | } |
290 | #endif | ||
287 | 291 | ||
288 | int | 292 | int |
289 | a2tun(const char *s, int *remote) | 293 | a2tun(const char *s, int *remote) |
diff --git a/readconf.c b/readconf.c index 40fe8f694..47c77472a 100644 --- a/readconf.c +++ b/readconf.c | |||
@@ -229,7 +229,11 @@ static struct { | |||
229 | { "permitlocalcommand", oPermitLocalCommand }, | 229 | { "permitlocalcommand", oPermitLocalCommand }, |
230 | { "visualhostkey", oVisualHostKey }, | 230 | { "visualhostkey", oVisualHostKey }, |
231 | { "useroaming", oUseRoaming }, | 231 | { "useroaming", oUseRoaming }, |
232 | #ifdef USE_ROUTINGDOMAIN | ||
232 | { "routingdomain", oRDomain }, | 233 | { "routingdomain", oRDomain }, |
234 | #else | ||
235 | { "routingdomain", oUnsupported }, | ||
236 | #endif | ||
233 | #ifdef JPAKE | 237 | #ifdef JPAKE |
234 | { "zeroknowledgepasswordauthentication", | 238 | { "zeroknowledgepasswordauthentication", |
235 | oZeroKnowledgePasswordAuthentication }, | 239 | oZeroKnowledgePasswordAuthentication }, |
@@ -920,6 +924,7 @@ parse_int: | |||
920 | intptr = &options->use_roaming; | 924 | intptr = &options->use_roaming; |
921 | goto parse_flag; | 925 | goto parse_flag; |
922 | 926 | ||
927 | #ifdef USE_ROUTINGDOMAIN | ||
923 | case oRDomain: | 928 | case oRDomain: |
924 | arg = strdelim(&s); | 929 | arg = strdelim(&s); |
925 | if (!arg || *arg == '\0') | 930 | if (!arg || *arg == '\0') |
@@ -932,6 +937,7 @@ parse_int: | |||
932 | if (*activep) | 937 | if (*activep) |
933 | options->rdomain = value; | 938 | options->rdomain = value; |
934 | break; | 939 | break; |
940 | #endif | ||
935 | 941 | ||
936 | case oDeprecated: | 942 | case oDeprecated: |
937 | debug("%s line %d: Deprecated option \"%s\"", | 943 | debug("%s line %d: Deprecated option \"%s\"", |
diff --git a/servconf.c b/servconf.c index 2cdc480e6..9ad08ce87 100644 --- a/servconf.c +++ b/servconf.c | |||
@@ -424,7 +424,11 @@ static struct { | |||
424 | { "match", sMatch, SSHCFG_ALL }, | 424 | { "match", sMatch, SSHCFG_ALL }, |
425 | { "permitopen", sPermitOpen, SSHCFG_ALL }, | 425 | { "permitopen", sPermitOpen, SSHCFG_ALL }, |
426 | { "forcecommand", sForceCommand, SSHCFG_ALL }, | 426 | { "forcecommand", sForceCommand, SSHCFG_ALL }, |
427 | #ifdef USE_ROUTINGDOMAIN | ||
427 | { "routingdomain", sRDomain, SSHCFG_GLOBAL }, | 428 | { "routingdomain", sRDomain, SSHCFG_GLOBAL }, |
429 | #else | ||
430 | { "routingdomain", sUnsupported, SSHCFG_GLOBAL }, | ||
431 | #endif | ||
428 | { "chrootdirectory", sChrootDirectory, SSHCFG_ALL }, | 432 | { "chrootdirectory", sChrootDirectory, SSHCFG_ALL }, |
429 | { NULL, sBadOption, 0 } | 433 | { NULL, sBadOption, 0 } |
430 | }; | 434 | }; |
@@ -1296,6 +1300,7 @@ process_server_config_line(ServerOptions *options, char *line, | |||
1296 | *charptr = xstrdup(arg); | 1300 | *charptr = xstrdup(arg); |
1297 | break; | 1301 | break; |
1298 | 1302 | ||
1303 | #ifdef USE_ROUTINGDOMAIN | ||
1299 | case sRDomain: | 1304 | case sRDomain: |
1300 | intptr = &options->rdomain; | 1305 | intptr = &options->rdomain; |
1301 | arg = strdelim(&cp); | 1306 | arg = strdelim(&cp); |
@@ -1308,6 +1313,7 @@ process_server_config_line(ServerOptions *options, char *line, | |||
1308 | if (*intptr == -1) | 1313 | if (*intptr == -1) |
1309 | *intptr = value; | 1314 | *intptr = value; |
1310 | break; | 1315 | break; |
1316 | #endif | ||
1311 | 1317 | ||
1312 | case sDeprecated: | 1318 | case sDeprecated: |
1313 | logit("%s line %d: Deprecated option %s", | 1319 | logit("%s line %d: Deprecated option %s", |
diff --git a/ssh-keyscan.c b/ssh-keyscan.c index faeb9e13e..086c0d345 100644 --- a/ssh-keyscan.c +++ b/ssh-keyscan.c | |||
@@ -807,11 +807,17 @@ main(int argc, char **argv) | |||
807 | IPv4or6 = AF_INET6; | 807 | IPv4or6 = AF_INET6; |
808 | break; | 808 | break; |
809 | case 'V': | 809 | case 'V': |
810 | #ifdef USE_ROUTINGDOMAIN | ||
810 | scan_rdomain = a2rdomain(optarg); | 811 | scan_rdomain = a2rdomain(optarg); |
811 | if (scan_rdomain == -1) { | 812 | if (scan_rdomain == -1) { |
812 | fprintf(stderr, "Bad rdomain '%s'\n", optarg); | 813 | fprintf(stderr, "Bad rdomain '%s'\n", optarg); |
813 | exit(1); | 814 | exit(1); |
814 | } | 815 | } |
816 | #else | ||
817 | fprintf(stderr, "RoutingDomain not supported on this " | ||
818 | "platform.\n"); | ||
819 | exit(1); | ||
820 | #endif | ||
815 | break; | 821 | break; |
816 | case '?': | 822 | case '?': |
817 | default: | 823 | default: |