summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/SslGeneralConfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/SslGeneralConfig.cpp')
-rw-r--r--cpp/src/Ice/SslGeneralConfig.cpp44
1 files changed, 40 insertions, 4 deletions
diff --git a/cpp/src/Ice/SslGeneralConfig.cpp b/cpp/src/Ice/SslGeneralConfig.cpp
index 4178ed85de7..c8863c84b9b 100644
--- a/cpp/src/Ice/SslGeneralConfig.cpp
+++ b/cpp/src/Ice/SslGeneralConfig.cpp
@@ -24,7 +24,7 @@
using namespace std;
-IceSecurity::Ssl::GeneralConfig::GeneralConfig()
+IceSSL::GeneralConfig::GeneralConfig()
{
_sslVersion = SSL_V23;
@@ -35,9 +35,45 @@ IceSecurity::Ssl::GeneralConfig::GeneralConfig()
_cipherList = "";
_randomBytesFiles = "";
}
+
+IceSSL::SslProtocol
+IceSSL::GeneralConfig::getProtocol() const
+{
+ return _sslVersion;
+}
+
+int
+IceSSL::GeneralConfig::getVerifyMode() const
+{
+ return _verifyMode;
+}
+
+int
+IceSSL::GeneralConfig::getVerifyDepth() const
+{
+ return _verifyDepth;
+}
+
+std::string
+IceSSL::GeneralConfig::getContext() const
+{
+ return _context;
+}
+
+std::string
+IceSSL::GeneralConfig::getCipherList() const
+{
+ return _cipherList;
+}
+
+std::string
+IceSSL::GeneralConfig::getRandomBytesFiles() const
+{
+ return _randomBytesFiles;
+}
void
-IceSecurity::Ssl::GeneralConfig::set(string& name, string& value)
+IceSSL::GeneralConfig::set(string& name, string& value)
{
if (name.compare("version") == 0)
{
@@ -71,7 +107,7 @@ IceSecurity::Ssl::GeneralConfig::set(string& name, string& value)
//
void
-IceSecurity::Ssl::GeneralConfig::parseVersion(string& value)
+IceSSL::GeneralConfig::parseVersion(string& value)
{
if (value.compare("SSLv2") == 0)
{
@@ -94,7 +130,7 @@ IceSecurity::Ssl::GeneralConfig::parseVersion(string& value)
}
void
-IceSecurity::Ssl::GeneralConfig::parseVerifyMode(string& value)
+IceSSL::GeneralConfig::parseVerifyMode(string& value)
{
const string delim = " |\t\n\r";