diff options
author | Lutz Jänicke <jaenicke@openssl.org> | 2008-10-22 06:46:14 +0000 |
---|---|---|
committer | Lutz Jänicke <jaenicke@openssl.org> | 2008-10-22 06:46:14 +0000 |
commit | 020d67fb89fcd8799350a46b36982a104e0b2d4c (patch) | |
tree | 9796f0e318222096e2485eec3ca945afeccd73f2 /apps | |
parent | 3fdc6c11aab4a6886dd9126825fc584cb0f7e608 (diff) |
Allow detection of input EOF in quiet mode by adding -no_ign_eof option
to s_client application.
PR: #1761
Submitted by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/s_client.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/s_client.c b/apps/s_client.c index 1e3dcbc5a4..f038a55323 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -308,6 +308,7 @@ static void sc_usage(void) BIO_printf(bio_err," -crlf - convert LF from terminal into CRLF\n"); BIO_printf(bio_err," -quiet - no s_client output\n"); BIO_printf(bio_err," -ign_eof - ignore input eof (default when -quiet)\n"); + BIO_printf(bio_err," -no_ign_eof - don't ignore input eof\n"); #ifndef OPENSSL_NO_PSK BIO_printf(bio_err," -psk_identity arg - PSK identity\n"); BIO_printf(bio_err," -psk arg - PSK in hex (without 0x)\n"); @@ -531,6 +532,8 @@ int MAIN(int argc, char **argv) } else if (strcmp(*argv,"-ign_eof") == 0) c_ign_eof=1; + else if (strcmp(*argv,"-no_ign_eof") == 0) + c_ign_eof=0; else if (strcmp(*argv,"-pause") == 0) c_Pause=1; else if (strcmp(*argv,"-debug") == 0) |