diff options
author | Richard Levitte <levitte@openssl.org> | 2002-10-09 19:36:23 +0400 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-10-09 19:36:23 +0400 |
commit | 0e2cc42cfb4d09c19140f89853e3f0cf4d8c5142 (patch) | |
tree | 68305b60303d8c47854ea49b0c52dbecb214555e /apps | |
parent | 1e5c205ccbcebdb5143fd4ebf6627143c51ea4e8 (diff) |
Make sure that the 'config' variable is correctly defined and declared
for monolithic as well as non-monolithic biuld.
More work is probably needed in this area.
PR: 144
Diffstat (limited to 'apps')
-rw-r--r-- | apps/apps.h | 2 | ||||
-rw-r--r-- | apps/openssl.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/apps/apps.h b/apps/apps.h index 32a79605ee..dae52bd016 100644 --- a/apps/apps.h +++ b/apps/apps.h @@ -144,8 +144,10 @@ int WIN32_rename(char *oldname,char *newname); #define MAIN(a,v) main(a,v) #ifndef NON_MAIN +CONF *config=NULL; BIO *bio_err=NULL; #else +extern CONF *config; extern BIO *bio_err; #endif diff --git a/apps/openssl.c b/apps/openssl.c index 1c4a4291aa..d093715676 100644 --- a/apps/openssl.c +++ b/apps/openssl.c @@ -139,11 +139,11 @@ static unsigned long MS_CALLBACK hash(const void *a_void); static int MS_CALLBACK cmp(const void *a_void,const void *b_void); static LHASH *prog_init(void ); static int do_cmd(LHASH *prog,int argc,char *argv[]); -CONF *config=NULL; char *default_config_file=NULL; /* Make sure there is only one when MONOLITH is defined */ #ifdef MONOLITH +CONF *config=NULL; BIO *bio_err=NULL; #endif |