diff options
Diffstat (limited to 'kex.c')
-rw-r--r-- | kex.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -306,8 +306,12 @@ choose_kex(Kex *k, char *client, char *server) | |||
306 | k->kex_type = KEX_DH_GEX_SHA1; | 306 | k->kex_type = KEX_DH_GEX_SHA1; |
307 | k->evp_md = EVP_sha1(); | 307 | k->evp_md = EVP_sha1(); |
308 | #ifdef GSSAPI | 308 | #ifdef GSSAPI |
309 | } else if (strncmp(k->name, KEX_GSS_SHA1, | 309 | } else if (strncmp(k->name, KEX_GSS_GEX_SHA1_ID, |
310 | sizeof(KEX_GSS_SHA1)-1) == 0) { | 310 | sizeof(KEX_GSS_GEX_SHA1_ID)-1) == 0) { |
311 | k->kex_type = KEX_GSS_GEX_SHA1; | ||
312 | k->evp_md = EVP_sha1(); | ||
313 | } else if (strncmp(k->name, KEX_GSS_GRP1_SHA1_ID, | ||
314 | sizeof(KEX_GSS_GRP1_SHA1_ID)-1) == 0) { | ||
311 | k->kex_type = KEX_GSS_GRP1_SHA1; | 315 | k->kex_type = KEX_GSS_GRP1_SHA1; |
312 | k->evp_md = EVP_sha1(); | 316 | k->evp_md = EVP_sha1(); |
313 | #endif | 317 | #endif |