summaryrefslogtreecommitdiff
path: root/fuzz
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-10-14 17:31:59 +0100
committerMatt Caswell <matt@openssl.org>2020-11-27 11:04:54 +0000
commitbb64795f962e756b9ac5f033bd512b609c3b1468 (patch)
tree72c30c1d5140cbe745cb47f2b49f5220dd9ddc91 /fuzz
parent4d8e8a2d3781b6ca7c453492ee8e06885c812e73 (diff)
downloadopenssl-new-bb64795f962e756b9ac5f033bd512b609c3b1468.tar.gz
Remove fuzzing of deprecated functions in a no-deprecated build
d2i_DHparams and i2d_DHparam as well as the equivalent DHX functions are deprecated. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13138)
Diffstat (limited to 'fuzz')
-rw-r--r--fuzz/asn1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fuzz/asn1.c b/fuzz/asn1.c
index 9a4e454b2f..a6f1405881 100644
--- a/fuzz/asn1.c
+++ b/fuzz/asn1.c
@@ -331,7 +331,7 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len)
DO_TEST_NO_PRINT(ESS_SIGNING_CERT, d2i_ESS_SIGNING_CERT, i2d_ESS_SIGNING_CERT);
DO_TEST_NO_PRINT(ESS_CERT_ID_V2, d2i_ESS_CERT_ID_V2, i2d_ESS_CERT_ID_V2);
DO_TEST_NO_PRINT(ESS_SIGNING_CERT_V2, d2i_ESS_SIGNING_CERT_V2, i2d_ESS_SIGNING_CERT_V2);
-#ifndef OPENSSL_NO_DH
+#if !defined(OPENSSL_NO_DH) && !defined(OPENSSL_NO_DEPRECATED_3_0)
DO_TEST_NO_PRINT(DH, d2i_DHparams, i2d_DHparams);
DO_TEST_NO_PRINT(DH, d2i_DHxparams, i2d_DHxparams);
#endif