diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-11-27 19:43:10 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-11-27 19:43:10 +0000 |
commit | 51630a37069a0792f2d6ad6ce33e9c5cca27b69c (patch) | |
tree | 295ee6e11fede84a1ac1cf5404b1c3edfe2e7ba8 /apps/verify.c | |
parent | 74ecf9e2bbff8bb85b8da313b2ea44df487ef550 (diff) |
Add trust setting support to the verify code. It now checks the
trust settings of the root CA.
After a few fixes it seems to work OK.
Still need to add support to SSL and S/MIME code though.
Diffstat (limited to 'apps/verify.c')
-rw-r--r-- | apps/verify.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/verify.c b/apps/verify.c index 579d4ea184..8a03e0f290 100644 --- a/apps/verify.c +++ b/apps/verify.c @@ -85,6 +85,7 @@ int MAIN(int argc, char **argv) X509_LOOKUP *lookup=NULL; X509_PURPOSE_add_standard(); + X509_TRUST_add_standard(); X509V3_add_standard_extensions(); cert_ctx=X509_STORE_new(); if (cert_ctx == NULL) goto end; @@ -199,6 +200,7 @@ end: sk_X509_pop_free(untrusted, X509_free); X509V3_EXT_cleanup(); X509_PURPOSE_cleanup(); + X509_TRUST_cleanup(); EXIT(ret); } |