Use SSL3 so that it is easy to debug with wireshark

This commit is contained in:
flowher 2013-09-17 23:38:50 +02:00
parent 5d7e3896bd
commit 00bf5ceff4

View File

@ -111,6 +111,10 @@ void Server::doServerSSLInit()
fprintf(stderr, "Private key is invalid.\n");
_exit(1);
}
// set weak protocol, so it is easy to debug with wireshark
SSL_CTX_set_options(_ctx, SSL_OP_NO_TLSv1_2 | SSL_OP_NO_TLSv1_1 | SSL_OP_NO_TLSv1 | SSL_OP_ALL | SSL_OP_SINGLE_DH_USE );
}
void Acceptor::operator()()