[openssl] openssl-3.0 update

Dr. Paul Dale pauli at openssl.org
Thu Oct 28 08:06:17 UTC 2021


The branch openssl-3.0 has been updated
       via  0b5a0043f9c09a7afff7ae18559ee984226ea25b (commit)
      from  7da7e9fc3995ce43d99aa9234a01aea3c7b658ad (commit)


- Log -----------------------------------------------------------------
commit 0b5a0043f9c09a7afff7ae18559ee984226ea25b
Author: Pauli <pauli at openssl.org>
Date:   Wed Oct 27 08:22:09 2021 +1000

    Remove redundant RAND_get0_private() call
    
    The test called this twice which doesn't hurt but isn't ideal.
    
    Reviewed-by: Bernd Edlinger <bernd.edlinger at hotmail.de>
    (Merged from https://github.com/openssl/openssl/pull/16921)
    
    (cherry picked from commit a87c3247ca641f2593391bf44d47e3dccc7f8d73)

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

Summary of changes:
 test/rand_test.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/test/rand_test.c b/test/rand_test.c
index 864f3cdb51..c6cf32610e 100644
--- a/test/rand_test.c
+++ b/test/rand_test.c
@@ -21,9 +21,6 @@ static int test_rand(void)
     unsigned char entropy2[] = { 0xff, 0xfe, 0xfd };
     unsigned char outbuf[3];
 
-    if (!TEST_ptr(privctx = RAND_get0_private(NULL)))
-        return 0;
-
     *p++ = OSSL_PARAM_construct_octet_string(OSSL_RAND_PARAM_TEST_ENTROPY,
                                              entropy1, sizeof(entropy1));
     *p = OSSL_PARAM_construct_end();


More information about the openssl-commits mailing list