diff options
author | Mark Spruiell <mes@zeroc.com> | 2015-04-07 13:51:23 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2015-04-07 13:51:23 -0700 |
commit | eb9a2c3ae76b862254669b798b51b2b848616b6a (patch) | |
tree | 4572185953d41caff7c27485462c52ce8faf1234 /cpp/src/IceSSL/OpenSSLEngine.cpp | |
parent | Added back makedepend.py. (diff) | |
download | ice-eb9a2c3ae76b862254669b798b51b2b848616b6a.tar.bz2 ice-eb9a2c3ae76b862254669b798b51b2b848616b6a.tar.xz ice-eb9a2c3ae76b862254669b798b51b2b848616b6a.zip |
ICE-6402 - IceSSL.DefaultDir fixes
Diffstat (limited to 'cpp/src/IceSSL/OpenSSLEngine.cpp')
-rw-r--r-- | cpp/src/IceSSL/OpenSSLEngine.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/cpp/src/IceSSL/OpenSSLEngine.cpp b/cpp/src/IceSSL/OpenSSLEngine.cpp index 50d494527f9..8dfde2f45fd 100644 --- a/cpp/src/IceSSL/OpenSSLEngine.cpp +++ b/cpp/src/IceSSL/OpenSSLEngine.cpp @@ -243,7 +243,7 @@ OpenSSLEngine::OpenSSLEngine(const CommunicatorPtr& communicator) : if(!randFiles.empty()) { vector<string> files; - string defaultDir = properties->getProperty("IceSSL.DefaultDir"); + const string defaultDir = properties->getProperty("IceSSL.DefaultDir"); if(!IceUtilInternal::splitString(randFiles, IceUtilInternal::pathsep, files)) { @@ -379,7 +379,7 @@ OpenSSLEngine::initialize() // Check for a default directory. We look in this directory for // files mentioned in the configuration. // - string defaultDir = properties->getProperty(propPrefix + "DefaultDir"); + const string defaultDir = properties->getProperty(propPrefix + "DefaultDir"); // // If the configuration defines a password, or the application has supplied @@ -657,12 +657,10 @@ OpenSSLEngine::initialize() string file = *p; if(!checkPath(file, defaultDir, false)) { - throw PluginInitializationException(__FILE__, __LINE__, - "IceSSL: key file not found:\n" + file); + throw PluginInitializationException(__FILE__, __LINE__, "IceSSL: key file not found:\n" + file); } // - // The private key may be stored in an encrypted file, so handle - // password retries. + // The private key may be stored in an encrypted file, so handle password retries. // int count = 0; int err = 0; |