Organization: WIZ software
Mito <[EMAIL PROTECTED]> found that
"openssl s_client" run at Microsoft Windows ,
does not work console pipe.
example, connect IMAP4 server over SSL,
------
C:\> echo QUIT | openssl -host imap.server -port 993 -verify 0
I made patch for this problem.
Thanks.
*** s_client.c.org Mon Feb 21 05:59:06 2000
--- s_client.c Thu Jun 01 16:01:25 2000
***************
*** 515,521 ****
tv.tv_usec = 0;
i=select(width,(void *)&readfds,(void
*)&writefds,
NULL,&tv);
! if(!i && (!_kbhit() || !read_tty) ) continue;
} else i=select(width,(void *)&readfds,(void
*)&writefds,
NULL,NULL);
}
--- 515,521 ----
tv.tv_usec = 0;
i=select(width,(void *)&readfds,(void
*)&writefds,
NULL,&tv);
! if(!i && (!((_kbhit()) || (WAIT_OBJECT_0 ==
WaitForSingleObject(GetStdHandle(STD_INPUT_HANDLE), 0))) || !read_tty) ) continue;
} else i=select(width,(void *)&readfds,(void
*)&writefds,
NULL,NULL);
}
***************
*** 681,687 ****
}
#ifdef WINDOWS
! else if (_kbhit())
#else
else if (FD_ISSET(fileno(stdin),&readfds))
#endif
--- 681,687 ----
}
#ifdef WINDOWS
! else if ((_kbhit()) || (WAIT_OBJECT_0 ==
WaitForSingleObject(GetStdHandle(STD_INPUT_HANDLE), 0)))
#else
else if (FD_ISSET(fileno(stdin),&readfds))
#endif
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]