diff options
author | Bodo Möller <bodo@openssl.org> | 1999-09-03 23:08:45 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-09-03 23:08:45 +0000 |
commit | b74ba295da96a0aebefd52161629230329265c68 (patch) | |
tree | 8184c4f8409a2ad570ed81ae5783d694bfca0bd7 /apps/s_server.c | |
parent | ba3a6e7262c44818d3b4b9a090b7ed9f7d74e639 (diff) | |
download | openssl-b74ba295da96a0aebefd52161629230329265c68.tar.gz |
Reinitialize global variables when necessary (for monolith application).
Diffstat (limited to 'apps/s_server.c')
-rw-r--r-- | apps/s_server.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/apps/s_server.c b/apps/s_server.c index afe418211b..144dfa662f 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -107,7 +107,9 @@ static void print_stats(BIO *bp,SSL_CTX *ctx); static DH *load_dh_param(void ); static DH *get_dh512(void); #endif -/* static void s_server_init(void);*/ +#ifdef MONOLITH +static void s_server_init(void); +#endif #ifndef S_ISDIR # if defined(_S_IFMT) && defined(_S_IFDIR) @@ -175,9 +177,12 @@ static BIO *bio_s_out=NULL; static int s_debug=0; static int s_quiet=0; -#if 0 +static int hack=0; + +#ifdef MONOLITH static void s_server_init(void) { + accept_socket=-1; cipher=NULL; s_server_verify=SSL_VERIFY_NONE; s_dcert_file=NULL; @@ -194,6 +199,7 @@ static void s_server_init(void) bio_s_out=NULL; s_debug=0; s_quiet=0; + hack=0; } #endif @@ -240,7 +246,6 @@ static void sv_usage(void) static int local_argc=0; static char **local_argv; -static int hack=0; #ifdef CHARSET_EBCDIC static int ebcdic_new(BIO *bi); @@ -419,8 +424,9 @@ int MAIN(int argc, char *argv[]) local_argv=argv; apps_startup(); - s_quiet=0; - s_debug=0; +#ifdef MONOLITH + s_server_init(); +#endif if (bio_err == NULL) bio_err=BIO_new_fp(stderr,BIO_NOCLOSE); |