]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
rand: declare get_hardware_random_value() before use.
authorPauli <paul.dale@oracle.com>
Sun, 27 Sep 2020 02:47:47 +0000 (12:47 +1000)
committerPauli <paul.dale@oracle.com>
Mon, 28 Sep 2020 05:39:49 +0000 (15:39 +1000)
Introduced by #12923

Fixes #13004

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13005)

providers/implementations/rands/seeding/rand_cpu_x86.c

index 73af554d68ca1a929a77c058ce9d60f5cb9940a2..46ced51af2bc3b546d9a3ae04cc0e6071d846ff2 100644 (file)
 # 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
  *