diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-05 10:19:12 -0400 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-05 10:19:12 -0400 |
commit | 4267e7da93a7394ad7059b6f71569642446f04a6 (patch) | |
tree | 44b2a6fb57d924a3d48da47f9551b77f2978eedd /node/Peer.hpp | |
parent | 0e43e5e8f2eddd5768873350d12103f2684bedbf (diff) | |
download | infinitytier-4267e7da93a7394ad7059b6f71569642446f04a6.tar.gz infinitytier-4267e7da93a7394ad7059b6f71569642446f04a6.zip |
Remove a whole bunch of now-unnecessary cruft from Topology and PacketDecoder.
Diffstat (limited to 'node/Peer.hpp')
-rw-r--r-- | node/Peer.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/node/Peer.hpp b/node/Peer.hpp index 96e8d49a..2106a787 100644 --- a/node/Peer.hpp +++ b/node/Peer.hpp @@ -34,10 +34,10 @@ #include <utility> #include <stdexcept> +#include "Constants.hpp" #include "Address.hpp" #include "Utils.hpp" #include "Identity.hpp" -#include "Constants.hpp" #include "Logger.hpp" #include "Demarc.hpp" #include "RuntimeEnvironment.hpp" @@ -52,7 +52,7 @@ * Max length of serialized peer record */ #define ZT_PEER_MAX_SERIALIZED_LENGTH ( \ - 32 + \ + ZT_PEER_SECRET_KEY_LENGTH + \ ZT_IDENTITY_MAX_BINARY_SERIALIZED_LENGTH + \ ( ( \ (sizeof(uint64_t) * 4) + \ @@ -532,7 +532,7 @@ private: bool fixed; // do not learn address from received packets }; - unsigned char _key[32]; // shared secret key agreed upon between identities + unsigned char _key[ZT_PEER_SECRET_KEY_LENGTH]; Identity _id; WanPath _ipv4p; |