Fix an endless loop in rsa_builtin_keygen.
authorRich Salz <rsalz@openssl.org>
Mon, 6 Mar 2017 14:54:17 +0000 (09:54 -0500)
committerRich Salz <rsalz@openssl.org>
Mon, 6 Mar 2017 14:54:17 +0000 (09:54 -0500)
commit697958313ba48c8ebc832ab8f9f2b845fb7acfd4
treedc36d140b8395bb3872627fa15e44073461e909d
parente498d95454cf58685e659ec8ac5c57131d7f2de7
Fix an endless loop in rsa_builtin_keygen.

And add a test case.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2757)
crypto/rsa/rsa_gen.c
test/recipes/15-test_genrsa.t [new file with mode: 0644]