]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Strip colons from server SSL fingerprint, to allow the output of certificate informat...
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 1 Feb 2010 20:42:39 +0000 (20:42 +0000)
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 1 Feb 2010 20:42:39 +0000 (20:42 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12349 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_spanningtree/utils.cpp

index d35d9ac830b8b6aec62b957966709183ac142b7b..ab057570a3a2f32655d3a25fd60882e556d0c48b 100644 (file)
@@ -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);