diff options
author | Pauli <pauli@openssl.org> | 2021-05-28 06:46:40 +0200 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2021-05-29 09:17:12 +0200 |
commit | 5cbd2ea3f94aa8adec9b4486ac757d4d688e3f8c (patch) | |
tree | 77ed94d8e02241ec4af496cd44e85feb26d6e01b /crypto/crmf | |
parent | prov: add zero strenght arguments to BN and RAND RNG calls (diff) | |
download | openssl-5cbd2ea3f94aa8adec9b4486ac757d4d688e3f8c.tar.xz openssl-5cbd2ea3f94aa8adec9b4486ac757d4d688e3f8c.zip |
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 'crypto/crmf')
-rw-r--r-- | crypto/crmf/crmf_pbm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/crmf/crmf_pbm.c b/crypto/crmf/crmf_pbm.c index cf483dcb9a..21808d014b 100644 --- a/crypto/crmf/crmf_pbm.c +++ b/crypto/crmf/crmf_pbm.c @@ -55,7 +55,7 @@ OSSL_CRMF_PBMPARAMETER *OSSL_CRMF_pbmp_new(OSSL_LIB_CTX *libctx, size_t slen, */ if ((salt = OPENSSL_malloc(slen)) == NULL) goto err; - if (RAND_bytes_ex(libctx, salt, (int)slen) <= 0) { + if (RAND_bytes_ex(libctx, salt, (int)slen, 0) <= 0) { ERR_raise(ERR_LIB_CRMF, CRMF_R_FAILURE_OBTAINING_RANDOM); goto err; } |