use supplied ENGINE in genrsa
This commit is contained in:
parent
002d3fe863
commit
2e630b1847
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue