summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorjunfx <junfx@users.noreply.github.com>2017-04-13 15:56:50 +0800
committerRichard Levitte <levitte@openssl.org>2017-04-13 13:25:54 +0200
commite8f2e2fb3d82485af297717b93358f488e15eae0 (patch)
tree4e843c16d94c36b44b7f7861258f3f2bb384115c /apps
parent71d66c46c725a88a8d14b747610656e15610109e (diff)
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 <matt@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3213)
Diffstat (limited to 'apps')
-rw-r--r--apps/pkeyutl.c4
1 files changed, 3 insertions, 1 deletions
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 {