summaryrefslogtreecommitdiff
path: root/test/tls-provider.c
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2021-05-28 14:45:43 +1000
committerPauli <pauli@openssl.org>2021-05-29 17:17:12 +1000
commit23e97567be012ff1b5082bf149810c72816c29bd (patch)
treea2b2825814e43a5c6fe641bb4fcea235cbf4a46f /test/tls-provider.c
parent508258caa0299481d07d2118da5fe1524de0b6fd (diff)
downloadopenssl-new-23e97567be012ff1b5082bf149810c72816c29bd.tar.gz
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/tls-provider.c')
-rw-r--r--test/tls-provider.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tls-provider.c b/test/tls-provider.c
index 20360d469e..f8eeaeb363 100644
--- a/test/tls-provider.c
+++ b/test/tls-provider.c
@@ -640,7 +640,7 @@ static void *xor_gen(void *genctx, OSSL_CALLBACK *osslcb, void *cbarg)
return NULL;
if ((gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) {
- if (RAND_bytes_ex(gctx->libctx, key->privkey, XOR_KEY_SIZE) <= 0) {
+ if (RAND_bytes_ex(gctx->libctx, key->privkey, XOR_KEY_SIZE, 0) <= 0) {
OPENSSL_free(key);
return NULL;
}
@@ -813,7 +813,7 @@ unsigned int randomize_tls_group_id(OSSL_LIB_CTX *libctx)
int i;
retry:
- if (!RAND_bytes_ex(libctx, (unsigned char *)&group_id, sizeof(group_id)))
+ if (!RAND_bytes_ex(libctx, (unsigned char *)&group_id, sizeof(group_id), 0))
return 0;
/*
* Ensure group_id is within the IANA Reserved for private use range