summaryrefslogtreecommitdiff
path: root/apps/enc.c
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2021-03-26 17:57:16 +0100
committerTomas Mraz <tomas@openssl.org>2021-04-01 14:39:54 +0200
commit5050fd5b3b7d18eec966469726180efb6c72c594 (patch)
treee053f3428efc6a235a8a5aadea37cb4a1dade30a /apps/enc.c
parentb064eebb5080178de9641a0520e2f22b5846e0f3 (diff)
downloadopenssl-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/enc.c')
-rw-r--r--apps/enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/enc.c b/apps/enc.c
index c5766f05e8..498d0d500b 100644
--- a/apps/enc.c
+++ b/apps/enc.c
@@ -360,7 +360,7 @@ int enc_main(int argc, char **argv)
char prompt[200];
BIO_snprintf(prompt, sizeof(prompt), "enter %s %s password:",
- OBJ_nid2ln(EVP_CIPHER_nid(cipher)),
+ EVP_CIPHER_name(cipher),
(enc) ? "encryption" : "decryption");
strbuf[0] = '\0';
i = EVP_read_pw_string((char *)strbuf, SIZE, prompt, enc);