summaryrefslogtreecommitdiffstats
path: root/fuzz
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-01-28 15:14:18 +1000
committerPauli <paul.dale@oracle.com>2020-02-04 20:02:55 +1000
commit579422c85cf606c0ae1d4baf414010dc21da657a (patch)
treede91afc5811afe2f3f9970afedbae4bafc0ca27b /fuzz
parent5e3f9aa4e9a915f25b36bb085515d4786a253385 (diff)
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 <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/10960)
Diffstat (limited to 'fuzz')
-rw-r--r--fuzz/asn1.c5
1 files changed, 5 insertions, 0 deletions
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 <data structure>
*/
+/* We need to use some deprecated APIs */
+#define OPENSSL_SUPPRESS_DEPRECATED
+
#include <stdio.h>
#include <string.h>
#include <openssl/asn1.h>
@@ -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);