diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-07 21:13:12 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-07 21:13:12 +0000 |
commit | 89712710a87638e226d834b62ea89ed308d1b3a8 (patch) | |
tree | 6ae959e77a053700b5984165c217e067bc3a7cba /src/modules/extra | |
parent | 297c720daecb7622f5eee80359987f416fa82227 (diff) |
Implement /dalinfo, as a joke. Consider this an easter egg.
More debug logging in m_ssl_openssl, still not fixed
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7430 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra')
-rw-r--r-- | src/modules/extra/m_ssl_openssl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp index 3db495c8b..ffd9d4032 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -376,6 +376,7 @@ 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"; @@ -487,6 +488,7 @@ class ModuleSSLOpenSSL : public Module } else { + errno = EAGAIN; return -1; } } @@ -775,6 +777,7 @@ class ModuleSSLOpenSSL : public Module { int ssl_err = SSL_get_error(session->sess, ret); char buf[1024]; + ERR_print_errors_fp(stderr); ServerInstance->Log(DEBUG,"Handshake fail 2: %d: %s", ssl_err, ERR_error_string(ssl_err,buf)); CloseSession(session); return true; |