aboutsummaryrefslogtreecommitdiffstats
path: root/src/security/sasl/SASLSocket.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2009-11-30 13:04:15 +0000
committerVincent Richard <[email protected]>2009-11-30 13:04:15 +0000
commit5d8282568759f1e7c33537153f1ac0f190d64888 (patch)
tree14ac69ed9aa177668c4366f7d3c7fe4f58af32b7 /src/security/sasl/SASLSocket.cpp
parentQuote mailbox name instead of encoding it whenever it's possible. (diff)
downloadvmime-5d8282568759f1e7c33537153f1ac0f190d64888.tar.gz
vmime-5d8282568759f1e7c33537153f1ac0f190d64888.zip
Added block size on sockets to allow different buffer size for SSL.
Diffstat (limited to 'src/security/sasl/SASLSocket.cpp')
-rw-r--r--src/security/sasl/SASLSocket.cpp10
1 files changed, 8 insertions, 2 deletions
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;