(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
This commit is contained in:
parent
56296f96db
commit
c2187c8759
10 changed files with 109 additions and 63 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue