From 9f550292fe0ebc32e61eeada9e3a69970c874724 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 27 Sep 2016 13:49:43 -0700 Subject: Simply network auth logic and always sent error on auth failure even for unknown networks to prevent forensics. --- node/Network.hpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'node/Network.hpp') diff --git a/node/Network.hpp b/node/Network.hpp index 128c4668..527d3048 100644 --- a/node/Network.hpp +++ b/node/Network.hpp @@ -212,21 +212,8 @@ public: /** * Determine whether this peer is permitted to communicate on this network - * - * This also performs certain periodic actions such as pushing renewed - * credentials to peers, so like the filters it is not side-effect-free. - * - * @param peer Peer to check - * @param verb Packet verb - * @param packetId Packet ID - * @return True if peer is allowed to communicate on this network - */ - bool gate(const SharedPtr &peer,const Packet::Verb verb,const uint64_t packetId); - - /** - * Check whether this peer is allowed to provide multicast info for this network */ - bool gateMulticastGatherReply(const SharedPtr &peer,const Packet::Verb verb,const uint64_t packetId); + bool gate(const SharedPtr &peer); /** * Do periodic cleanup and housekeeping tasks -- cgit v1.2.3