From 23836d4c11d78f71745d7099979e5b9c1e87b163 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 2 Oct 2014 10:54:34 -0700 Subject: Change "encrypted" flag to full cipher suite selector. Go ahead and reserve AES256-GCM which might be added in the future. --- node/IncomingPacket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node/IncomingPacket.cpp') diff --git a/node/IncomingPacket.cpp b/node/IncomingPacket.cpp index 042b3ccd..9d7461ca 100644 --- a/node/IncomingPacket.cpp +++ b/node/IncomingPacket.cpp @@ -47,7 +47,7 @@ namespace ZeroTier { bool IncomingPacket::tryDecode(const RuntimeEnvironment *RR) { try { - if ((!encrypted())&&(verb() == Packet::VERB_HELLO)) { + if ((cipher() == ZT_PROTO_CIPHER_SUITE__C25519_POLY1305_NONE)&&(verb() == Packet::VERB_HELLO)) { // Unencrypted HELLOs are handled here since they are used to // populate our identity cache in the first place. _doHELLO() is special // in that it contains its own authentication logic. -- cgit v1.2.3