diff options
Diffstat (limited to 'regress/unittests/sshbuf/test_sshbuf_getput_crypto.c')
-rw-r--r-- | regress/unittests/sshbuf/test_sshbuf_getput_crypto.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/regress/unittests/sshbuf/test_sshbuf_getput_crypto.c b/regress/unittests/sshbuf/test_sshbuf_getput_crypto.c index 53290a64c..4f3b5a8ea 100644 --- a/regress/unittests/sshbuf/test_sshbuf_getput_crypto.c +++ b/regress/unittests/sshbuf/test_sshbuf_getput_crypto.c | |||
@@ -44,6 +44,7 @@ sshbuf_getput_crypto_tests(void) | |||
44 | 0x70, 0x60, 0x50, 0x40, 0x30, 0x20, 0x10, 0x00, | 44 | 0x70, 0x60, 0x50, 0x40, 0x30, 0x20, 0x10, 0x00, |
45 | 0x7f, 0xff, 0x11 | 45 | 0x7f, 0xff, 0x11 |
46 | }; | 46 | }; |
47 | #ifdef OPENSSL_HAS_NISTP256 | ||
47 | int ec256_nid = NID_X9_62_prime256v1; | 48 | int ec256_nid = NID_X9_62_prime256v1; |
48 | char *ec256_x = "0C828004839D0106AA59575216191357" | 49 | char *ec256_x = "0C828004839D0106AA59575216191357" |
49 | "34B451459DADB586677EF9DF55784999"; | 50 | "34B451459DADB586677EF9DF55784999"; |
@@ -62,6 +63,7 @@ sshbuf_getput_crypto_tests(void) | |||
62 | }; | 63 | }; |
63 | EC_KEY *eck; | 64 | EC_KEY *eck; |
64 | EC_POINT *ecp; | 65 | EC_POINT *ecp; |
66 | #endif | ||
65 | int r; | 67 | int r; |
66 | 68 | ||
67 | #define MKBN(b, bnn) \ | 69 | #define MKBN(b, bnn) \ |
@@ -345,6 +347,7 @@ sshbuf_getput_crypto_tests(void) | |||
345 | sshbuf_free(p1); | 347 | sshbuf_free(p1); |
346 | TEST_DONE(); | 348 | TEST_DONE(); |
347 | 349 | ||
350 | #ifdef OPENSSL_HAS_NISTP256 | ||
348 | TEST_START("sshbuf_put_ec"); | 351 | TEST_START("sshbuf_put_ec"); |
349 | eck = EC_KEY_new_by_curve_name(ec256_nid); | 352 | eck = EC_KEY_new_by_curve_name(ec256_nid); |
350 | ASSERT_PTR_NE(eck, NULL); | 353 | ASSERT_PTR_NE(eck, NULL); |
@@ -396,5 +399,6 @@ sshbuf_getput_crypto_tests(void) | |||
396 | BN_free(bn); | 399 | BN_free(bn); |
397 | BN_free(bn2); | 400 | BN_free(bn2); |
398 | TEST_DONE(); | 401 | TEST_DONE(); |
402 | #endif | ||
399 | } | 403 | } |
400 | 404 | ||