diff options
author | Marc Laukien <marc@zeroc.com> | 2002-04-17 22:36:40 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-04-17 22:36:40 +0000 |
commit | 43e11c8a3bd3b88fc2b4bcd837d12923e887ac64 (patch) | |
tree | 285e36dd0d255b69055e740b95365d2c185eda35 /cpp/src/IcePatch/Client.cpp | |
parent | file PluginF.ice was initially added on branch plugins. (diff) | |
download | ice-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.cpp | 15 |
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); |