diff options
Diffstat (limited to 'kex.c')
-rw-r--r-- | kex.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -42,6 +42,10 @@ RCSID("$OpenBSD: kex.c,v 1.64 2005/07/25 11:59:39 markus Exp $"); | |||
42 | #include "dispatch.h" | 42 | #include "dispatch.h" |
43 | #include "monitor.h" | 43 | #include "monitor.h" |
44 | 44 | ||
45 | #ifdef GSSAPI | ||
46 | #include "ssh-gss.h" | ||
47 | #endif | ||
48 | |||
45 | #define KEX_COOKIE_LEN 16 | 49 | #define KEX_COOKIE_LEN 16 |
46 | 50 | ||
47 | /* prototype */ | 51 | /* prototype */ |
@@ -298,6 +302,14 @@ choose_kex(Kex *k, char *client, char *server) | |||
298 | k->kex_type = KEX_DH_GRP14_SHA1; | 302 | k->kex_type = KEX_DH_GRP14_SHA1; |
299 | } else if (strcmp(k->name, KEX_DHGEX) == 0) { | 303 | } else if (strcmp(k->name, KEX_DHGEX) == 0) { |
300 | k->kex_type = KEX_DH_GEX_SHA1; | 304 | k->kex_type = KEX_DH_GEX_SHA1; |
305 | #ifdef GSSAPI | ||
306 | } else if (strncmp(k->name, KEX_GSS_GEX_SHA1_ID, | ||
307 | sizeof(KEX_GSS_GEX_SHA1_ID)-1) == 0) { | ||
308 | k->kex_type = KEX_GSS_GEX_SHA1; | ||
309 | } else if (strncmp(k->name, KEX_GSS_GRP1_SHA1_ID, | ||
310 | sizeof(KEX_GSS_GRP1_SHA1_ID)-1) == 0) { | ||
311 | k->kex_type = KEX_GSS_GRP1_SHA1; | ||
312 | #endif | ||
301 | } else | 313 | } else |
302 | fatal("bad kex alg %s", k->name); | 314 | fatal("bad kex alg %s", k->name); |
303 | } | 315 | } |