/*
* OpenSSL <= 1.1.1 requires a non-null pointer for len
*/
- if (unlikely(EVP_DigestSignFinal(ctx, digest, &(size_t){ 0 }) != 1)) {
+ if (unlikely(EVP_DigestSignFinal(ctx, digest, &(size_t){ MD5_DIGEST_LENGTH }) != 1)) {
fr_strerror_const("Failed finalising HMAC-MD5");
goto error;
}
/*
* OpenSSL <= 1.1.1 requires a non-null pointer for len
*/
- if (unlikely(EVP_DigestSignFinal(ctx, digest, &(size_t){ 0 }) != 1)) {
+ if (unlikely(EVP_DigestSignFinal(ctx, digest, &(size_t){ SHA1_DIGEST_LENGTH }) != 1)) {
fr_strerror_const("Failed finalising HMAC-SHA1");
goto error;
}