summaryrefslogtreecommitdiff
path: root/regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2014-06-11 06:27:16 +1000
committerDarren Tucker <dtucker@zip.com.au>2014-06-11 06:27:16 +1000
commit67508ac2563c33d582be181a3e777c65f549d22f (patch)
tree7d783949caa53394992cf8918a221043645d11c4 /regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c
parent6482d90a65459a88c18c925368525855832272b3 (diff)
- (dtucker) [regress/unittests/sshbuf/test_sshbuf_getput_crypto.c
regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c] Only do NISTP256 curve tests if OpenSSL has them.
Diffstat (limited to 'regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c')
-rw-r--r--regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c b/regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c
index eed2d6025..a5e577d3f 100644
--- a/regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c
+++ b/regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c
@@ -54,10 +54,12 @@ attempt_parse_blob(u_char *blob, size_t len)
54 bn = BN_new(); 54 bn = BN_new();
55 sshbuf_get_bignum2(p1, bn); 55 sshbuf_get_bignum2(p1, bn);
56 BN_clear_free(bn); 56 BN_clear_free(bn);
57#ifdef OPENSSL_HAS_NISTP256
57 eck = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); 58 eck = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
58 ASSERT_PTR_NE(eck, NULL); 59 ASSERT_PTR_NE(eck, NULL);
59 sshbuf_get_eckey(p1, eck); 60 sshbuf_get_eckey(p1, eck);
60 EC_KEY_free(eck); 61 EC_KEY_free(eck);
62#endif
61 sshbuf_free(p1); 63 sshbuf_free(p1);
62} 64}
63 65