summaryrefslogtreecommitdiff
path: root/node/IncomingPacket.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-10-02 10:54:34 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-10-02 10:54:34 -0700
commit23836d4c11d78f71745d7099979e5b9c1e87b163 (patch)
treea6db11c0ada5d5fbf9a97c8c88eea1aa87a85ecd /node/IncomingPacket.cpp
parente53d208ea4ca7c6496c976be6db3383d99f993c3 (diff)
downloadinfinitytier-23836d4c11d78f71745d7099979e5b9c1e87b163.tar.gz
infinitytier-23836d4c11d78f71745d7099979e5b9c1e87b163.zip
Change "encrypted" flag to full cipher suite selector. Go ahead and reserve AES256-GCM which might be added in the future.
Diffstat (limited to 'node/IncomingPacket.cpp')
-rw-r--r--node/IncomingPacket.cpp2
1 files changed, 1 insertions, 1 deletions
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.