Skip to content

Commit

Permalink
use supplied ENGINE in genrsa
Browse files Browse the repository at this point in the history
  • Loading branch information
snhenson committed Mar 1, 2010
1 parent 002d3fe commit 2e630b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/genrsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,11 @@ int MAIN(int argc, char **argv)

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;

Expand Down

0 comments on commit 2e630b1

Please sign in to comment.