summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/SslTransceiver.cpp
diff options
context:
space:
mode:
authorAnthony Neal <aneal@zeroc.com>2002-02-18 19:59:08 +0000
committerAnthony Neal <aneal@zeroc.com>2002-02-18 19:59:08 +0000
commit05d06bf28399d88cf387da0cf5db7b4861495767 (patch)
tree1cc9d3629f4b8b8a58db33816c5be5f05cedb736 /cpp/src/Ice/SslTransceiver.cpp
parentUpdate. (diff)
downloadice-05d06bf28399d88cf387da0cf5db7b4861495767.tar.bz2
ice-05d06bf28399d88cf387da0cf5db7b4861495767.tar.xz
ice-05d06bf28399d88cf387da0cf5db7b4861495767.zip
Another update, primarily for slicifying SslCertificateVerifier and the
macro cleanup.
Diffstat (limited to 'cpp/src/Ice/SslTransceiver.cpp')
-rw-r--r--cpp/src/Ice/SslTransceiver.cpp21
1 files changed, 5 insertions, 16 deletions
diff --git a/cpp/src/Ice/SslTransceiver.cpp b/cpp/src/Ice/SslTransceiver.cpp
index a3ab29e1566..ef38b60eb3e 100644
--- a/cpp/src/Ice/SslTransceiver.cpp
+++ b/cpp/src/Ice/SslTransceiver.cpp
@@ -8,7 +8,7 @@
//
// **********************************************************************
-#include <Ice/Security.h>
+#include <Ice/OpenSSL.h>
#include <Ice/SslConnection.h>
#include <Ice/SslTransceiver.h>
#include <Ice/Instance.h>
@@ -33,8 +33,6 @@ IceInternal::SslTransceiver::fd()
void
IceInternal::SslTransceiver::close()
{
- ICE_METHOD_INV("SslTransceiver::close()");
-
if (_traceLevels->network >= 1)
{
ostringstream s;
@@ -47,15 +45,11 @@ IceInternal::SslTransceiver::close()
_sslConnection->shutdown();
::shutdown(fd, SHUT_RDWR); // helps to unblock threads in recv()
closeSocket(fd);
-
- ICE_METHOD_RET("SslTransceiver::close()");
}
void
IceInternal::SslTransceiver::shutdown()
{
- ICE_METHOD_INV("SslTransceiver::shutdown()");
-
if (_traceLevels->network >= 2)
{
ostringstream s;
@@ -65,26 +59,23 @@ IceInternal::SslTransceiver::shutdown()
_sslConnection->shutdown();
::shutdown(_fd, SHUT_WR); // Shutdown socket for writing
-
- ICE_METHOD_RET("SslTransceiver::shutdown()");
}
void
IceInternal::SslTransceiver::write(Buffer& buf, int timeout)
{
- ICE_METHOD_INV("SslTransceiver::write()")
_sslConnection->write(buf, timeout);
- ICE_METHOD_RET("SslTransceiver::write()");
}
void
IceInternal::SslTransceiver::read(Buffer& buf, int timeout)
{
- ICE_METHOD_INV("SslTransceiver::read()");
-
if (!_sslConnection->read(buf, timeout))
{
- ICE_WARNING("Connection::read() returning no bytes read.");
+ if (_traceLevels->security >= IceSecurity::SECURITY_WARNINGS)
+ {
+ _logger->trace(_traceLevels->securityCat, "WRN Connection::read() returning no bytes read.");
+ }
// TODO: Perhaps this should be a NoApplicationDataException ???
// ICE_WARNING("Throwing ConnectionLostException.");
@@ -92,8 +83,6 @@ IceInternal::SslTransceiver::read(Buffer& buf, int timeout)
// clEx.error = 0;
// throw clEx;
}
-
- ICE_METHOD_RET("SslTransceiver::read()");
}
string