diff options
author | Tianjia Zhang <tianjia.zhang@linux.alibaba.com> | 2021-08-23 17:40:22 +0800 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-08-25 09:23:01 +0200 |
commit | 8b4e9c5265ffd3457ad37133502a9d8a4e8daccd (patch) | |
tree | e99ff6350a17d0048a1651b59f04d73b2fa5c70c /apps/ciphers.c | |
parent | 32f7be2ab72ee22e98a2254709cb6128492b207a (diff) |
apps/ciphers: Fix wrong return value when using -convert parameter
Command 'openssl ciphers -convert <name>' always returns failure,
this patch set the correct return value.
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Reviewed-by: Paul Yang <kaishen.yy@antfin.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16383)
Diffstat (limited to 'apps/ciphers.c')
-rw-r--r-- | apps/ciphers.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/ciphers.c b/apps/ciphers.c index 6e4fedd9a7..9c494224a1 100644 --- a/apps/ciphers.c +++ b/apps/ciphers.c @@ -183,6 +183,7 @@ int ciphers_main(int argc, char **argv) if (convert != NULL) { BIO_printf(bio_out, "OpenSSL cipher name: %s\n", OPENSSL_cipher_name(convert)); + ret = 0; goto end; } |