disable sslv3

This commit is contained in:
Mario Fetka 2017-04-19 11:31:30 +02:00
parent bd943701e8
commit 1fc2c0ee08
2 changed files with 25 additions and 0 deletions

24
debian/disable_sslv3.patch vendored Normal file
View File

@ -0,0 +1,24 @@
--- a/src/Mayaqua/Network.c 2016-03-20 13:37:38.829534634 -0400
+++ b/src/Mayaqua/Network.c 2016-03-20 13:37:28.079218703 -0400
@@ -12981,14 +12981,14 @@
}
else
{
- if (client_tls == false)
- {
- SSL_CTX_set_ssl_version(ssl_ctx, SSLv3_method());
- }
- else
- {
+ //if (client_tls == false)
+ //{
+ // SSL_CTX_set_ssl_version(ssl_ctx, SSLv3_method());
+ //}
+ //else
+ //{
SSL_CTX_set_ssl_version(ssl_ctx, TLSv1_client_method());
- }
+ //}
}
sock->ssl = SSL_new(ssl_ctx);
SSL_set_fd(sock->ssl, (int)sock->socket);

1
debian/rules vendored
View File

@ -14,6 +14,7 @@ override_dh_auto_clean:
override_dh_auto_install: override_dh_auto_install:
patch -f < debian/makefile.patch patch -f < debian/makefile.patch
patch -f < debian/disable_sslv3.patch
mkdir -p usr/bin mkdir -p usr/bin
make install make install