summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-09-27 12:47:47 +1000
committerPauli <paul.dale@oracle.com>2020-09-28 15:39:49 +1000
commit53c4992e0b1c79bdf5904b84e77ca7d362cc4af0 (patch)
tree29f8550ec8331e993b066d6f3386a2eb52be9dc8
parent7339547d455046e14b50fe64d71d45c6786ac960 (diff)
downloadopenssl-new-53c4992e0b1c79bdf5904b84e77ca7d362cc4af0.tar.gz
rand: declare get_hardware_random_value() before use.
Introduced by #12923 Fixes #13004 Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13005)
-rw-r--r--providers/implementations/rands/seeding/rand_cpu_x86.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/providers/implementations/rands/seeding/rand_cpu_x86.c b/providers/implementations/rands/seeding/rand_cpu_x86.c
index 73af554d68..46ced51af2 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 <builtin.h> /* _rdrand64 */
# include <string.h> /* 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
*