Backwards-compatibility subject to OPENSSL_API_COMPAT
[openssl.git] / crypto / dsa / dsa_depr.c
index 0b18776845a975cc3b21e1d437b5ba27cbd8b8a0..90dbd8d18e8eefd4a50285f488e32bc02ce44503 100644 (file)
@@ -75,8 +75,9 @@ static void *dummy = &dummy;
 #include <openssl/dsa.h>
 #include <openssl/rand.h>
 #include <openssl/sha.h>
+#include <openssl/opensslconf.h>
 
-#ifndef OPENSSL_NO_DEPRECATED
+#if OPENSSL_API_COMPAT < 0x00908000L
 DSA *DSA_generate_parameters(int bits,
                              unsigned char *seed_in, int seed_len,
                              int *counter_ret, unsigned long *h_ret,