diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-16 17:47:26 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-16 17:47:26 -0400 |
| commit | 46f868bd4fb2fd7b0816ded98974935aacddf5e6 (patch) | |
| tree | 1e892172060447a9959977b466980c506572457a /node/Packet.hpp | |
| parent | 58fa6cab4397fe7b0f4fe883e9d1632f5b73f6f9 (diff) | |
| download | infinitytier-46f868bd4fb2fd7b0816ded98974935aacddf5e6.tar.gz infinitytier-46f868bd4fb2fd7b0816ded98974935aacddf5e6.zip | |
Lots of cleanup, more work on certificates, some security fixes.
Diffstat (limited to 'node/Packet.hpp')
| -rw-r--r-- | node/Packet.hpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/node/Packet.hpp b/node/Packet.hpp index 54117664..36740835 100644 --- a/node/Packet.hpp +++ b/node/Packet.hpp @@ -56,6 +56,9 @@ * * New crypto completely changes key agreement cipher * 4 - 0.6.0 ... * * New identity format based on hashcash design + * + * This isn't going to change again for a long time unless your + * author wakes up again at 4am with another great idea. :P */ #define ZT_PROTO_VERSION 4 @@ -196,6 +199,8 @@ #define ZT_PROTO_VERB_MULTICAST_FRAME_LEN_FRAME_LEN 2 #define ZT_PROTO_VERB_MULTICAST_FRAME_IDX_FRAME (ZT_PROTO_VERB_MULTICAST_FRAME_IDX_FRAME_LEN + ZT_PROTO_VERB_MULTICAST_FRAME_LEN_FRAME_LEN) +#define ZT_PROTO_VERB_NETWORK_MEMBERSHIP_CERTIFICATE_IDX_CERTIFICATE (ZT_PACKET_IDX_PAYLOAD) + #define ZT_PROTO_VERB_NETWORK_CONFIG_REQUEST_IDX_NETWORK_ID (ZT_PACKET_IDX_PAYLOAD) #define ZT_PROTO_VERB_NETWORK_CONFIG_REQUEST_IDX_DICT_LEN (ZT_PROTO_VERB_NETWORK_CONFIG_REQUEST_IDX_NETWORK_ID + 8) #define ZT_PROTO_VERB_NETWORK_CONFIG_REQUEST_IDX_DICT (ZT_PROTO_VERB_NETWORK_CONFIG_REQUEST_IDX_DICT_LEN + 2) @@ -551,12 +556,12 @@ public: */ VERB_MULTICAST_LIKE = 9, - /* Network member certificate for sending peer: - * <[8] 64-bit network ID> + /* Network member certificate: * <[...] serialized certificate of membership> * - * OK is generated on acceptance. ERROR is returned on failure. In both - * cases the payload is the network ID. + * Certificate contains network ID, peer it was issued for, etc. + * + * OK/ERROR are not generated. */ VERB_NETWORK_MEMBERSHIP_CERTIFICATE = 10, @@ -623,7 +628,10 @@ public: ERROR_UNSUPPORTED_OPERATION = 5, /* Message to private network rejected -- no unexpired certificate on file */ - ERROR_NEED_MEMBERSHIP_CERTIFICATE = 6 + ERROR_NEED_MEMBERSHIP_CERTIFICATE = 6, + + /* Tried to join network, but you're not a member */ + ERROR_NETWORK_ACCESS_DENIED = 7 }; /** |
