summaryrefslogtreecommitdiffstats
path: root/crypto/evp/m_sigver.c
diff options
context:
space:
mode:
authorPaul Yang <yang.yang@baishancloud.com>2018-09-05 09:19:17 +0200
committerPaul Yang <yang.yang@baishancloud.com>2018-09-07 12:12:26 +0200
commit675f4ceef880f9c4eb0fda5dacd18b001fefb5bc (patch)
treeefd1f41c908f873f0567576005b3cab148a76b42 /crypto/evp/m_sigver.c
parentAdd test case for SM2 evp verification (diff)
downloadopenssl-675f4ceef880f9c4eb0fda5dacd18b001fefb5bc.tar.xz
openssl-675f4ceef880f9c4eb0fda5dacd18b001fefb5bc.zip
Update document for SM2 stuffs
Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/7113)
Diffstat (limited to 'crypto/evp/m_sigver.c')
-rw-r--r--crypto/evp/m_sigver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/m_sigver.c b/crypto/evp/m_sigver.c
index 2eceede28c..94e37f02b2 100644
--- a/crypto/evp/m_sigver.c
+++ b/crypto/evp/m_sigver.c
@@ -79,7 +79,7 @@ static int do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
* This indicates the current algorithm requires
* special treatment before hashing the tbs-message.
*/
- if (ctx->pctx->pmeth->digest_custom)
+ if (ctx->pctx->pmeth->digest_custom != NULL)
return ctx->pctx->pmeth->digest_custom(ctx->pctx, ctx);
return 1;