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/x509.c | |
parent | b064eebb5080178de9641a0520e2f22b5846e0f3 (diff) |
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/x509.c')
-rw-r--r-- | apps/x509.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/x509.c b/apps/x509.c index 163c1c8a67..abbffe37ab 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -978,7 +978,7 @@ int x509_main(int argc, char **argv) BIO_printf(bio_err, "Out of memory\n"); goto end; } - BIO_printf(out, "%s Fingerprint=", OBJ_nid2sn(EVP_MD_type(fdig))); + BIO_printf(out, "%s Fingerprint=", EVP_MD_name(fdig)); for (j = 0; j < (int)n; j++) BIO_printf(out, "%02X%c", md[j], (j + 1 == (int)n) ? '\n' : ':'); } else if (i == ocspid) { |