summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/handshaketimer.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-28 16:12:33 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-28 16:12:33 +0000
commit9da5c6610fffc9677646ef1d55c0e41fca8778a9 (patch)
tree840c46ac37daa9424535454a359d41053bc70432 /src/modules/m_spanningtree/handshaketimer.cpp
parent642218aed7c59304811227cde33816cf36f73b45 (diff)
Fix broken openssl outbound connects.
A record needs to be kept of if this session was initially outbound or inbound, so we know if we need to re-call SSL_connect or SSL_accept on handshake failure, we also need to have two SSL_CTX's, one initialized as a client context and one as a server context (this is EW, but i guess its just how openssl does stuff) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6449 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree/handshaketimer.cpp')
-rw-r--r--src/modules/m_spanningtree/handshaketimer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/handshaketimer.cpp b/src/modules/m_spanningtree/handshaketimer.cpp
index 97c9ed93e..150c9eecd 100644
--- a/src/modules/m_spanningtree/handshaketimer.cpp
+++ b/src/modules/m_spanningtree/handshaketimer.cpp
@@ -26,10 +26,13 @@ HandshakeTimer::HandshakeTimer(InspIRCd* Inst, TreeSocket* s, Link* l, SpanningT
void HandshakeTimer::Tick(time_t TIME)
{
+ Instance->Log(DEBUG,"Tick handshake timer.");
if (Instance->SE->GetRef(thefd) == sock)
{
+ Instance->Log(DEBUG,"Socket still here");
if (sock->GetHook() && InspSocketHSCompleteRequest(sock, (Module*)Utils->Creator, sock->GetHook()).Send())
{
+ Instance->Log(DEBUG,"request complete");
InspSocketAttachCertRequest(sock, (Module*)Utils->Creator, sock->GetHook()).Send();
sock->SendCapabilities();
if (sock->GetLinkState() == CONNECTING)
@@ -39,7 +42,9 @@ void HandshakeTimer::Tick(time_t TIME)
}
else
{
+ Instance->Log(DEBUG,"Request not yet complete");
Instance->Timers->AddTimer(new HandshakeTimer(Instance, sock, lnk, Utils));
}
}
}
+