Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Paul Yang <paulyang.inf@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28221)
(cherry picked from commit
24f72a5aaab0243c136e1402b54348fda9cdbc36)
}
if (BIO_printf(out, "%*sHash Value: ", indent, "") <= 0)
return 0;
+ if (hash->hashValue == NULL)
+ return 0;
return ossl_bio_print_hex(out, hash->hashValue->data, hash->hashValue->length);
}