diff options
author | Tomas Mraz <tomas@openssl.org> | 2021-03-26 17:57:16 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-04-01 14:39:54 +0200 |
commit | 5050fd5b3b7d18eec966469726180efb6c72c594 (patch) | |
tree | e053f3428efc6a235a8a5aadea37cb4a1dade30a /apps/crl.c | |
parent | b064eebb5080178de9641a0520e2f22b5846e0f3 (diff) | |
download | openssl-new-5050fd5b3b7d18eec966469726180efb6c72c594.tar.gz |
Avoid going through NID when unnecessary
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14703)
Diffstat (limited to 'apps/crl.c')
-rw-r--r-- | apps/crl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/crl.c b/apps/crl.c index e2ed9588e6..e8b501a8af 100644 --- a/apps/crl.c +++ b/apps/crl.c @@ -347,8 +347,7 @@ int crl_main(int argc, char **argv) BIO_printf(bio_err, "out of memory\n"); goto end; } - BIO_printf(bio_out, "%s Fingerprint=", - OBJ_nid2sn(EVP_MD_type(digest))); + BIO_printf(bio_out, "%s Fingerprint=", EVP_MD_name(digest)); for (j = 0; j < (int)n; j++) { BIO_printf(bio_out, "%02X%c", md[j], (j + 1 == (int)n) ? '\n' : ':'); |