]> git.ipfire.org Git - thirdparty/openssl.git/commit
test-rand: return failure on not enough data, allow parent
authorPauli <pauli@openssl.org>
Mon, 25 Oct 2021 02:01:11 +0000 (12:01 +1000)
committerPauli <pauli@openssl.org>
Tue, 26 Oct 2021 10:03:37 +0000 (20:03 +1000)
commitf7bbebf831fd071ce8c4d1bbd8f02a4877456033
tree309ae6acbd73e916a799a07810b52ac477bcc312
parent5b945f08c9878651312d193b431e057aacbadd13
test-rand: return failure on not enough data, allow parent

The test-rand RNG was returning success when it had some but insufficient data.
Now, it returns failure and doesn't advance the data pointer.

The test-rand RNG was failing when a parent was specified.  This case is now
ignored.

Fixes #16785

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16905)

(cherry picked from commit d4dfd983e32b32b633aaa9edec422cc30419c6f7)
doc/man7/EVP_RAND-TEST-RAND.pod
providers/implementations/rands/test_rng.c
test/build.info
test/rand_test.c [new file with mode: 0644]
test/recipes/05-test_rand.t