summaryrefslogtreecommitdiffstats
path: root/fuzz/client.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2017-01-08 10:46:14 +0100
committerRichard Levitte <levitte@openssl.org>2017-01-09 22:45:47 +0100
commit18e3ab7bc4fd5711014d60ddf40cda25988e4e18 (patch)
treee8c7b621bc10b6f4ec550d695488e85c65944ced /fuzz/client.c
parentFix a memory leak in RSA_padding_add_PKCS1_OAEP_mgf1 (diff)
downloadopenssl-18e3ab7bc4fd5711014d60ddf40cda25988e4e18.tar.xz
openssl-18e3ab7bc4fd5711014d60ddf40cda25988e4e18.zip
Fix build issues with no-dh, no-dsa and no-ec
Reviewed-by: Kurt Roeckx <kurt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2192)
Diffstat (limited to 'fuzz/client.c')
-rw-r--r--fuzz/client.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fuzz/client.c b/fuzz/client.c
index 5723e4f1ba..8c31621645 100644
--- a/fuzz/client.c
+++ b/fuzz/client.c
@@ -37,9 +37,15 @@ int FuzzerInitialize(int *argc, char ***argv)
RAND_add("", 1, ENTROPY_NEEDED);
RAND_status();
RSA_get_default_method();
+#ifndef OPENSSL_NO_DSA
DSA_get_default_method();
+#endif
+#ifndef OPENSSL_NO_EC
EC_KEY_get_default_method();
+#endif
+#ifndef OPENSSL_NO_DH
DH_get_default_method();
+#endif
comp_methods = SSL_COMP_get_compression_methods();
OPENSSL_sk_sort((OPENSSL_STACK *)comp_methods);