diff options
author | Bodo Möller <bodo@openssl.org> | 1999-10-25 19:36:01 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-10-25 19:36:01 +0000 |
commit | 798757762a2b1a952147b602fd37fd6fe317e26f (patch) | |
tree | 4097e322deb615cc60cbee8fb03433d1d6d0c260 /ssl | |
parent | a5fcd09e7552dedf87d5a1ff5d07a0397bc057cb (diff) |
Improve support for running everything as a monolithic application.
Submitted by: Lennart Bång, Bodo Möller
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssltest.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ssl/ssltest.c b/ssl/ssltest.c index 5c6508efcf..7d3c31dfae 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -97,8 +97,8 @@ static BIO *bio_err=NULL; static BIO *bio_stdout=NULL; static char *cipher=NULL; -int verbose=0; -int debug=0; +static int verbose=0; +static int debug=0; #if 0 /* Not used yet. */ #ifdef FIONBIO @@ -167,12 +167,15 @@ int main(int argc, char *argv[]) #ifndef NO_DH DH *dh; #endif + verbose = 0; + debug = 0; + cipher = 0; + + CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); bio_err=BIO_new_fp(stderr,BIO_NOCLOSE); bio_stdout=BIO_new_fp(stdout,BIO_NOCLOSE); - CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); - argc--; argv++; @@ -432,6 +435,7 @@ end: ERR_remove_state(0); EVP_cleanup(); CRYPTO_mem_leaks(bio_err); + if (bio_err != NULL) BIO_free(bio_err); EXIT(ret); } |