Browse Source

Use SSL3 so that it is easy to debug with wireshark

master
flowher 11 years ago
parent
commit
00bf5ceff4
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      server.cpp

+ 4
- 0
server.cpp 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()()


Loading…
Cancel
Save