diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/usr.bin/openssl/enc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/usr.bin/openssl/enc.c b/src/usr.bin/openssl/enc.c index 9e330ce5cb..e9830af5f2 100644 --- a/src/usr.bin/openssl/enc.c +++ b/src/usr.bin/openssl/enc.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: enc.c,v 1.28 2023/06/11 05:45:20 tb Exp $ */ | 1 | /* $OpenBSD: enc.c,v 1.29 2023/06/11 11:54:44 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -362,9 +362,7 @@ enc_main(int argc, char **argv) | |||
| 362 | 362 | ||
| 363 | cfg.cipher = EVP_get_cipherbyname(pname); | 363 | cfg.cipher = EVP_get_cipherbyname(pname); |
| 364 | 364 | ||
| 365 | if (!cfg.base64 && cfg.cipher == NULL && | 365 | if (!cfg.base64 && cfg.cipher == NULL && strcmp(pname, "enc") != 0) { |
| 366 | strcmp(pname, "enc") != 0) | ||
| 367 | { | ||
| 368 | BIO_printf(bio_err, "%s is an unknown cipher\n", pname); | 366 | BIO_printf(bio_err, "%s is an unknown cipher\n", pname); |
| 369 | goto end; | 367 | goto end; |
| 370 | } | 368 | } |
