]> git.ipfire.org Git - thirdparty/openssl.git/commit
Augment rand argument parsing to allow scaling
authorNeil Horman <nhorman@openssl.org>
Sun, 5 Nov 2023 22:51:38 +0000 (17:51 -0500)
committerTomas Mraz <tomas@openssl.org>
Mon, 13 Nov 2023 11:21:34 +0000 (12:21 +0100)
commitae9fe65d9f85e027bd7428e0f84aa46ab368880e
tree8e181641789fe90b86aa786c250c0793ad7f5104
parent66c27d06e0e9a1bb716c67390ad9e5ac613d45d3
Augment rand argument parsing to allow scaling

Instead of just accepting a number of bytes, allows openssl rand to
accept a k|m|g suffix to scale to kbytes/mbytes/gbytes

Fixes #22622

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22624)
apps/rand.c
doc/man1/openssl-rand.pod.in
test/recipes/05-test_rand.t