* information regarding copyright ownership.
*/
-/* $Id: dst_openssl.h,v 1.11 2011/03/12 04:59:48 tbox Exp $ */
-
#ifndef DST_OPENSSL_H
#define DST_OPENSSL_H 1
* _cb;
* #endif
*/
-#define BN_GENCB_free(x) (x = NULL);
+#define BN_GENCB_free(x) ((void)0)
#define BN_GENCB_new() (&_cb)
#define BN_GENCB_get_arg(x) ((x)->arg)
#endif
/*
* Principal Author: Brian Wellington
- * $Id: openssldh_link.c,v 1.20 2011/01/11 23:47:13 tbox Exp $
*/
#ifdef OPENSSL
DST_R_OPENSSLFAILURE));
}
BN_GENCB_free(cb);
+ cb = NULL;
#else
dh = DH_generate_parameters(key->key_size, generator,
NULL, NULL);
DST_R_OPENSSLFAILURE));
}
BN_GENCB_free(cb);
+ cb = NULL;
#else
dsa = DSA_generate_parameters(key->key_size, rand_array,
ISC_SHA1_DIGESTLENGTH, NULL, NULL,
if (RSA_generate_key_ex(rsa, key->key_size, e, cb)) {
BN_free(e);
BN_GENCB_free(cb);
+ cb = NULL;
SET_FLAGS(rsa);
#if USE_EVP
key->keydata.pkey = pkey;
BN_free(e);
if (rsa != NULL)
RSA_free(rsa);
- if (cb != NULL)
+ if (cb != NULL) {
BN_GENCB_free(cb);
+ cb = NULL;
+ }
return (dst__openssl_toresult(ret));
#else
RSA *rsa;