Adjust SSL context generation for Server:

The creation of self-signed certificates slows down the command
line client when launched repeatedly during unit test.
* Contexts are no longer generated for the command line client
* A port with no secure protocols generates an empty context
This commit is contained in:
Vinnie Falco
2014-11-07 04:43:54 -08:00
parent 9a7f66cfe9
commit 788219fe05
4 changed files with 44 additions and 9 deletions

View File

@@ -712,8 +712,11 @@ public:
//
//----------------------------------------------------------------------
serverHandler_->setup (setup_ServerHandler(getConfig(), std::cerr),
m_journal);
{
auto setup = setup_ServerHandler(getConfig(), std::cerr);
setup.makeContexts();
serverHandler_->setup (setup, m_journal);
}
// VFALCO NOTE Unfortunately, in stand-alone mode some code still
// foolishly calls overlay(). When this is fixed we can