aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_spanningtree/netburst.cpp
diff options
context:
space:
mode:
authorGravatar danieldg2009-06-07 02:57:54 +0000
committerGravatar danieldg2009-06-07 02:57:54 +0000
commit885d37630ef4b5b69c26c6eb3fc97e9cd2e35eae (patch)
tree51624b6cb5e5bb06531bc127bb1d0cd465502641 /src/modules/m_spanningtree/netburst.cpp
parentDon't display locally bound SSL ports in SSL= (for hidden services and such) (diff)
downloadinspircd++-885d37630ef4b5b69c26c6eb3fc97e9cd2e35eae.tar.gz
inspircd++-885d37630ef4b5b69c26c6eb3fc97e9cd2e35eae.tar.bz2
inspircd++-885d37630ef4b5b69c26c6eb3fc97e9cd2e35eae.zip
Allow SSL fingerprint-based server authentication
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11404 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree/netburst.cpp')
-rw-r--r--src/modules/m_spanningtree/netburst.cpp6
1 files changed, 5 insertions, 1 deletions
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());