summaryrefslogtreecommitdiff
path: root/kex.c
diff options
context:
space:
mode:
Diffstat (limited to 'kex.c')
-rw-r--r--kex.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/kex.c b/kex.c
index cd71be9ca..e0b9d5872 100644
--- a/kex.c
+++ b/kex.c
@@ -42,6 +42,10 @@ RCSID("$OpenBSD: kex.c,v 1.65 2005/11/04 05:15:59 djm 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 */
@@ -301,6 +305,12 @@ choose_kex(Kex *k, char *client, char *server)
301 } else if (strcmp(k->name, KEX_DHGEX_SHA1) == 0) { 305 } else if (strcmp(k->name, KEX_DHGEX_SHA1) == 0) {
302 k->kex_type = KEX_DH_GEX_SHA1; 306 k->kex_type = KEX_DH_GEX_SHA1;
303 k->evp_md = EVP_sha1(); 307 k->evp_md = EVP_sha1();
308#ifdef GSSAPI
309 } else if (strncmp(k->name, KEX_GSS_SHA1,
310 sizeof(KEX_GSS_SHA1)-1) == 0) {
311 k->kex_type = KEX_GSS_GRP1_SHA1;
312 k->evp_md = EVP_sha1();
313#endif
304 } else 314 } else
305 fatal("bad kex alg %s", k->name); 315 fatal("bad kex alg %s", k->name);
306} 316}