Commit e8f2e2fb authored by junfx's avatar junfx Committed by Richard Levitte
Browse files

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: default avatarMatt Caswell <matt@openssl.org>
Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3213)
parent 71d66c46
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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 {