{
case 1:
/* Deprecated-style callbacks */
- cb->cb_1(a, b, cb->arg);
+ cb->cb.cb_1(a, b, cb->arg);
return 1;
case 2:
/* New-style callbacks */
- return cb->cb_2(a, b, cb);
+ return cb->cb.cb_2(a, b, cb);
default:
break;
}
BN_CTX *ctx;
int checks = BN_prime_checks_for_size(bits);
+ BN_init(&t);
ctx=BN_CTX_new();
if (ctx == NULL) goto err;
- BN_init(&t);
loop:
/* make a random number and set the top and bottom bits */
if (add == NULL)