diff options
author | Colin Watson <cjwatson@debian.org> | 2005-09-14 15:20:11 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2005-09-14 15:20:11 +0000 |
commit | f88d86e05895671b9d036c26566a41752ec86c31 (patch) | |
tree | 383ab296992965df981866a84ad9cbd5f18866e3 /kex.c | |
parent | 2a6f54a2f2f0efe713ee5f6eb9e2099aef0ed516 (diff) |
* Add remaining pieces of Kerberos support (closes: #275472):
- Add GSSAPI key exchange support from
http://www.sxw.org.uk/computing/patches/openssh.html (thanks, Stephen
Frost).
Diffstat (limited to 'kex.c')
-rw-r--r-- | kex.c | 9 |
1 files changed, 9 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,11 @@ 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_SHA1, | ||
307 | sizeof(KEX_GSS_SHA1)-1) == 0) { | ||
308 | k->kex_type = KEX_GSS_GRP1_SHA1; | ||
309 | #endif | ||
301 | } else | 310 | } else |
302 | fatal("bad kex alg %s", k->name); | 311 | fatal("bad kex alg %s", k->name); |
303 | } | 312 | } |