summaryrefslogtreecommitdiffstats
path: root/apps/verify.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-10-31 19:21:47 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-10-31 19:21:47 +0000
commit4a7f7171f5dbaa4cbab2d3768a2c93e96a9dcdb5 (patch)
treeeb6273a148ea8fa359f65e42874dbf6d53781043 /apps/verify.c
parent961092281f141bcbfb45507ddf5392706d65186b (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/verify.c')
-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)