From 885d37630ef4b5b69c26c6eb3fc97e9cd2e35eae Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 7 Jun 2009 02:57:54 +0000 Subject: Allow SSL fingerprint-based server authentication git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11404 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/netburst.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/modules/m_spanningtree/netburst.cpp') diff --git a/src/modules/m_spanningtree/netburst.cpp b/src/modules/m_spanningtree/netburst.cpp index e31508cb2..6d26f13fc 100644 --- a/src/modules/m_spanningtree/netburst.cpp +++ b/src/modules/m_spanningtree/netburst.cpp @@ -31,7 +31,11 @@ void TreeSocket::DoBurst(TreeServer* s) std::string name = s->GetName(); std::string burst = ":" + this->ServerInstance->Config->GetSID() + " BURST " +ConvToStr(ServerInstance->Time()); std::string endburst = ":" + this->ServerInstance->Config->GetSID() + " ENDBURST"; - this->ServerInstance->SNO->WriteToSnoMask('l',"Bursting to \2%s\2 (Authentication: %s).", name.c_str(), this->GetTheirChallenge().empty() ? "plaintext password" : "SHA256-HMAC challenge-response"); + this->ServerInstance->SNO->WriteToSnoMask('l',"Bursting to \2%s\2 (Authentication: %s%s).", + name.c_str(), + this->auth_fingerprint ? "SSL Fingerprint and " : "", + this->auth_challenge ? "challenge-response" : "plaintext password"); + this->CleanNegotiationInfo(); this->WriteLine(burst); /* send our version string */ this->WriteLine(std::string(":")+this->ServerInstance->Config->GetSID()+" VERSION :"+this->ServerInstance->GetVersionString()); -- cgit v1.3.1-10-gc9f91