summaryrefslogtreecommitdiffstats
path: root/apps/ca.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>1999-04-18 23:21:03 +0000
committerDr. Stephen Henson <steve@openssl.org>1999-04-18 23:21:03 +0000
commit41b731f2f883a583554566d4e702cc51298ee9e1 (patch)
treee615e3efe269cf2359cb3e4a2139b119f71900a2 /apps/ca.c
parent8de421b6d9ee7cf72a11e35a74553fcdf1d8708f (diff)
Initial support for Certificate Policies extension: print out works but setting
isn't fully implemented (yet).
Diffstat (limited to 'apps/ca.c')
-rw-r--r--apps/ca.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/ca.c b/apps/ca.c
index 4225158dfa..467188079a 100644
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -712,7 +712,10 @@ bad:
extensions=CONF_get_string(conf,section,ENV_EXTENSIONS);
if(extensions) {
/* Check syntax of file */
- if(!X509V3_EXT_check_conf(conf, extensions)) {
+ X509V3_CTX ctx;
+ X509V3_set_ctx_test(&ctx);
+ X509V3_set_conf_lhash(&ctx, conf);
+ if(!X509V3_EXT_add_conf(conf, &ctx, extensions, NULL)) {
BIO_printf(bio_err,
"Error Loading extension section %s\n",
extensions);
@@ -984,7 +987,10 @@ bad:
crl_ext=CONF_get_string(conf,section,ENV_CRLEXT);
if(crl_ext) {
/* Check syntax of file */
- if(!X509V3_EXT_check_conf(conf, crl_ext)) {
+ X509V3_CTX ctx;
+ X509V3_set_ctx_test(&ctx);
+ X509V3_set_conf_lhash(&ctx, conf);
+ if(!X509V3_EXT_add_conf(conf, &ctx, crl_ext, NULL)) {
BIO_printf(bio_err,
"Error Loading CRL extension section %s\n",
crl_ext);