diff options
author | Pauli <pauli@openssl.org> | 2021-05-28 14:45:43 +1000 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2021-05-29 17:17:12 +1000 |
commit | 23e97567be012ff1b5082bf149810c72816c29bd (patch) | |
tree | a2b2825814e43a5c6fe641bb4fcea235cbf4a46f /test/cmp_msg_test.c | |
parent | 508258caa0299481d07d2118da5fe1524de0b6fd (diff) |
test: add zero strenght arguments to BN and RAND RNG calls
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15513)
Diffstat (limited to 'test/cmp_msg_test.c')
-rw-r--r-- | test/cmp_msg_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cmp_msg_test.c b/test/cmp_msg_test.c index fd5337b208..a9a858c07a 100644 --- a/test/cmp_msg_test.c +++ b/test/cmp_msg_test.c @@ -149,7 +149,7 @@ static int test_cmp_create_ir_protection_set(void) fixture->bodytype = OSSL_CMP_PKIBODY_IR; fixture->err_code = -1; fixture->expected = 1; - if (!TEST_int_eq(1, RAND_bytes_ex(libctx, secret, sizeof(secret))) + if (!TEST_int_eq(1, RAND_bytes_ex(libctx, secret, sizeof(secret), 0)) || !TEST_true(SET_OPT_UNPROTECTED_SEND(ctx, 0)) || !TEST_true(set1_newPkey(ctx, newkey)) || !TEST_true(OSSL_CMP_CTX_set1_secretValue(ctx, secret, @@ -566,7 +566,7 @@ int setup_tests(void) if (!TEST_ptr(newkey = load_pkey_pem(newkey_f, libctx)) || !TEST_ptr(cert = load_cert_pem(server_cert_f, libctx)) - || !TEST_int_eq(1, RAND_bytes_ex(libctx, ref, sizeof(ref)))) { + || !TEST_int_eq(1, RAND_bytes_ex(libctx, ref, sizeof(ref), 0))) { cleanup_tests(); return 0; } |