diff options
author | Benoit Foucher <benoit@zeroc.com> | 2003-05-19 03:02:25 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2003-05-19 03:02:25 +0000 |
commit | 47b282486e526c63359c92b833bdced50e1899d3 (patch) | |
tree | f3183b593c2a763281c53ffde61628f6c7fff1ee /cpp/src/IceSSL/ServerContext.cpp | |
parent | Fixed incorrect scope of iterator for for loop for VC6. (diff) | |
download | ice-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/ServerContext.cpp')
-rw-r--r-- | cpp/src/IceSSL/ServerContext.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/src/IceSSL/ServerContext.cpp b/cpp/src/IceSSL/ServerContext.cpp index 6b927caffda..a7270c801cd 100644 --- a/cpp/src/IceSSL/ServerContext.cpp +++ b/cpp/src/IceSSL/ServerContext.cpp @@ -12,6 +12,7 @@ // // ********************************************************************** +#include <Ice/Communicator.h> #include <Ice/LoggerUtil.h> #include <IceSSL/Exception.h> @@ -56,7 +57,7 @@ IceSSL::ServerContext::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 (server)\n"; @@ -96,9 +97,8 @@ IceSSL::ServerContext::createTransceiver(int socket, const OpenSSLPluginIPtr& pl // Protected // -IceSSL::ServerContext::ServerContext(const TraceLevelsPtr& traceLevels, const LoggerPtr& logger, - const PropertiesPtr& properties) : - Context(traceLevels, logger, properties) +IceSSL::ServerContext::ServerContext(const TraceLevelsPtr& traceLevels, const CommunicatorPtr& communicator) : + Context(traceLevels, communicator) { _rsaPrivateKeyProperty = "IceSSL.Server.Overrides.RSA.PrivateKey"; _rsaPublicKeyProperty = "IceSSL.Server.Overrides.RSA.Certificate"; @@ -129,7 +129,7 @@ IceSSL::ServerContext::loadCertificateAuthority(const CertificateAuthority& cert { if(_traceLevels->security >= SECURITY_WARNINGS) { - Trace out(_logger, _traceLevels->securityCat); + Trace out(_communicator->getLogger(), _traceLevels->securityCat); out << "WRN unable to load certificate authorities certificate names from " << caFile << "\n"; out << sslGetErrors(); } |