diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2002-02-22 14:01:21 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2002-02-22 14:01:21 +0000 |
commit | 3647bee263ebfef8694f7df07498a17b03ad883d (patch) | |
tree | 8d424b9291b1bb64b2dfd5924797912593f7cad6 /apps/apps.h | |
parent | e2aebccba1b7d5e02cfdb79d9bdce3d7f2b28dee (diff) | |
download | openssl-new-3647bee263ebfef8694f7df07498a17b03ad883d.tar.gz |
Config code updates.
CONF_modules_unload() now calls CONF_modules_finish()
automatically.
Default use of section openssl_conf moved to
CONF_modules_load()
Load config file in several openssl utilities.
Most utilities now load modules from the config file,
though in a few (such as version) this isn't done
because it couldn't be used for anything.
In the case of ca and req the config file used is
the same as the utility itself: that is the -config
command line option can be used to specify an
alternative file.
Diffstat (limited to 'apps/apps.h')
-rw-r--r-- | apps/apps.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/apps.h b/apps/apps.h index db75538a03..aad2862123 100644 --- a/apps/apps.h +++ b/apps/apps.h @@ -196,7 +196,8 @@ extern BIO *bio_err; # define apps_shutdown() \ do { destroy_ui_method(); EVP_cleanup(); \ ENGINE_cleanup(); CRYPTO_cleanup_all_ex_data(); \ - ERR_remove_state(0); ERR_free_strings(); } while(0) + ERR_remove_state(0); ERR_free_strings(); \ + CONF_modules_unload(1); } while(0) #endif typedef struct args_st @@ -244,6 +245,8 @@ STACK_OF(X509) *load_certs(BIO *err, const char *file, int format, X509_STORE *setup_verify(BIO *bp, char *CAfile, char *CApath); ENGINE *setup_engine(BIO *err, const char *engine, int debug); +int load_config(BIO *err, CONF *cnf); + /* Functions defined in ca.c and also used in ocsp.c */ int unpack_revinfo(ASN1_TIME **prevtm, int *preason, ASN1_OBJECT **phold, ASN1_GENERALIZEDTIME **pinvtm, char *str); |