diff options
author | Richard Levitte <levitte@openssl.org> | 2021-06-22 18:11:03 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2021-06-23 23:00:36 +0200 |
commit | 21dfdbef4965d95d65bfc942aafafd342cb61e4c (patch) | |
tree | 0109e97fe55d84ca320052636c173d847b2fa134 /crypto/crmf | |
parent | 006de7670a12dff617e86a55b6db7c6e3b1f8fef (diff) |
Adapt other parts of the source to the changed EVP_Q_digest() and EVP_Q_mac()
Fixes #15839
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15861)
Diffstat (limited to 'crypto/crmf')
-rw-r--r-- | crypto/crmf/crmf_pbm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/crmf/crmf_pbm.c b/crypto/crmf/crmf_pbm.c index 0c217295d3..aba6b3a16f 100644 --- a/crypto/crmf/crmf_pbm.c +++ b/crypto/crmf/crmf_pbm.c @@ -140,7 +140,6 @@ int OSSL_CRMF_pbm_new(OSSL_LIB_CTX *libctx, const char *propq, unsigned int bklen = EVP_MAX_MD_SIZE; int64_t iterations; unsigned char *mac_res = 0; - unsigned int maclen; int ok = 0; if (out == NULL || pbmp == NULL || pbmp->mac == NULL @@ -207,10 +206,9 @@ int OSSL_CRMF_pbm_new(OSSL_LIB_CTX *libctx, const char *propq, goto err; } if (EVP_Q_mac(libctx, "HMAC", propq, hmac_mdname, NULL, basekey, bklen, - msg, msglen, mac_res, EVP_MAX_MD_SIZE, &maclen) == NULL) + msg, msglen, mac_res, EVP_MAX_MD_SIZE, outlen) == NULL) goto err; - *outlen = (size_t)maclen; ok = 1; err: |