[openssl] master update

Dr. Paul Dale pauli at openssl.org
Mon Sep 28 05:40:17 UTC 2020


The branch master has been updated
       via  53c4992e0b1c79bdf5904b84e77ca7d362cc4af0 (commit)
      from  7339547d455046e14b50fe64d71d45c6786ac960 (commit)


- Log -----------------------------------------------------------------
commit 53c4992e0b1c79bdf5904b84e77ca7d362cc4af0
Author: Pauli <paul.dale at oracle.com>
Date:   Sun Sep 27 12:47:47 2020 +1000

    rand: declare get_hardware_random_value() before use.
    
    Introduced by #12923
    
    Fixes #13004
    
    Reviewed-by: Tim Hudson <tjh at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/13005)

-----------------------------------------------------------------------

Summary of changes:
 providers/implementations/rands/seeding/rand_cpu_x86.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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
  *


More information about the openssl-commits mailing list