Blame SOURCES/tls-enable-tls-1.patch

56112c
diff --git a/libfreerdp-core/tls.c b/libfreerdp-core/tls.c
56112c
index 106f9cae3..2e3f32d63 100644
56112c
--- a/libfreerdp-core/tls.c
56112c
+++ b/libfreerdp-core/tls.c
56112c
@@ -26,8 +26,9 @@ boolean tls_connect(rdpTls* tls)
56112c
 {
56112c
 	int connection_status;
56112c
 	char *hostname;
56112c
+	int options = 0;
56112c
 
56112c
-	tls->ctx = SSL_CTX_new(TLSv1_client_method());
56112c
+	tls->ctx = SSL_CTX_new(SSLv23_client_method());
56112c
 
56112c
 	if (tls->ctx == NULL)
56112c
 	{
56112c
@@ -43,7 +44,15 @@ boolean tls_connect(rdpTls* tls)
56112c
 	 * block padding is normally used, but the Microsoft TLS implementation
56112c
 	 * won't recognize it and will disconnect you after sending a TLS alert.
56112c
 	 */
56112c
-	SSL_CTX_set_options(tls->ctx, SSL_OP_ALL);
56112c
+	options |= SSL_OP_ALL;
56112c
+
56112c
+	/**
56112c
+	 * disable SSLv2 and SSLv3
56112c
+	 */
56112c
+	options |= SSL_OP_NO_SSLv2;
56112c
+	options |= SSL_OP_NO_SSLv3;
56112c
+
56112c
+	SSL_CTX_set_options(tls->ctx, options);
56112c
 
56112c
 	tls->ssl = SSL_new(tls->ctx);
56112c