Dropped SSLv3 support #4567

This commit is contained in:
XinyuHou 2015-04-23 12:47:17 +01:00 committed by Xinyu Hou
parent decf7ca313
commit fb6186304b
1 changed files with 4 additions and 0 deletions

View File

@ -221,6 +221,10 @@ SecureSocket::initContext(bool server)
// create new context from method
SSL_METHOD* m = const_cast<SSL_METHOD*>(method);
m_ssl->m_context = SSL_CTX_new(m);
// drop SSLv3 support
SSL_CTX_set_options(m_ssl->m_context, SSL_OP_NO_SSLv3);
if (m_ssl->m_context == NULL) {
showError();
}