summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-01 20:42:39 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-01 20:42:39 +0000
commit6cd43f954c0f1dc1aa9338faeea588aaca88cc31 (patch)
tree4d37fc7cb681d64035f5cd5750bcf5996d45ea57 /src
parentd891a461a32271e6326541b72195a8dd7dd9c271 (diff)
Strip colons from server SSL fingerprint, to allow the output of certificate information tools to be used directly
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12349 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree/utils.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/utils.cpp b/src/modules/m_spanningtree/utils.cpp
index d35d9ac83..ab057570a 100644
--- a/src/modules/m_spanningtree/utils.cpp
+++ b/src/modules/m_spanningtree/utils.cpp
@@ -386,6 +386,15 @@ void SpanningTreeUtilities::ReadConfiguration()
if (L->Name.length() > 64)
throw CoreException("The link name '"+assign(L->Name)+"' is longer than 64 characters!");
+ if (L->Fingerprint.find(':') != std::string::npos)
+ {
+ std::string tmp = L->Fingerprint;
+ L->Fingerprint.clear();
+ for(unsigned int j=0; j < tmp.length(); j++)
+ if (tmp[j] != ':')
+ L->Fingerprint.push_back(tmp[j]);
+ }
+
if ((!L->IPAddr.empty()) && (!L->RecvPass.empty()) && (!L->SendPass.empty()) && (!L->Name.empty()) && (L->Port))
{
ValidIPs.push_back(L->IPAddr);