use supplied ENGINE in genrsa

This commit is contained in:
Dr. Stephen Henson 2010-03-01 14:22:02 +00:00
parent 002d3fe863
commit 2e630b1847

View file

@ -265,8 +265,11 @@ bad:
BIO_printf(bio_err,"Generating RSA private key, %d bit long modulus\n",
num);
#ifdef OPENSSL_NO_ENGINE
rsa = RSA_new();
#else
rsa = RSA_new_method(e);
#endif
if (!rsa)
goto err;