Fix for SSLv2/TLS compatibility