vincenthz/hs-tls — pull request #24 by notogawa (2012-11-10 11:45:15+00:00)
Title: Accept SSLv2 format 'ClientHello' Handshake message.

I think hs-tls should not support SSLv2, but should support SSLv2 format 'ClientHello' message for SSL/TLS server backward compatibility.

Some regacy client (such as wget in Debian squeeze) start handshake by sending SSLv2 format 'ClientHello' message to server, even if it support SSLv3/TLS1*. On the other hand, TLS server written by hs-tls rejects this handshake, because hs-tls doesn't support all SSLv2 message. In this case, TLS server should response SSLv3/TLS1* 'ServerHello' message.

This patch support SSLv2 format 'ClientHello' message.