diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-01-08 19:05:47 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-01-08 19:05:47 +0000 |
commit | c3ed3b6eab8b8f3a8ebe6fc6f5d14b4faf3c8cbe (patch) | |
tree | 0043f51f2c047775153d35815194e70ad73e465a /apps | |
parent | c708302516a7a7bc17e690c810c6461c9d4ac6ed (diff) | |
download | openssl-c3ed3b6eab8b8f3a8ebe6fc6f5d14b4faf3c8cbe.tar.gz |
Add -prexit command to s_client and patch some BIO
functions so it doesn't crash. Document s_client.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/s_client.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/s_client.c b/apps/s_client.c index 60a8728c9b..f09fae5f67 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -176,6 +176,7 @@ int MAIN(int argc, char **argv) int write_tty,read_tty,write_ssl,read_ssl,tty_on,ssl_pending; SSL_CTX *ctx=NULL; int ret=1,in_init=1,i,nbio_test=0; + int prexit = 0; SSL_METHOD *meth=NULL; BIO *sbio; #ifdef WINDOWS @@ -245,6 +246,8 @@ int MAIN(int argc, char **argv) if (--argc < 1) goto bad; cert_file= *(++argv); } + else if (strcmp(*argv,"-prexit") == 0) + prexit=1; else if (strcmp(*argv,"-crlf") == 0) crlf=1; else if (strcmp(*argv,"-quiet") == 0) @@ -735,6 +738,7 @@ shut: SHUTDOWN(SSL_get_fd(con)); ret=0; end: + if(prexit) print_stuff(bio_c_out,con,1); if (con != NULL) SSL_free(con); if (con2 != NULL) SSL_free(con2); if (ctx != NULL) SSL_CTX_free(ctx); |