diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-04-16 23:57:04 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-04-16 23:57:04 +0000 |
commit | 1d48dd001915bbccf1f08b4b431dd945d351ec5d (patch) | |
tree | 22cd1900ea47b395687a756966a23239fc07b6cd /apps | |
parent | c5db363e1b75f8452e4c888402a8ecb291b13838 (diff) | |
download | openssl-1d48dd001915bbccf1f08b4b431dd945d351ec5d.tar.gz |
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')
-rw-r--r-- | apps/ca.c | 14 | ||||
-rw-r--r-- | apps/req.c | 7 |
2 files changed, 6 insertions, 15 deletions
@@ -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; diff --git a/apps/req.c b/apps/req.c index cb9d9d16fa..136cdc7d01 100644 --- a/apps/req.c +++ b/apps/req.c @@ -666,11 +666,8 @@ loop: /* Set up V3 context struct */ - ext_ctx.issuer_cert = x509ss; - ext_ctx.subject_cert = x509ss; - ext_ctx.subject_req = NULL; - ext_ctx.crl = NULL; - ext_ctx.flags = 0; + X509V3_set_ctx(&ext_ctx, x509ss, x509ss, NULL, NULL, 0); + X509V3_set_conf_lhash(&ext_ctx, req_conf); /* Add extensions */ if(extensions && !X509V3_EXT_add_conf(req_conf, |