When OPENSSL_NO_DEPRECATED is defined, deprecated functions are (or should
[openssl.git] / crypto / dh / dh_depr.c
index 3eb319e..acc05f2 100644 (file)
@@ -61,6 +61,9 @@
 #include <openssl/bn.h>
 #include <openssl/dh.h>
 
+static void *dummy=&dummy;
+
+#ifndef OPENSSL_NO_DEPRECATED
 DH *DH_generate_parameters(int prime_len, int generator,
             void (*callback)(int,int,void *), void *cb_arg)
        {
@@ -77,3 +80,4 @@ DH *DH_generate_parameters(int prime_len, int generator,
        DH_free(ret);
        return NULL;
        }
+#endif