diff options
author | Rich Salz <rsalz@akamai.com> | 2015-05-28 13:52:55 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-05-28 17:28:33 -0400 |
commit | cc01d21756cc9c79231ef21039782c5fe42008a2 (patch) | |
tree | cb92584cc79d9994f9859b15c04a645d0b020389 /apps/apps.h | |
parent | f097f81c891bb1f479426d8ac9c9541390334983 (diff) |
RT3876: Only load config when needed
Create app_load_config(), a routine to load config file. Remove the
"always load config" from the main app. Change the places that used to
load config to call the new common routine.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps/apps.h')
-rw-r--r-- | apps/apps.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/apps.h b/apps/apps.h index 33b2e65e8c..a8e0071f4d 100644 --- a/apps/apps.h +++ b/apps/apps.h @@ -147,7 +147,6 @@ long app_RAND_load_files(char *file); /* `file' is a list of files to read, * (see e_os.h). The string is * destroyed! */ -extern CONF *config; extern char *default_config_file; extern BIO *bio_in; extern BIO *bio_out; @@ -155,6 +154,7 @@ extern BIO *bio_err; BIO *dup_bio_in(void); BIO *dup_bio_out(void); BIO *bio_open_default(const char *filename, const char *mode); +CONF *app_load_config(const char* filename); void unbuffer(FILE *fp); /* Often used in calls to bio_open_default. */ |