#define HASH EVP_sha1()
#endif
+static void *dummy=&dummy;
+
#ifndef OPENSSL_NO_SHA
#include <stdio.h>
#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,
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))
return NULL;
}
#endif
+#endif