summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/ContextOpenSSLClient.cpp
diff options
context:
space:
mode:
authorAnthony Neal <aneal@zeroc.com>2002-09-13 10:36:31 +0000
committerAnthony Neal <aneal@zeroc.com>2002-09-13 10:36:31 +0000
commitaacdab0bfc03b9e1e3aa3b58223359d7858aced9 (patch)
tree1841c95649f16a5131629f6ea5f23637ad6ef54b /cpp/src/IceSSL/ContextOpenSSLClient.cpp
parentfixes (diff)
downloadice-aacdab0bfc03b9e1e3aa3b58223359d7858aced9.tar.bz2
ice-aacdab0bfc03b9e1e3aa3b58223359d7858aced9.tar.xz
ice-aacdab0bfc03b9e1e3aa3b58223359d7858aced9.zip
Cleanup of IceSSL, removal of OpenSSL namespace.
Diffstat (limited to 'cpp/src/IceSSL/ContextOpenSSLClient.cpp')
-rw-r--r--cpp/src/IceSSL/ContextOpenSSLClient.cpp81
1 files changed, 0 insertions, 81 deletions
diff --git a/cpp/src/IceSSL/ContextOpenSSLClient.cpp b/cpp/src/IceSSL/ContextOpenSSLClient.cpp
deleted file mode 100644
index da127d331c3..00000000000
--- a/cpp/src/IceSSL/ContextOpenSSLClient.cpp
+++ /dev/null
@@ -1,81 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2002
-// Mutable Realms, Inc.
-// Huntsville, AL, USA
-//
-// All Rights Reserved
-//
-// **********************************************************************
-
-#include <Ice/Logger.h>
-
-#include <IceSSL/Exception.h>
-#include <IceSSL/ContextOpenSSLClient.h>
-#include <IceSSL/SslClientTransceiver.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)
- {
- ostringstream s;
-
- s << endl;
- s << "general configuration (client)" << endl;
- s << "------------------------------" << endl;
- s << generalConfig << endl << endl;
-
- s << "certificate authority (client)" << endl;
- s << "------------------------------" << endl;
- s << "file: " << certificateAuthority.getCAFileName() << endl;
- s << "path: " << certificateAuthority.getCAPath() << endl;
-
- s << "base certificates (client)" << endl;
- s << "--------------------------" << endl;
- s << baseCertificates << endl;
-
- _logger->trace(_traceLevels->securityCat, s.str());
- }
-}
-
-IceSSL::SslTransceiverPtr
-IceSSL::ClientContext::createTransceiver(int socket, const PluginBaseIPtr& plugin)
-{
- if(_sslContext == 0)
- {
- OpenSSL::ContextNotConfiguredException contextEx(__FILE__, __LINE__);
-
- throw contextEx;
- }
-
- SSL* ssl = createSSLConnection(socket);
- SslTransceiverPtr transceiver = new SslClientTransceiver(plugin, socket, _certificateVerifier, ssl);
-
- transceiverSetup(transceiver);
-
- return transceiver;
-}
-
-IceSSL::ClientContext::ClientContext(const TraceLevelsPtr& traceLevels, const LoggerPtr& logger,
- const PropertiesPtr& properties) :
- Context(traceLevels, logger, properties)
-{
- _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";
- _handshakeTimeoutProperty = "IceSSL.Client.Handshake.ReadTimeout";
- _passphraseRetriesProperty = "IceSSL.Client.Passphrase.Retries";
-}