diff options
Diffstat (limited to 'cpp/src/qpid/broker/windows/SslProtocolFactory.cpp')
-rw-r--r-- | cpp/src/qpid/broker/windows/SslProtocolFactory.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/qpid/broker/windows/SslProtocolFactory.cpp b/cpp/src/qpid/broker/windows/SslProtocolFactory.cpp index ff177ba499..5b801aa69f 100644 --- a/cpp/src/qpid/broker/windows/SslProtocolFactory.cpp +++ b/cpp/src/qpid/broker/windows/SslProtocolFactory.cpp @@ -158,7 +158,7 @@ SslProtocolFactory::SslProtocolFactory(const SslServerOptions& options, // Get the certificate for this server. DWORD flags = 0; std::string certStoreLocation = options.certStoreLocation; - std::transform(certStoreLocation.begin(), certStoreLocation.end(), certStoreLocation.begin(), ::tolower);
+ std::transform(certStoreLocation.begin(), certStoreLocation.end(), certStoreLocation.begin(), ::tolower); if (certStoreLocation == "currentuser") { flags = CERT_SYSTEM_STORE_CURRENT_USER; } else if (certStoreLocation == "localmachine") { @@ -217,14 +217,14 @@ SslProtocolFactory::SslProtocolFactory(const SslServerOptions& options, // We must have at least one resolved address QPID_LOG(info, "SSL Listening to: " << sa.asString()) - Socket* s = new Socket; + Socket* s = createSocket(); listeningPort = s->listen(sa, backlog); listeners.push_back(s); // Try any other resolved addresses while (sa.nextAddress()) { QPID_LOG(info, "SSL Listening to: " << sa.asString()) - Socket* s = new Socket; + Socket* s = createSocket(); s->listen(sa, backlog); listeners.push_back(s); } @@ -325,7 +325,7 @@ void SslProtocolFactory::connect(sys::Poller::shared_ptr poller, // upon connection failure or by the AsynchIO upon connection // shutdown. The allocated AsynchConnector frees itself when it // is no longer needed. - qpid::sys::Socket* socket = new qpid::sys::Socket(); + qpid::sys::Socket* socket = createSocket(); connectFailedCallback = failed; AsynchConnector::create(*socket, host, |