diff --git a/libfreerdp/crypto/tls.c b/libfreerdp/crypto/tls.c index 63ff9b4a8..90de48b2f 100644 --- a/libfreerdp/crypto/tls.c +++ b/libfreerdp/crypto/tls.c @@ -798,7 +798,13 @@ int tls_connect(rdpTls* tls, BIO* underlying) */ options |= SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS; - if (!tls_prepare(tls, underlying, TLSv1_client_method(), options, TRUE)) + /** + * disable SSLv2 and SSLv3 + */ + options |= SSL_OP_NO_SSLv2; + options |= SSL_OP_NO_SSLv3; + + if (!tls_prepare(tls, underlying, SSLv23_client_method(), options, TRUE)) return FALSE; return tls_do_handshake(tls, TRUE);