aboutsummaryrefslogtreecommitdiff
path: root/openssl/crypto/x509/x_all.c
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/crypto/x509/x_all.c')
-rw-r--r--openssl/crypto/x509/x_all.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openssl/crypto/x509/x_all.c b/openssl/crypto/x509/x_all.c
index e06602d65..fef55f89d 100644
--- a/openssl/crypto/x509/x_all.c
+++ b/openssl/crypto/x509/x_all.c
@@ -72,6 +72,8 @@
int X509_verify(X509 *a, EVP_PKEY *r)
{
+ if (X509_ALGOR_cmp(a->sig_alg, a->cert_info->signature))
+ return 0;
return(ASN1_item_verify(ASN1_ITEM_rptr(X509_CINF),a->sig_alg,
a->signature,a->cert_info,r));
}