Skip to content

Commit

Permalink
SecureSocket: disable SSL versions 2 and 3
Browse files Browse the repository at this point in the history
There are known vulnerabilities in those. Everyone should be using TLS
by now.
  • Loading branch information
pulkomandy committed Oct 15, 2014
1 parent 00640ac commit 1c0b6a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/kits/network/libnetapi/SecureSocket.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 1c0b6a4

Please sign in to comment.