From 579422c85cf606c0ae1d4baf414010dc21da657a Mon Sep 17 00:00:00 2001 From: Pauli Date: Tue, 28 Jan 2020 15:14:18 +1000 Subject: Deprecate the ECDSA and EV_KEY_METHOD functions. Use of the low level ECDSA and EC_KEY_METHOD functions has been informally discouraged for a long time. We now formally deprecate them. Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/10960) --- fuzz/asn1.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fuzz') diff --git a/fuzz/asn1.c b/fuzz/asn1.c index 17eaf6ca35..0dbccb0698 100644 --- a/fuzz/asn1.c +++ b/fuzz/asn1.c @@ -15,6 +15,9 @@ * asn1 */ +/* We need to use some deprecated APIs */ +#define OPENSSL_SUPPRESS_DEPRECATED + #include #include #include @@ -340,7 +343,9 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len) DO_TEST_PRINT_OFFSET(EC_GROUP, d2i_ECPKParameters, i2d_ECPKParameters, ECPKParameters_print); DO_TEST_PRINT_OFFSET(EC_KEY, d2i_ECPrivateKey, i2d_ECPrivateKey, EC_KEY_print); DO_TEST(EC_KEY, d2i_ECParameters, i2d_ECParameters, ECParameters_print); +# ifndef OPENSSL_NO_DEPRECATED_3_0 DO_TEST_NO_PRINT(ECDSA_SIG, d2i_ECDSA_SIG, i2d_ECDSA_SIG); +# endif #endif DO_TEST_PRINT_PCTX(EVP_PKEY, d2i_AutoPrivateKey, i2d_PrivateKey, EVP_PKEY_print_private); DO_TEST(SSL_SESSION, d2i_SSL_SESSION, i2d_SSL_SESSION, SSL_SESSION_print); -- cgit v1.2.3