summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-14 20:25:09 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-14 20:25:09 +0000
commit3db2daca8fd8fcc06afd0eb10633a519b5e3e655 (patch)
tree1a5ac3758ab0f3707ee30a9b651b8052221fdb1b /src
parent0b878f54cfce452b6829ab00950f6d062cec0f10 (diff)
Improve link error message on SSL fingerprint mismatch
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11723 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree/hmac.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/hmac.cpp b/src/modules/m_spanningtree/hmac.cpp
index 335972003..cc1b33f23 100644
--- a/src/modules/m_spanningtree/hmac.cpp
+++ b/src/modules/m_spanningtree/hmac.cpp
@@ -144,7 +144,11 @@ bool TreeSocket::ComparePass(const Link& link, const std::string &theirs)
{
/* Require fingerprint to exist and match */
if (link.Fingerprint != fp)
+ {
+ ServerInstance->SNO->WriteToSnoMask('l',"Invalid SSL fingerprint on link %s: need '%s' got '%s'",
+ link.Name.c_str(), link.Fingerprint.c_str(), fp.c_str());
return false;
+ }
}
if (auth_challenge)