summaryrefslogtreecommitdiffstats
path: root/apps/ca.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>1999-04-16 23:57:04 +0000
committerDr. Stephen Henson <steve@openssl.org>1999-04-16 23:57:04 +0000
commit1d48dd001915bbccf1f08b4b431dd945d351ec5d (patch)
tree22cd1900ea47b395687a756966a23239fc07b6cd /apps/ca.c
parentc5db363e1b75f8452e4c888402a8ecb291b13838 (diff)
Add initial support for r2i RAW extensions which can access the config database
add various X509V3_CTX helper functions and support for LHASH as the config database.
Diffstat (limited to 'apps/ca.c')
-rw-r--r--apps/ca.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/apps/ca.c b/apps/ca.c
index 738c7dbe46..7a8dcbfdb3 100644
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -1073,11 +1073,8 @@ bad:
if (ci->version == NULL)
if ((ci->version=ASN1_INTEGER_new()) == NULL) goto err;
ASN1_INTEGER_set(ci->version,1); /* version 2 CRL */
- crlctx.crl = crl;
- crlctx.issuer_cert = x509;
- crlctx.subject_cert = NULL;
- crlctx.subject_req = NULL;
- crlctx.flags = 0;
+ X509V3_set_ctx(&crlctx, x509, NULL, NULL, crl, 0);
+ X509V3_set_conf_lhash(&crlctx, conf);
if(!X509V3_EXT_CRL_add_conf(conf, &crlctx,
crl_ext, crl)) goto err;
@@ -1792,11 +1789,8 @@ again2:
ci->extensions = NULL;
- ctx.subject_cert = ret;
- ctx.issuer_cert = x509;
- ctx.subject_req = req;
- ctx.crl = NULL;
- ctx.flags = 0;
+ X509V3_set_ctx(&ctx, x509, ret, req, NULL, 0);
+ X509V3_set_conf_lhash(&ctx, lconf);
if(!X509V3_EXT_add_conf(lconf, &ctx, ext_sect, ret)) goto err;