summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch/Client.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-04-17 22:36:40 +0000
committerMarc Laukien <marc@zeroc.com>2002-04-17 22:36:40 +0000
commit43e11c8a3bd3b88fc2b4bcd837d12923e887ac64 (patch)
tree285e36dd0d255b69055e740b95365d2c185eda35 /cpp/src/IcePatch/Client.cpp
parentfile PluginF.ice was initially added on branch plugins. (diff)
downloadice-43e11c8a3bd3b88fc2b4bcd837d12923e887ac64.tar.bz2
ice-43e11c8a3bd3b88fc2b4bcd837d12923e887ac64.tar.xz
ice-43e11c8a3bd3b88fc2b4bcd837d12923e887ac64.zip
fixes
Diffstat (limited to 'cpp/src/IcePatch/Client.cpp')
-rw-r--r--cpp/src/IcePatch/Client.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/cpp/src/IcePatch/Client.cpp b/cpp/src/IcePatch/Client.cpp
index 3fb8b6d4d5f..7702792361e 100644
--- a/cpp/src/IcePatch/Client.cpp
+++ b/cpp/src/IcePatch/Client.cpp
@@ -126,9 +126,7 @@ IcePatch::Client::run(int argc, char* argv[])
}
string clientConfig = properties->getProperty("Ice.SSL.Client.Config");
- string serverConfig = properties->getProperty("Ice.SSL.Server.Config");
-
- if (!clientConfig.empty() && !serverConfig.empty())
+ if (!clientConfig.empty())
{
string privateKeyBase64 = IceUtil::Base64::encode(privateKey);
string publicKeyBase64 = IceUtil::Base64::encode(publicKey);
@@ -137,14 +135,9 @@ IcePatch::Client::run(int argc, char* argv[])
IceSSL::SystemPtr sslSystem = communicator()->getSslSystem();
IceSSL::SslExtensionPtr sslExtension = communicator()->getSslExtension();
- // Configure Server, client is already configured.
- sslSystem->configure(IceSSL::Server);
- sslSystem->setCertificateVerifier(IceSSL::ClientServer,
- sslExtension->getSingleCertVerifier(routerCert));
-
- // Set the keys overrides.
- sslSystem->setRSAKeysBase64(IceSSL::ClientServer, privateKeyBase64, publicKeyBase64);
- sslSystem->addTrustedCertificateBase64(IceSSL::ClientServer, routerCertString);
+ sslSystem->setCertificateVerifier(IceSSL::Client, sslExtension->getSingleCertVerifier(routerCert));
+ sslSystem->setRSAKeysBase64(IceSSL::Client, privateKeyBase64, publicKeyBase64);
+ sslSystem->addTrustedCertificateBase64(IceSSL::Client, routerCertString);
}
communicator()->setDefaultRouter(router);