From: junfx Date: Thu, 13 Apr 2017 07:56:50 +0000 (+0800) Subject: pkeyutl exit with 0 if the verification succeeded X-Git-Tag: OpenSSL_1_0_2l~19 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e8f2e2fb3d82485af297717b93358f488e15eae0;p=oweals%2Fopenssl.git pkeyutl exit with 0 if the verification succeeded If exiting non-zero, which not consistent with shell conventions, the shells/scripts treat the cmd as failed. CLA: trivial Reviewed-by: Matt Caswell Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/3213) --- diff --git a/apps/pkeyutl.c b/apps/pkeyutl.c index 7c62d1c870..19f2e5d9cf 100644 --- a/apps/pkeyutl.c +++ b/apps/pkeyutl.c @@ -322,8 +322,10 @@ int MAIN(int argc, char **argv) buf_in, (size_t)buf_inlen); if (rv == 0) BIO_puts(out, "Signature Verification Failure\n"); - else if (rv == 1) + else if (rv == 1) { BIO_puts(out, "Signature Verified Successfully\n"); + ret = 0; + } if (rv >= 0) goto end; } else {