Hi DS, Thank you for your reply.
> >I need to listen on one port to SSL clients and standard TCP clients. > >I know how to do it using two ports (port for SSL and port for TCP) but it > >is not good enough. > > > >Is someone know if it is possible to do it ? How ? > > Yes, it's possible assuming that you are writing the protocol that layers on > top of TCP. For example, you could have standard TCP clients send a 'N' as > the first character and encrypted clients send a 'Y' as the first character. > You then accept the connection and read one byte. If it's an 'N', you process > it as unencrypted. If it's a 'Y', you process it as encrypted. > > This is perhaps a silly way. More likely you'd have something more sensible. > But whatever works for you. This solution is not good for me. The client is not (and should not be) my. The server should detect the connection type (SSL or plain text) without help from the client. A possible solution is to get the first few bytes trom the client and deternine if it is test or SSL (I can check that). If it is not text - "Unget" the bytes and start SSL handshake. The problem is that I don't know how to do that. I hope you (or someone...) can help. Shlomi Joel SAFe-mail Ltd. EMail addr: [EMAIL PROTECTED] Phone: +972 2 586 8520 ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]