Add predicatable RAND_METHOD to test ENGINE
authorDr. Stephen Henson <steve@openssl.org>
Sun, 6 Aug 2017 17:59:55 +0000 (18:59 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 6 Aug 2017 18:24:32 +0000 (19:24 +0100)
commitc57c32a8b1e381a5f272e64db349ebadc1ce4ff5
treee063f1194d265178a57e8f5fe1b11ca0d268b16a
parent69a978d35984bb27af336cffc252bdde51d36adb
Add predicatable RAND_METHOD to test ENGINE

The test ENGINE effectively used a predictable PRNG because it supplied
a bogus implementation of SHA256 which the old version of OpenSSL's PRNG
used. The new DRBG does not use SHA256 so it is no longer predictable
if the SHA256 implementation is replaced. Use an explicit predictable
PRNG instead.

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/4098)
engines/e_ossltest.c