diff options
author | Pauli <pauli@openssl.org> | 2021-05-28 06:45:43 +0200 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2021-05-29 09:17:12 +0200 |
commit | 23e97567be012ff1b5082bf149810c72816c29bd (patch) | |
tree | a2b2825814e43a5c6fe641bb4fcea235cbf4a46f /test/tls-provider.c | |
parent | rand: add a strength argument to the BN and RAND RNG calls (diff) | |
download | openssl-23e97567be012ff1b5082bf149810c72816c29bd.tar.xz openssl-23e97567be012ff1b5082bf149810c72816c29bd.zip |
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.c | 4 |
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 |