From 5d8282568759f1e7c33537153f1ac0f190d64888 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Mon, 30 Nov 2009 13:04:15 +0000 Subject: Added block size on sockets to allow different buffer size for SSL. --- src/security/sasl/SASLSocket.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/security/sasl/SASLSocket.cpp') diff --git a/src/security/sasl/SASLSocket.cpp b/src/security/sasl/SASLSocket.cpp index 118429ab..d88153e4 100644 --- a/src/security/sasl/SASLSocket.cpp +++ b/src/security/sasl/SASLSocket.cpp @@ -69,6 +69,12 @@ bool SASLSocket::isConnected() const } +SASLSocket::size_type SASLSocket::getBlockSize() const +{ + return m_wrapped->getBlockSize(); +} + + void SASLSocket::receive(string& buffer) { const int n = receiveRaw(m_recvBuffer, sizeof(m_recvBuffer)); @@ -77,7 +83,7 @@ void SASLSocket::receive(string& buffer) } -int SASLSocket::receiveRaw(char* buffer, const int count) +SASLSocket::size_type SASLSocket::receiveRaw(char* buffer, const size_type count) { if (m_pendingLen != 0) { @@ -141,7 +147,7 @@ void SASLSocket::send(const string& buffer) } -void SASLSocket::sendRaw(const char* buffer, const int count) +void SASLSocket::sendRaw(const char* buffer, const size_type count) { byte_t* output = 0; int outputLen = 0; -- cgit v1.2.3