summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-10-31 19:22:18 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-10-31 19:22:18 +0000
commit2008e714f309bb5f814d6616a37a31a4a9e9dd56 (patch)
tree78bcc5ada5246f71abb0c7e2fe7a8611605bcf5f /apps
parent245d2ee3d00eb72a13bc4f60a46aaaeba127056f (diff)
Add missing functions to allow access to newer X509_STORE_CTX status
information. Add more informative message to verify callback to indicate when CRL path validation is taking place.
Diffstat (limited to 'apps')
-rw-r--r--apps/verify.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/verify.c b/apps/verify.c
index c0be253db2..9163997e93 100644
--- a/apps/verify.c
+++ b/apps/verify.c
@@ -310,7 +310,9 @@ static int MS_CALLBACK cb(int ok, X509_STORE_CTX *ctx)
0, XN_FLAG_ONELINE);
printf("\n");
}
- printf("error %d at %d depth lookup:%s\n",cert_error,
+ printf("%serror %d at %d depth lookup:%s\n",
+ X509_STORE_CTX_get0_parent_ctx(ctx) ? "[CRL path]" : "",
+ cert_error,
X509_STORE_CTX_get_error_depth(ctx),
X509_verify_cert_error_string(cert_error));
switch(cert_error)