diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-08-14 19:52:22 -0400 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-08-14 19:52:22 -0400 |
commit | c2187c87599c60b9c47dd9d01244ce1ffd105fea (patch) | |
tree | 061667e920472a08f073ab2beb89456c05851cc5 /node/Topology.hpp | |
parent | 56296f96db2ebecc69214de6ef0ca47d7aa77c6e (diff) | |
download | infinitytier-c2187c87599c60b9c47dd9d01244ce1ffd105fea.tar.gz infinitytier-c2187c87599c60b9c47dd9d01244ce1ffd105fea.zip |
(1) distribute default root-topology in new dictionary format, (2) bump peer serialization version to force obsolescence of old supernodes, (3) stop outputting a log message every time we poll for software updates
Diffstat (limited to 'node/Topology.hpp')
-rw-r--r-- | node/Topology.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/node/Topology.hpp b/node/Topology.hpp index 37511208..478b4fc3 100644 --- a/node/Topology.hpp +++ b/node/Topology.hpp @@ -37,18 +37,20 @@ #include <stdexcept> #include "Constants.hpp" + #include "Address.hpp" +#include "Identity.hpp" #include "Peer.hpp" #include "Mutex.hpp" #include "InetAddress.hpp" #include "Utils.hpp" #include "Packet.hpp" #include "Logger.hpp" +#include "Dictionary.hpp" namespace ZeroTier { class RuntimeEnvironment; -class Dictionary; /** * Database of network topology @@ -370,6 +372,14 @@ public: std::vector< SharedPtr<Peer> > &_v; }; + /** + * Validate a root topology dictionary against the identities specified in Defaults + * + * @param rt Root topology dictionary + * @return True if dictionary signature is valid + */ + static bool authenticateRootTopology(const Dictionary &rt); + private: const RuntimeEnvironment *const _r; |