From: Dr. David von Oheimb Date: Sun, 29 Nov 2020 19:23:57 +0000 (+0100) Subject: fuzz/server.c: Fix build error on OPENSSL_NO_{DSA,EC,DEPECATED_3_0} X-Git-Tag: openssl-3.0.0-alpha10~176 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e3a4d3bb615fbebe053efafdd4a040737dc2197c;p=thirdparty%2Fopenssl.git fuzz/server.c: Fix build error on OPENSSL_NO_{DSA,EC,DEPECATED_3_0} Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/13110) --- diff --git a/fuzz/server.c b/fuzz/server.c index 4055b582227..26c1c172cfc 100644 --- a/fuzz/server.c +++ b/fuzz/server.c @@ -521,7 +521,10 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len) RSA *privkey; #endif const uint8_t *bufp; +#if !defined(OPENSSL_NO_DSA) || !defined(OPENSSL_NO_EC) \ + || !defined(OPENSSL_NO_DEPRECATED_3_0) EVP_PKEY *pkey; +#endif X509 *cert; #ifndef OPENSSL_NO_EC EC_KEY *ecdsakey = NULL;