diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-04-18 23:21:03 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-04-18 23:21:03 +0000 |
commit | 41b731f2f883a583554566d4e702cc51298ee9e1 (patch) | |
tree | e615e3efe269cf2359cb3e4a2139b119f71900a2 /apps | |
parent | 8de421b6d9ee7cf72a11e35a74553fcdf1d8708f (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.c | 10 | ||||
-rw-r--r-- | apps/req.c | 5 |
2 files changed, 12 insertions, 3 deletions
@@ -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; |