diff options
author | Peiwei Hu <jlu.hpw@foxmail.com> | 2021-11-14 22:42:35 +0800 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-11-16 17:30:57 +0100 |
commit | e2e5e72d5aec4d8d633cc5e9930f762da7973ab6 (patch) | |
tree | 5e4a69599cee1086c2391cafc8a319bf60d5972e /demos | |
parent | 6d774732517f1d63b7999c5691fc0bf046023faf (diff) | |
download | openssl-e2e5e72d5aec4d8d633cc5e9930f762da7973ab6.tar.gz |
EVP_DigestVerifyFinal: fix test function and invocation
Signed-off-by: Peiwei Hu <jlu.hpw@foxmail.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17029)
Diffstat (limited to 'demos')
-rw-r--r-- | demos/signature/EVP_Signature_demo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/signature/EVP_Signature_demo.c b/demos/signature/EVP_Signature_demo.c index d7f26f164b..123c95c26a 100644 --- a/demos/signature/EVP_Signature_demo.c +++ b/demos/signature/EVP_Signature_demo.c @@ -188,7 +188,7 @@ static int demo_verify(OSSL_LIB_CTX *libctx, const char *sig_name, fprintf(stderr, "EVP_DigestVerifyUpdate(hamlet_2) failed.\n"); goto cleanup; } - if (!EVP_DigestVerifyFinal(verify_context, sig_value, sig_len)) { + if (EVP_DigestVerifyFinal(verify_context, sig_value, sig_len) <= 0) { fprintf(stderr, "EVP_DigestVerifyFinal failed.\n"); goto cleanup; } |