summaryrefslogtreecommitdiffstats
path: root/fuzz/asn1.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-10-14 18:31:59 +0200
committerMatt Caswell <matt@openssl.org>2020-11-27 12:04:54 +0100
commitbb64795f962e756b9ac5f033bd512b609c3b1468 (patch)
tree72c30c1d5140cbe745cb47f2b49f5220dd9ddc91 /fuzz/asn1.c
parentDeprecate the DHparams and DHxparams PEM routines (diff)
downloadopenssl-bb64795f962e756b9ac5f033bd512b609c3b1468.tar.xz
openssl-bb64795f962e756b9ac5f033bd512b609c3b1468.zip
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/asn1.c')
-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