Rename FIPS_mode_set and FIPS_mode. Theses symbols will be defined in
[openssl.git] / crypto / dsa / dsa_depr.c
index c16315389b39f01c1fe3298cdb2416bbc525171f..f2da680eb466a4c1ff9d888b887fc920a8cfd347 100644 (file)
@@ -69,6 +69,8 @@
 #define HASH    EVP_sha1()
 #endif 
 
+static void *dummy=&dummy;
+
 #ifndef OPENSSL_NO_SHA
 
 #include <stdio.h>
@@ -80,6 +82,7 @@
 #include <openssl/rand.h>
 #include <openssl/sha.h>
 
+#ifndef OPENSSL_NO_DEPRECATED
 DSA *DSA_generate_parameters(int bits,
                unsigned char *seed_in, int seed_len,
                int *counter_ret, unsigned long *h_ret,
@@ -91,9 +94,7 @@ DSA *DSA_generate_parameters(int bits,
 
        if ((ret=DSA_new()) == NULL) return NULL;
 
-       cb.ver = 1;
-       cb.arg = cb_arg;
-       cb.cb_1 = callback;
+       BN_GENCB_set_old(&cb, callback, cb_arg);
 
        if(DSA_generate_parameters_ex(ret, bits, seed_in, seed_len,
                                counter_ret, h_ret, &cb))
@@ -102,3 +103,4 @@ DSA *DSA_generate_parameters(int bits,
        return NULL;
        }
 #endif
+#endif