diff options
author | Anthony Neal <aneal@zeroc.com> | 2002-03-13 20:10:07 +0000 |
---|---|---|
committer | Anthony Neal <aneal@zeroc.com> | 2002-03-13 20:10:07 +0000 |
commit | 27c5fa0a95a523c5bea82eecc420e805b4533aae (patch) | |
tree | b18f7be9632d266d7e8f6c16b02de831a3e11d57 /cpp/src/Ice/SslGeneralConfig.cpp | |
parent | cleanup (diff) | |
download | ice-27c5fa0a95a523c5bea82eecc420e805b4533aae.tar.bz2 ice-27c5fa0a95a523c5bea82eecc420e805b4533aae.tar.xz ice-27c5fa0a95a523c5bea82eecc420e805b4533aae.zip |
Refactor of SSL Extension, phase 1.
Diffstat (limited to 'cpp/src/Ice/SslGeneralConfig.cpp')
-rw-r--r-- | cpp/src/Ice/SslGeneralConfig.cpp | 44 |
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"; |