diff options
author | Anthony Neal <aneal@zeroc.com> | 2002-03-26 21:27:15 +0000 |
---|---|---|
committer | Anthony Neal <aneal@zeroc.com> | 2002-03-26 21:27:15 +0000 |
commit | 91c4282aba368df0ea155431f5f2be42ce3c09ea (patch) | |
tree | dcf3f1f9a595d00ac6b442bdd4c19014ef432043 /cpp/src/Ice/ContextOpenSSL.cpp | |
parent | Updated to allow for the removal of RequestQueue?.h. (diff) | |
download | ice-91c4282aba368df0ea155431f5f2be42ce3c09ea.tar.bz2 ice-91c4282aba368df0ea155431f5f2be42ce3c09ea.tar.xz ice-91c4282aba368df0ea155431f5f2be42ce3c09ea.zip |
Conformance to Code Style review. As well, cleaned out some old code that
wasn't needed any more.
Diffstat (limited to 'cpp/src/Ice/ContextOpenSSL.cpp')
-rw-r--r-- | cpp/src/Ice/ContextOpenSSL.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/cpp/src/Ice/ContextOpenSSL.cpp b/cpp/src/Ice/ContextOpenSSL.cpp index edf5f9c58fb..35204470657 100644 --- a/cpp/src/Ice/ContextOpenSSL.cpp +++ b/cpp/src/Ice/ContextOpenSSL.cpp @@ -269,7 +269,7 @@ IceSSL::OpenSSL::Context::setKeyCert(const CertificateDesc& certDesc, if (!publicProperty.empty())
{
- publicKey = _properties->getProperty(publicProperty);
+ publicKey = _properties->getProperty(publicProperty);
}
if (!privateKey.empty() && !publicKey.empty())
@@ -505,9 +505,7 @@ IceSSL::OpenSSL::Context::addKeyCert(const Ice::ByteSeq& privateKey, const Ice:: }
// Make a key pair based on the DER encoded byte sequences.
- RSAKeyPair keyPair(privKey, publicKey);
-
- addKeyCert(keyPair);
+ addKeyCert(RSAKeyPair(privKey, publicKey));
}
void
@@ -526,9 +524,7 @@ IceSSL::OpenSSL::Context::addKeyCert(const std::string& privateKey, const std::s }
// Make a key pair based on the Base64 encoded strings.
- RSAKeyPair keyPair(privKey, publicKey);
-
- addKeyCert(keyPair);
+ addKeyCert(RSAKeyPair(privKey, publicKey));
}
SSL*
@@ -588,8 +584,7 @@ IceSSL::OpenSSL::Context::setDHParams(const BaseCertificates& baseCerts) std::string dhFile = baseCerts.getDHParams().getFileName();
int encoding = baseCerts.getDHParams().getEncoding();
- // File type must be PEM - that's the only way we can load
- // DH Params, apparently.
+ // File type must be PEM - that's the only way we can load DH Params, apparently.
if ((!dhFile.empty()) && (encoding == SSL_FILETYPE_PEM))
{
dh = loadDHParam(dhFile.c_str());
|