mirror of
https://github.com/openssl/openssl.git
synced 2025-03-25 20:00:44 +08:00
use supplied ENGINE in genrsa
This commit is contained in:
parent
ff2fdbf2f8
commit
a05b8d0ede
@ -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…
x
Reference in New Issue
Block a user