summaryrefslogtreecommitdiff
path: root/kex.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2005-09-14 15:20:11 +0000
committerColin Watson <cjwatson@debian.org>2005-09-14 15:20:11 +0000
commitf88d86e05895671b9d036c26566a41752ec86c31 (patch)
tree383ab296992965df981866a84ad9cbd5f18866e3 /kex.c
parent2a6f54a2f2f0efe713ee5f6eb9e2099aef0ed516 (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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/kex.c b/kex.c
index 5dce335fe..e7147ae74 100644
--- a/kex.c
+++ b/kex.c
@@ -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}