summaryrefslogtreecommitdiffstats
path: root/apps/verify.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2010-02-25 00:11:32 +0000
committerDr. Stephen Henson <steve@openssl.org>2010-02-25 00:11:32 +0000
commit04e4b8272614ab72d313af8d8e6488f8575e175e (patch)
treea8c05dda286e06cb5674ebd301630a214bb85329 /apps/verify.c
parent9b3d75706ef0114362f04665a3c745bfef59d023 (diff)
allow setting of verify names in command line utilities and print out verify names in verify utility
Diffstat (limited to 'apps/verify.c')
-rw-r--r--apps/verify.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/apps/verify.c b/apps/verify.c
index 9163997e93..4fd6b192e3 100644
--- a/apps/verify.c
+++ b/apps/verify.c
@@ -234,13 +234,26 @@ end:
BIO_printf(bio_err," [-engine e]");
#endif
BIO_printf(bio_err," cert1 cert2 ...\n");
+
BIO_printf(bio_err,"recognized usages:\n");
- for(i = 0; i < X509_PURPOSE_get_count(); i++) {
+ for(i = 0; i < X509_PURPOSE_get_count(); i++)
+ {
X509_PURPOSE *ptmp;
ptmp = X509_PURPOSE_get0(i);
- BIO_printf(bio_err, "\t%-10s\t%s\n", X509_PURPOSE_get0_sname(ptmp),
- X509_PURPOSE_get0_name(ptmp));
- }
+ BIO_printf(bio_err, "\t%-10s\t%s\n",
+ X509_PURPOSE_get0_sname(ptmp),
+ X509_PURPOSE_get0_name(ptmp));
+ }
+
+ BIO_printf(bio_err,"recognized verify names:\n");
+ for(i = 0; i < X509_VERIFY_PARAM_get_count(); i++)
+ {
+ const X509_VERIFY_PARAM *vptmp;
+ vptmp = X509_VERIFY_PARAM_get0(i);
+ BIO_printf(bio_err, "\t%-10s\n",
+ X509_VERIFY_PARAM_get0_name(vptmp));
+ }
+
}
if (vpm) X509_VERIFY_PARAM_free(vpm);
if (cert_ctx != NULL) X509_STORE_free(cert_ctx);