Dropped SSLv3 support #4567
This commit is contained in:
parent
decf7ca313
commit
fb6186304b
|
@ -221,6 +221,10 @@ SecureSocket::initContext(bool server)
|
||||||
// create new context from method
|
// create new context from method
|
||||||
SSL_METHOD* m = const_cast<SSL_METHOD*>(method);
|
SSL_METHOD* m = const_cast<SSL_METHOD*>(method);
|
||||||
m_ssl->m_context = SSL_CTX_new(m);
|
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) {
|
if (m_ssl->m_context == NULL) {
|
||||||
showError();
|
showError();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue