summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/IceSSL/OpenSSLEngine.cpp7
-rw-r--r--cpp/src/IceSSL/SSLEngine.h1
2 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/IceSSL/OpenSSLEngine.cpp b/cpp/src/IceSSL/OpenSSLEngine.cpp
index c7510a6774c..5ec9186ed6e 100644
--- a/cpp/src/IceSSL/OpenSSLEngine.cpp
+++ b/cpp/src/IceSSL/OpenSSLEngine.cpp
@@ -41,6 +41,7 @@ namespace
IceUtil::Mutex* staticMutex = 0;
int instanceCount = 0;
+bool initOpenSSL = false;
IceUtil::Mutex* locks = 0;
class Init
@@ -189,8 +190,8 @@ OpenSSLEngine::OpenSSLEngine(const CommunicatorPtr& communicator) :
// application should disable OpenSSL initialization in those components and
// perform the initialization itself.
//
- _initOpenSSL = properties->getPropertyAsIntWithDefault("IceSSL.InitOpenSSL", 1) > 0;
- if(_initOpenSSL)
+ initOpenSSL = properties->getPropertyAsIntWithDefault("IceSSL.InitOpenSSL", 1) > 0;
+ if(initOpenSSL)
{
//
// Create the mutexes and set the callbacks.
@@ -302,7 +303,7 @@ OpenSSLEngine::~OpenSSLEngine()
//
IceUtilInternal::MutexPtrLock<IceUtil::Mutex> sync(staticMutex);
- if(--instanceCount == 0 && _initOpenSSL)
+ if(--instanceCount == 0 && initOpenSSL)
{
//
// NOTE: We can't destroy the locks here: threads which might have called openssl methods
diff --git a/cpp/src/IceSSL/SSLEngine.h b/cpp/src/IceSSL/SSLEngine.h
index a85c956fb6f..e199f1e1134 100644
--- a/cpp/src/IceSSL/SSLEngine.h
+++ b/cpp/src/IceSSL/SSLEngine.h
@@ -245,7 +245,6 @@ private:
int parseProtocols(const Ice::StringSeq&) const;
- bool _initOpenSSL;
bool _initialized;
SSL_CTX* _ctx;
std::string _defaultDir;