diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-01-07 23:44:27 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-01-07 23:44:27 +0000 |
commit | bab534057b855a7dbf98261d494897b3542bd9d5 (patch) | |
tree | 8f339a962fce59f79aca9d68eee75304b885d551 /apps/x509.c | |
parent | cec2af75102df52c2f270b3751e3487f47fccb6c (diff) | |
download | openssl-bab534057b855a7dbf98261d494897b3542bd9d5.tar.gz |
Updatde from stable branch.
Diffstat (limited to 'apps/x509.c')
-rw-r--r-- | apps/x509.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/x509.c b/apps/x509.c index e08fdac8b9..f1b1c6f7b6 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -1130,7 +1130,7 @@ static int x509_certify(X509_STORE *ctx, char *CAfile, const EVP_MD *digest, /* NOTE: this certificate can/should be self signed, unless it was * a certificate request in which case it is not. */ X509_STORE_CTX_set_cert(&xsc,x); - if (!reqfile && !X509_verify_cert(&xsc)) + if (!reqfile && X509_verify_cert(&xsc) <= 0) goto end; if (!X509_check_private_key(xca,pkey)) |