Remove a whole bunch of now-unnecessary cruft from Topology and PacketDecoder.
This commit is contained in:
parent
0e43e5e8f2
commit
4267e7da93
11 changed files with 120 additions and 376 deletions
|
@ -36,13 +36,12 @@
|
|||
#include "Salsa20.hpp"
|
||||
#include "Utils.hpp"
|
||||
|
||||
// Mask for second byte in hashcash criterion -- making it require
|
||||
// 13 0 bits at the start of the hash.
|
||||
#define ZT_IDENTITY_SHA_BYTE1_MASK 0xf8
|
||||
|
||||
namespace ZeroTier {
|
||||
|
||||
/*
|
||||
* This is the hashcash criterion
|
||||
*/
|
||||
struct _Identity_generate_cond
|
||||
{
|
||||
_Identity_generate_cond() throw() {}
|
||||
|
@ -80,6 +79,8 @@ void Identity::generate()
|
|||
|
||||
bool Identity::locallyValidate() const
|
||||
{
|
||||
if (_address.isReserved())
|
||||
return false;
|
||||
char sha512buf[64];
|
||||
char addrb[5];
|
||||
_address.copyTo(addrb,5);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue