summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2007-09-29 00:15:41 +0000
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2007-09-29 00:15:41 +0000
commit9fcef6f685d75eb36a12162c8a9bd8d48a66a47a (patch)
tree70214809c4883f137005585755c013420be1c5cd /src/modules/extra
parent417b01fe509ea114eb52e2bcf67261e59247e533 (diff)
Removed extremely verbose debugging from the SSL modules, as I believe that bug has been fixed (and we don't want this in for release anyway)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8092 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp9
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp2
2 files changed, 0 insertions, 11 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp
index de1f6d55f..91e1fae0f 100644
--- a/src/modules/extra/m_ssl_gnutls.cpp
+++ b/src/modules/extra/m_ssl_gnutls.cpp
@@ -506,7 +506,6 @@ class ModuleSSLGnuTLS : public Module
if (!session->sess)
{
- ServerInstance->Log(DEBUG,"No session");
CloseSession(session);
return 1;
}
@@ -518,7 +517,6 @@ class ModuleSSLGnuTLS : public Module
if (session->status == ISSL_HANDSHAKING_WRITE)
{
// The handshake isn't finished, try to finish it.
- ServerInstance->Log(DEBUG,"Finishing handshake");
Handshake(session);
errno = EAGAIN;
return -1;
@@ -528,9 +526,7 @@ class ModuleSSLGnuTLS : public Module
if (session->status == ISSL_HANDSHAKEN)
{
- ServerInstance->Log(DEBUG,"Send record");
ret = gnutls_record_send(session->sess, sendbuffer, count);
- ServerInstance->Log(DEBUG,"Return: %d", ret);
if (ret == 0)
{
@@ -540,18 +536,15 @@ class ModuleSSLGnuTLS : public Module
{
if(ret != GNUTLS_E_AGAIN && ret != GNUTLS_E_INTERRUPTED)
{
- ServerInstance->Log(DEBUG,"Not egain or interrupt, close session");
CloseSession(session);
}
else
{
- ServerInstance->Log(DEBUG,"Again please");
errno = EAGAIN;
}
}
else
{
- ServerInstance->Log(DEBUG,"Trim buffer");
session->outbuf = session->outbuf.substr(ret);
}
}
@@ -691,14 +684,12 @@ class ModuleSSLGnuTLS : public Module
EventHandler* eh = ServerInstance->FindDescriptor(session->fd);
if (eh)
ServerInstance->SE->WantWrite(eh);
- ServerInstance->Log(DEBUG, "Want write set");
}
virtual void OnBufferFlushed(userrec* user)
{
if (user->GetExt("ssl"))
{
- ServerInstance->Log(DEBUG,"OnBufferFlushed for ssl user");
issl_session* session = &sessions[user->GetFd()];
if (session && session->outbuf.size())
OnRawSocketWrite(user->GetFd(), NULL, 0);
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp
index 8e8b03b85..f05423ca6 100644
--- a/src/modules/extra/m_ssl_openssl.cpp
+++ b/src/modules/extra/m_ssl_openssl.cpp
@@ -371,7 +371,6 @@ class ModuleSSLOpenSSL : public Module
}
else if (strcmp("IS_HSDONE", request->GetId()) == 0)
{
- ServerInstance->Log(DEBUG,"Module checking if handshake is done");
if (ISR->Sock->GetFd() < 0)
return (char*)"OK";
@@ -797,7 +796,6 @@ class ModuleSSLOpenSSL : public Module
{
if (user->GetExt("ssl"))
{
- ServerInstance->Log(DEBUG,"OnBufferFlushed for ssl user");
issl_session* session = &sessions[user->GetFd()];
if (session && session->outbuf.size())
OnRawSocketWrite(user->GetFd(), NULL, 0);