From e791ca02d479b9ce86fd2d6f4a4e98d1de26252e Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 4 Nov 2009 00:47:02 +0000 Subject: Clarify handshake failure messages git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12008 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_ssl_gnutls.cpp | 3 +-- 1 file changed, 1 insertion(+), 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; } -- cgit v1.2.3