diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshd.c,v 1.364 2008/07/10 18:08:11 markus Exp $ */ | 1 | /* $OpenBSD: sshd.c,v 1.366 2009/01/22 10:02:34 djm 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 |
@@ -117,7 +117,6 @@ | |||
117 | #include "ssh-gss.h" | 117 | #include "ssh-gss.h" |
118 | #endif | 118 | #endif |
119 | #include "monitor_wrap.h" | 119 | #include "monitor_wrap.h" |
120 | #include "monitor_fdpass.h" | ||
121 | #include "version.h" | 120 | #include "version.h" |
122 | 121 | ||
123 | #ifdef USE_SECURITY_SESSION_API | 122 | #ifdef USE_SECURITY_SESSION_API |
@@ -1373,7 +1372,7 @@ main(int ac, char **av) | |||
1373 | exit(1); | 1372 | exit(1); |
1374 | } | 1373 | } |
1375 | options.ports[options.num_ports++] = a2port(optarg); | 1374 | options.ports[options.num_ports++] = a2port(optarg); |
1376 | if (options.ports[options.num_ports-1] == 0) { | 1375 | if (options.ports[options.num_ports-1] <= 0) { |
1377 | fprintf(stderr, "Bad port number.\n"); | 1376 | fprintf(stderr, "Bad port number.\n"); |
1378 | exit(1); | 1377 | exit(1); |
1379 | } | 1378 | } |
@@ -2354,9 +2353,11 @@ do_ssh2_kex(void) | |||
2354 | kex->kex[KEX_DH_GEX_SHA1] = kexgex_server; | 2353 | kex->kex[KEX_DH_GEX_SHA1] = kexgex_server; |
2355 | kex->kex[KEX_DH_GEX_SHA256] = kexgex_server; | 2354 | kex->kex[KEX_DH_GEX_SHA256] = kexgex_server; |
2356 | #ifdef GSSAPI | 2355 | #ifdef GSSAPI |
2357 | kex->kex[KEX_GSS_GRP1_SHA1] = kexgss_server; | 2356 | if (options.gss_keyex) { |
2358 | kex->kex[KEX_GSS_GRP14_SHA1] = kexgss_server; | 2357 | kex->kex[KEX_GSS_GRP1_SHA1] = kexgss_server; |
2359 | kex->kex[KEX_GSS_GEX_SHA1] = kexgss_server; | 2358 | kex->kex[KEX_GSS_GRP14_SHA1] = kexgss_server; |
2359 | kex->kex[KEX_GSS_GEX_SHA1] = kexgss_server; | ||
2360 | } | ||
2360 | #endif | 2361 | #endif |
2361 | kex->server = 1; | 2362 | kex->server = 1; |
2362 | kex->client_version_string=client_version_string; | 2363 | kex->client_version_string=client_version_string; |