diff options
Diffstat (limited to 'regress/misc/kexfuzz/kexfuzz.c')
-rw-r--r-- | regress/misc/kexfuzz/kexfuzz.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/regress/misc/kexfuzz/kexfuzz.c b/regress/misc/kexfuzz/kexfuzz.c index 2894d3a1e..8535980b0 100644 --- a/regress/misc/kexfuzz/kexfuzz.c +++ b/regress/misc/kexfuzz/kexfuzz.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: kexfuzz.c,v 1.1 2016/03/04 02:30:37 djm Exp $ */ | 1 | /* $OpenBSD: kexfuzz.c,v 1.2 2016/09/16 01:01:41 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Fuzz harness for KEX code | 3 | * Fuzz harness for KEX code |
4 | * | 4 | * |
@@ -231,12 +231,17 @@ do_kex_with_key(const char *kex, struct sshkey *prvkey, int *c2s, int *s2c, | |||
231 | sshbuf_free(state); | 231 | sshbuf_free(state); |
232 | ASSERT_PTR_NE(server2->kex, NULL); | 232 | ASSERT_PTR_NE(server2->kex, NULL); |
233 | /* XXX we need to set the callbacks */ | 233 | /* XXX we need to set the callbacks */ |
234 | #ifdef WITH_OPENSSL | ||
234 | server2->kex->kex[KEX_DH_GRP1_SHA1] = kexdh_server; | 235 | server2->kex->kex[KEX_DH_GRP1_SHA1] = kexdh_server; |
235 | server2->kex->kex[KEX_DH_GRP14_SHA1] = kexdh_server; | 236 | server2->kex->kex[KEX_DH_GRP14_SHA1] = kexdh_server; |
237 | server2->kex->kex[KEX_DH_GRP14_SHA256] = kexdh_server; | ||
238 | server2->kex->kex[KEX_DH_GRP16_SHA512] = kexdh_server; | ||
239 | server2->kex->kex[KEX_DH_GRP18_SHA512] = kexdh_server; | ||
236 | server2->kex->kex[KEX_DH_GEX_SHA1] = kexgex_server; | 240 | server2->kex->kex[KEX_DH_GEX_SHA1] = kexgex_server; |
237 | server2->kex->kex[KEX_DH_GEX_SHA256] = kexgex_server; | 241 | server2->kex->kex[KEX_DH_GEX_SHA256] = kexgex_server; |
238 | #ifdef OPENSSL_HAS_ECC | 242 | # ifdef OPENSSL_HAS_ECC |
239 | server2->kex->kex[KEX_ECDH_SHA2] = kexecdh_server; | 243 | server2->kex->kex[KEX_ECDH_SHA2] = kexecdh_server; |
244 | # endif | ||
240 | #endif | 245 | #endif |
241 | server2->kex->kex[KEX_C25519_SHA256] = kexc25519_server; | 246 | server2->kex->kex[KEX_C25519_SHA256] = kexc25519_server; |
242 | server2->kex->load_host_public_key = server->kex->load_host_public_key; | 247 | server2->kex->load_host_public_key = server->kex->load_host_public_key; |