From 41b731f2f883a583554566d4e702cc51298ee9e1 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sun, 18 Apr 1999 23:21:03 +0000 Subject: Initial support for Certificate Policies extension: print out works but setting isn't fully implemented (yet). --- apps/req.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/req.c') 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; -- cgit v1.2.3