diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dgst.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/dgst.c b/apps/dgst.c index 7fc7da1e53..650115b468 100644 --- a/apps/dgst.c +++ b/apps/dgst.c @@ -406,13 +406,8 @@ int dgst_main(int argc, char **argv) } else { const char *sig_name = NULL; if (!out_bin) { - if (sigkey != NULL) { - const EVP_PKEY_ASN1_METHOD *ameth; - ameth = EVP_PKEY_get0_asn1(sigkey); - if (ameth) - EVP_PKEY_asn1_get0_info(NULL, NULL, - NULL, NULL, &sig_name, ameth); - } + if (sigkey != NULL) + sig_name = EVP_PKEY_get0_first_alg_name(sigkey); } ret = 0; for (i = 0; i < argc; i++) { |