summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/ClientContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceSSL/ClientContext.cpp')
-rw-r--r--cpp/src/IceSSL/ClientContext.cpp75
1 files changed, 0 insertions, 75 deletions
diff --git a/cpp/src/IceSSL/ClientContext.cpp b/cpp/src/IceSSL/ClientContext.cpp
deleted file mode 100644
index e9a83188c98..00000000000
--- a/cpp/src/IceSSL/ClientContext.cpp
+++ /dev/null
@@ -1,75 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2006 ZeroC, Inc. All rights reserved.
-//
-// This copy of Ice is licensed to you under the terms described in the
-// ICE_LICENSE file included in this distribution.
-//
-// **********************************************************************
-
-#include <Ice/Communicator.h>
-#include <Ice/LoggerUtil.h>
-
-#include <IceSSL/Exception.h>
-#include <IceSSL/ClientContext.h>
-#include <IceSSL/SslTransceiver.h>
-#include <IceSSL/TraceLevels.h>
-
-using namespace std;
-using namespace Ice;
-
-void
-IceSSL::ClientContext::configure(const GeneralConfig& generalConfig,
- const CertificateAuthority& certificateAuthority,
- const BaseCertificates& baseCertificates)
-{
- Context::configure(generalConfig, certificateAuthority, baseCertificates);
-
- loadCertificateAuthority(certificateAuthority);
-
- if(_traceLevels->security >= SECURITY_PROTOCOL)
- {
- Trace out(_communicator->getLogger(), _traceLevels->securityCat);
-
- out << "\n";
- out << "general configuration (client)\n";
- out << "------------------------------\n";
- IceSSL::operator<<(out, generalConfig);
- out << "\n\n";
-
- out << "certificate authority (client)\n";
- out << "------------------------------\n";
- out << "file: " << certificateAuthority.getCAFileName() << "\n";
- out << "path: " << certificateAuthority.getCAPath() << "\n";
-
- out << "base certificates (client)\n";
- out << "--------------------------\n";
- IceSSL::operator<<(out, baseCertificates);
- out << "\n";
- }
-}
-
-IceSSL::SslTransceiverPtr
-IceSSL::ClientContext::createTransceiver(int socket, const OpenSSLPluginIPtr& plugin, int timeout)
-{
- if(_sslContext == 0)
- {
- ContextNotConfiguredException contextEx(__FILE__, __LINE__);
-
- throw contextEx;
- }
-
- SSL* ssl = createSSLConnection(socket);
- return new SslTransceiver(IceSSL::Client, plugin, socket, _certificateVerifier, ssl, timeout);
-}
-
-IceSSL::ClientContext::ClientContext(const TraceLevelsPtr& traceLevels, const CommunicatorPtr& communicator) :
- Context(traceLevels, communicator, Client)
-{
- _rsaPrivateKeyProperty = "IceSSL.Client.Overrides.RSA.PrivateKey";
- _rsaPublicKeyProperty = "IceSSL.Client.Overrides.RSA.Certificate";
- _dsaPrivateKeyProperty = "IceSSL.Client.Overrides.DSA.PrivateKey";
- _dsaPublicKeyProperty = "IceSSL.Client.Overrides.DSA.Certificate";
- _caCertificateProperty = "IceSSL.Client.Overrides.CACertificate";
- _passphraseRetriesProperty = "IceSSL.Client.Passphrase.Retries";
-}