SecureSocket: disable SSL versions 2 and 3

There are known vulnerabilities in those. Everyone should be using TLS
by now.
This commit is contained in:
Adrien Destugues
2014-10-15 16:17:09 +02:00
parent 00640ac82e
commit 1c0b6a4293
@@ -95,6 +95,9 @@ BSecureSocket::Private::CreateContext()
{
sContext = SSL_CTX_new(SSLv23_method());
// Disable legacy protocols. They have known vulnerabilities.
SSL_CTX_set_options(sContext, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3);
// Setup certificate verification
BPath certificateStore;
find_directory(B_SYSTEM_DATA_DIRECTORY, &certificateStore);