summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-11-04 00:47:02 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-11-04 00:47:02 +0000
commite791ca02d479b9ce86fd2d6f4a4e98d1de26252e (patch)
treeb5e82a6f15e7cefb88915cc5e9ac4b8867044632 /src/modules/extra
parent9566b0bb159d994506094f011b5dcf73fc1c38a3 (diff)
Clarify handshake failure messages
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12008 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp
index 95beff3aa..d4422a3de 100644
--- a/src/modules/extra/m_ssl_gnutls.cpp
+++ b/src/modules/extra/m_ssl_gnutls.cpp
@@ -402,7 +402,6 @@ class ModuleSSLGnuTLS : public Module
{
if (session->status != ISSL_CLOSING)
return 0;
- user->SetError("Handshake Failed");
return -1;
}
}
@@ -459,7 +458,6 @@ class ModuleSSLGnuTLS : public Module
Handshake(session, user);
if (session->status != ISSL_CLOSING)
return 0;
- user->SetError("Handshake Failed");
return -1;
}
@@ -527,6 +525,7 @@ class ModuleSSLGnuTLS : public Module
}
else
{
+ user->SetError(std::string("Handshake Failed - ") + gnutls_strerror(ret));
CloseSession(session);
session->status = ISSL_CLOSING;
}