diff options
| author | 2007-04-09 15:18:13 +0000 | |
|---|---|---|
| committer | 2007-04-09 15:18:13 +0000 | |
| commit | fdecf7fb707c415a54c3f41fd45fbc41f6ae4f3d (patch) | |
| tree | 7730255f3fddbbc2d2707af7a0a5b9964aab05fb /src/modules/m_spanningtree/handshaketimer.cpp | |
| parent | Test code that pretends to send a hashed value if its got a challenge - don't... (diff) | |
| download | inspircd++-fdecf7fb707c415a54c3f41fd45fbc41f6ae4f3d.tar.gz inspircd++-fdecf7fb707c415a54c3f41fd45fbc41f6ae4f3d.tar.bz2 inspircd++-fdecf7fb707c415a54c3f41fd45fbc41f6ae4f3d.zip | |
Add basic HMAC suggested by jilles to make the auth not suck -- this is probably buggy, and the other side doesnt auth yet. do not use.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6769 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree/handshaketimer.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/handshaketimer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/handshaketimer.cpp b/src/modules/m_spanningtree/handshaketimer.cpp index e57141a7c..a82ea7ea0 100644 --- a/src/modules/m_spanningtree/handshaketimer.cpp +++ b/src/modules/m_spanningtree/handshaketimer.cpp @@ -45,7 +45,7 @@ void HandshakeTimer::Tick(time_t TIME) { sock->SendCapabilities(); if (sock->GetLinkState() == CONNECTING) - sock->WriteLine(std::string("SERVER ")+this->Instance->Config->ServerName+" "+sock->MakePass(lnk->SendPass)+" 0 :"+this->Instance->Config->ServerDesc); + sock->WriteLine(std::string("SERVER ")+this->Instance->Config->ServerName+" "+sock->MakePass(lnk->SendPass, sock->GetTheirChallenge())+" 0 :"+this->Instance->Config->ServerDesc); } else { @@ -54,7 +54,7 @@ void HandshakeTimer::Tick(time_t TIME) InspSocketAttachCertRequest(sock, (Module*)Utils->Creator, sock->GetHook()).Send(); sock->SendCapabilities(); if (sock->GetLinkState() == CONNECTING) - sock->WriteLine(std::string("SERVER ")+this->Instance->Config->ServerName+" "+sock->MakePass(lnk->SendPass)+" 0 :"+this->Instance->Config->ServerDesc); + sock->WriteLine(std::string("SERVER ")+this->Instance->Config->ServerName+" "+sock->MakePass(lnk->SendPass, sock->GetTheirChallenge())+" 0 :"+this->Instance->Config->ServerDesc); } else { |
