mirror of https://github.com/openssl/openssl
List also non-fetchable hashes in openssl dgst -list
CLA: trivial Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20651)
This commit is contained in:
parent
8b7b9aac44
commit
7eab7680ee
|
@ -488,8 +488,11 @@ static void show_digests(const OBJ_NAME *name, void *arg)
|
|||
|
||||
/* Filter out message digests that we cannot use */
|
||||
md = EVP_MD_fetch(app_get0_libctx(), name->name, app_get0_propq());
|
||||
if (md == NULL)
|
||||
return;
|
||||
if (md == NULL) {
|
||||
md = EVP_get_digestbyname(name->name);
|
||||
if (md == NULL)
|
||||
return;
|
||||
}
|
||||
|
||||
BIO_printf(dec->bio, "-%-25s", name->name);
|
||||
if (++dec->n == 3) {
|
||||
|
|
Loading…
Reference in New Issue