On 12/17/2010 1:41 AM, Kingston Smiler wrote:
Is there any way to identify whether the other end supports TLS or not.
There is no way we could know the answer to this question. We have no idea what your other end is, who designed it, or how.
My requirement is like this. If the other end supports TLS i should send the packet over TLS connection otherwise i should send traffic over TCP.
Are you designing the other end? Do you have a requirement that a MITM must not be able to make you think the other end doesn't support TLS if it actually does?
If the other end doesn't support TLS, my initial TCP connection will be successful. When i do SSL_Connect over this TCP socket, the other end considers this as TCP payload and doesn't respond to me. I don't get an failure related to SSL_connect. So is there a way to identify whether the other end supports TLS or not.
Did you design one? If so, then use it. If not, then it comes down to whether the person who did design the other end provided a way to do this. You would have to ask them or, if they provided a specification, check it.
DS ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [email protected] Automated List Manager [email protected]
