summaryrefslogtreecommitdiffstats
path: root/apps
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
parent8de421b6d9ee7cf72a11e35a74553fcdf1d8708f (diff)
Initial support for Certificate Policies extension: print out works but setting
isn't fully implemented (yet).
Diffstat (limited to 'apps')
-rw-r--r--apps/ca.c10
-rw-r--r--apps/req.c5
2 files changed, 12 insertions, 3 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);
diff --git a/apps/req.c b/apps/req.c
index 0cfed93878..bb3a65a5bc 100644
--- a/apps/req.c
+++ b/apps/req.c
@@ -438,7 +438,10 @@ bad:
extensions = CONF_get_string(req_conf, SECTION, V3_EXTENSIONS);
if(extensions) {
/* Check syntax of file */
- if(!X509V3_EXT_check_conf(req_conf, extensions)) {
+ X509V3_CTX ctx;
+ X509V3_set_ctx_test(&ctx);
+ X509V3_set_conf_lhash(&ctx, req_conf);
+ if(!X509V3_EXT_add_conf(req_conf, &ctx, extensions, NULL)) {
BIO_printf(bio_err,
"Error Loading extension section %s\n", extensions);
goto end;