summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/SecureTransportTransceiverI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceSSL/SecureTransportTransceiverI.cpp')
-rw-r--r--cpp/src/IceSSL/SecureTransportTransceiverI.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/IceSSL/SecureTransportTransceiverI.cpp b/cpp/src/IceSSL/SecureTransportTransceiverI.cpp
index 08bce7548a1..99f4571224e 100644
--- a/cpp/src/IceSSL/SecureTransportTransceiverI.cpp
+++ b/cpp/src/IceSSL/SecureTransportTransceiverI.cpp
@@ -258,7 +258,7 @@ IceSSL::TransceiverI::initialize(IceInternal::Buffer& readBuffer, IceInternal::B
<< "remote address = " << desc << "\n" << errorToString(err);
throw ProtocolException(__FILE__, __LINE__, os.str());
}
- _engine->verifyPeer(_stream->fd(), _host, NativeConnectionInfoPtr::dynamicCast(getInfo()));
+ _engine->verifyPeer(_stream->fd(), _host, ICE_DYNAMIC_CAST(NativeConnectionInfo, getInfo()));
if(_instance->engine()->securityTraceLevel() >= 1)
{
@@ -484,7 +484,7 @@ IceSSL::TransceiverI::toDetailedString() const
Ice::ConnectionInfoPtr
IceSSL::TransceiverI::getInfo() const
{
- NativeConnectionInfoPtr info = new NativeConnectionInfo();
+ NativeConnectionInfoPtr info = ICE_MAKE_SHARED(NativeConnectionInfo);
fillConnectionInfo(info, info->nativeCerts);
return info;
}
@@ -492,7 +492,7 @@ IceSSL::TransceiverI::getInfo() const
Ice::ConnectionInfoPtr
IceSSL::TransceiverI::getWSInfo(const Ice::HeaderDict& headers) const
{
- WSSNativeConnectionInfoPtr info = new WSSNativeConnectionInfo();
+ WSSNativeConnectionInfoPtr info = ICE_MAKE_SHARED(WSSNativeConnectionInfo);
fillConnectionInfo(info, info->nativeCerts);
info->headers = headers;
return info;
@@ -554,7 +554,7 @@ IceSSL::TransceiverI::fillConnectionInfo(const ConnectionInfoPtr& info, std::vec
SecCertificateRef cert = SecTrustGetCertificateAtIndex(_trust, i);
CFRetain(cert);
- CertificatePtr certificate = new Certificate(cert);
+ CertificatePtr certificate = ICE_MAKE_SHARED(Certificate, cert);
nativeCerts.push_back(certificate);
info->certs.push_back(certificate->encode());
}