diff options
author | Mark Spruiell <mes@zeroc.com> | 2005-01-05 17:05:42 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2005-01-05 17:05:42 +0000 |
commit | 107171aed7a37aef9818c7891dee89efa190885e (patch) | |
tree | 6638fc17a79379761ec080b693e58d3733e8f981 | |
parent | *** empty log message *** (diff) | |
download | ice-107171aed7a37aef9818c7891dee89efa190885e.tar.bz2 ice-107171aed7a37aef9818c7891dee89efa190885e.tar.xz ice-107171aed7a37aef9818c7891dee89efa190885e.zip |
fixing an encoding bug in IceSSL
-rw-r--r-- | cpp/CHANGES | 2 | ||||
-rw-r--r-- | cpp/src/IceSSL/CertificateDesc.cpp | 2 | ||||
-rw-r--r-- | cpp/src/IceSSL/ConfigParser.cpp | 8 |
3 files changed, 7 insertions, 5 deletions
diff --git a/cpp/CHANGES b/cpp/CHANGES index 120e9e6e2ce..f6a3adf5f9f 100644 --- a/cpp/CHANGES +++ b/cpp/CHANGES @@ -1,6 +1,8 @@ Changes since version 2.0.0 --------------------------- +- Fixed an encoding bug in IceSSL. + - Fixed incorrect logging message if no more endpoints are available for retry. diff --git a/cpp/src/IceSSL/CertificateDesc.cpp b/cpp/src/IceSSL/CertificateDesc.cpp index cb25eb092ff..5020ee88c8d 100644 --- a/cpp/src/IceSSL/CertificateDesc.cpp +++ b/cpp/src/IceSSL/CertificateDesc.cpp @@ -18,7 +18,7 @@ using namespace IceSSL; IceSSL::CertificateFile::CertificateFile() : _fileName(""), - _encoding(0) + _encoding(SSL_FILETYPE_PEM) { } diff --git a/cpp/src/IceSSL/ConfigParser.cpp b/cpp/src/IceSSL/ConfigParser.cpp index b7a7eb5fe34..6fb9630f8f8 100644 --- a/cpp/src/IceSSL/ConfigParser.cpp +++ b/cpp/src/IceSSL/ConfigParser.cpp @@ -421,7 +421,7 @@ IceSSL::ConfigParser::loadCertificateFile(const IceXML::NodePtr& rootNode, Certi } string filename; - int encoding = 0; // Initialize, to keep the compiler from complaining. + int encoding = SSL_FILETYPE_PEM; // PEM is the default type. filename = rootNode->getAttribute("filename"); if(!filename.empty()) @@ -463,13 +463,13 @@ IceSSL::ConfigParser::isAbsolutePath(string& pathString) int IceSSL::ConfigParser::parseEncoding(string& encodingString) { - int encoding = 0; + int encoding = SSL_FILETYPE_PEM; - if(encodingString.compare("PEM") == 0) + if(encodingString == "PEM") { encoding = SSL_FILETYPE_PEM; } - else if(encodingString.compare("ASN1") == 0) + else if(encodingString == "ASN1") { encoding = SSL_FILETYPE_ASN1; } |