From: Pauli Date: Sun, 27 Sep 2020 02:47:47 +0000 (+1000) Subject: rand: declare get_hardware_random_value() before use. X-Git-Tag: openssl-3.0.0-alpha7~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53c4992e0b1c79bdf5904b84e77ca7d362cc4af0;p=thirdparty%2Fopenssl.git rand: declare get_hardware_random_value() before use. Introduced by #12923 Fixes #13004 Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/13005) --- diff --git a/providers/implementations/rands/seeding/rand_cpu_x86.c b/providers/implementations/rands/seeding/rand_cpu_x86.c index 73af554d68c..46ced51af2b 100644 --- a/providers/implementations/rands/seeding/rand_cpu_x86.c +++ b/providers/implementations/rands/seeding/rand_cpu_x86.c @@ -16,12 +16,13 @@ # if defined(OPENSSL_SYS_TANDEM) && defined(_TNS_X_TARGET) # include /* _rdrand64 */ # include /* memcpy */ -static size_t get_hardware_random_value(unsigned char *buf, size_t len); # else size_t OPENSSL_ia32_rdseed_bytes(unsigned char *buf, size_t len); size_t OPENSSL_ia32_rdrand_bytes(unsigned char *buf, size_t len); # endif +static size_t get_hardware_random_value(unsigned char *buf, size_t len); + /* * Acquire entropy using Intel-specific cpu instructions *