summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/ClientContext.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2003-05-19 03:02:25 +0000
committerBenoit Foucher <benoit@zeroc.com>2003-05-19 03:02:25 +0000
commit47b282486e526c63359c92b833bdced50e1899d3 (patch)
treef3183b593c2a763281c53ffde61628f6c7fff1ee /cpp/src/IceSSL/ClientContext.cpp
parentFixed incorrect scope of iterator for for loop for VC6. (diff)
downloadice-47b282486e526c63359c92b833bdced50e1899d3.tar.bz2
ice-47b282486e526c63359c92b833bdced50e1899d3.tar.xz
ice-47b282486e526c63359c92b833bdced50e1899d3.zip
Use communicator->getLogger() instead of caching the logger to eventually
use logger installed by the user.
Diffstat (limited to 'cpp/src/IceSSL/ClientContext.cpp')
-rw-r--r--cpp/src/IceSSL/ClientContext.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/IceSSL/ClientContext.cpp b/cpp/src/IceSSL/ClientContext.cpp
index 8ca2d41b36a..8708ca58508 100644
--- a/cpp/src/IceSSL/ClientContext.cpp
+++ b/cpp/src/IceSSL/ClientContext.cpp
@@ -12,6 +12,7 @@
//
// **********************************************************************
+#include <Ice/Communicator.h>
#include <Ice/LoggerUtil.h>
#include <IceSSL/Exception.h>
@@ -33,7 +34,7 @@ IceSSL::ClientContext::configure(const GeneralConfig& generalConfig,
if(_traceLevels->security >= SECURITY_PROTOCOL)
{
- Trace out(_logger, _traceLevels->securityCat);
+ Trace out(_communicator->getLogger(), _traceLevels->securityCat);
out << "\n";
out << "general configuration (client)\n";
@@ -71,9 +72,8 @@ IceSSL::ClientContext::createTransceiver(int socket, const OpenSSLPluginIPtr& pl
return transceiver;
}
-IceSSL::ClientContext::ClientContext(const TraceLevelsPtr& traceLevels, const LoggerPtr& logger,
- const PropertiesPtr& properties) :
- Context(traceLevels, logger, properties)
+IceSSL::ClientContext::ClientContext(const TraceLevelsPtr& traceLevels, const CommunicatorPtr& communicator) :
+ Context(traceLevels, communicator)
{
_rsaPrivateKeyProperty = "IceSSL.Client.Overrides.RSA.PrivateKey";
_rsaPublicKeyProperty = "IceSSL.Client.Overrides.RSA.Certificate";