Re: redirected input to s_client on Windows: Any trick to avoid the keypress?

2013-10-06 Thread Jeff Trawick
On Thu, Oct 3, 2013 at 5:32 PM, Ben Laurie wrote: > > > > On 3 October 2013 22:14, Jeff Trawick wrote: > >> E.g., run >> >> echo GET / | openssl s_client -connect host:port >> >> It does the handshake then stalls until you press a key (which will be >> left unused in the buffer when openssl exit

Re: redirected input to s_client on Windows: Any trick to avoid the keypress?

2013-10-06 Thread Ben Laurie
On 3 October 2013 22:14, Jeff Trawick wrote: > E.g., run > > echo GET / | openssl s_client -connect host:port > > It does the handshake then stalls until you press a key (which will be > left unused in the buffer when openssl exits), then it sends the input. I > guess the kbhit() in the s_client

Re: redirected input to s_client on Windows: Any trick to avoid the keypress?

2013-10-04 Thread Jeff Trawick
On Fri, Oct 4, 2013 at 9:17 AM, Salz, Rich wrote: > When you run it interactively, does it work right away or do you need to > hit TWO returns? > It works right away. The keypresses trigger the read of stdin (since the WaitForSingleObject(stdin) is bypassed due to the OPENSSL_SYS_MSDOS issue),

RE: redirected input to s_client on Windows: Any trick to avoid the keypress?

2013-10-04 Thread Salz, Rich
When you run it interactively, does it work right away or do you need to hit TWO returns? -- Principal Security Engineer Akamai Technology Cambridge, MA

Re: redirected input to s_client on Windows: Any trick to avoid the keypress?

2013-10-03 Thread Jeff Trawick
On Thu, Oct 3, 2013 at 5:14 PM, Jeff Trawick wrote: > E.g., run > > echo GET / | openssl s_client -connect host:port > > It does the handshake then stalls until you press a key (which will be > left unused in the buffer when openssl exits), then it sends the input. I > guess the kbhit() in the s