diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-03-06 19:33:29 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-03-06 19:33:29 +0000 |
commit | 1756d405cc0d5bf8fd0a40b8d103ee9314522171 (patch) | |
tree | fb862f3f0c53144b518ebf0eec245a10a355fa90 /apps/req.c | |
parent | 116e315303d87c1974500a89dc3ff2fe7f88e59d (diff) | |
download | openssl-new-1756d405cc0d5bf8fd0a40b8d103ee9314522171.tar.gz |
Added support for adding extensions to CRLs, also fix a memory leak and
make 'req' check the config file syntax before it adds extensions. Added
info in the documentation as well.
Diffstat (limited to 'apps/req.c')
-rw-r--r-- | apps/req.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/req.c b/apps/req.c index dad1a50c46..cb9d9d16fa 100644 --- a/apps/req.c +++ b/apps/req.c @@ -264,11 +264,10 @@ char **argv; goto end; } - /* This will 'disapear' - * when we free xtmp */ dtmp=X509_get_pubkey(xtmp); if (dtmp->type == EVP_PKEY_DSA) dsa_params=DSAparams_dup(dtmp->pkey.dsa); + EVP_PKEY_free(dtmp); X509_free(xtmp); if (dsa_params == NULL) { @@ -437,6 +436,14 @@ bad: } extensions = CONF_get_string(req_conf, SECTION, V3_EXTENSIONS); + if(extensions) { + /* Check syntax of file */ + if(!X509V3_EXT_check_conf(req_conf, extensions)) { + BIO_printf(bio_err, + "Error Loading extension section %s\n", extensions); + goto end; + } + } in=BIO_new(BIO_s_file()); out=BIO_new(BIO_s_file()); |