summaryrefslogtreecommitdiffstats
path: root/crypto/asn1
diff options
context:
space:
mode:
author杨洋 <yang.yang@baishancloud.com>2018-10-26 21:34:08 +0800
committerPaul Yang <yang.yang@baishancloud.com>2019-03-13 15:29:39 +0800
commit8267becb8b2e3b5ec4d46e3df5656b747930be79 (patch)
tree1b871bd0880a5d036c4071c1b6f5a496cea150a2 /crypto/asn1
parent9e11fe0d85c7d8bd2b77076c8b2e93433091e765 (diff)
Support SM2 certificate verification
Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8321)
Diffstat (limited to 'crypto/asn1')
-rw-r--r--crypto/asn1/a_verify.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/asn1/a_verify.c b/crypto/asn1/a_verify.c
index 1f24583113..d26c523600 100644
--- a/crypto/asn1/a_verify.c
+++ b/crypto/asn1/a_verify.c
@@ -94,7 +94,7 @@ int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a,
int mdnid, pknid;
size_t inll = 0;
- if (!pkey) {
+ if (pkey == NULL) {
ASN1err(ASN1_F_ASN1_ITEM_VERIFY, ERR_R_PASSED_NULL_PARAMETER);
return -1;
}
@@ -150,7 +150,6 @@ int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a,
ret = 0;
goto err;
}
-
}
inl = ASN1_item_i2d(asn, &buf_in, it);