[openssl] master update

Dr. Paul Dale pauli at openssl.org
Thu Oct 28 08:05:36 UTC 2021


The branch master has been updated
       via  a87c3247ca641f2593391bf44d47e3dccc7f8d73 (commit)
      from  8b7d7789dc4ea0de11331cb4045bcb03ab0864fc (commit)


- Log -----------------------------------------------------------------
commit a87c3247ca641f2593391bf44d47e3dccc7f8d73
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)

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

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