Finally implement network join auth tokens, at least at the protocol level.

This commit is contained in:
Adam Ierymenko 2016-08-17 13:41:45 -07:00
parent 168b86fdcd
commit b72847d504
2 changed files with 54 additions and 2 deletions

View file

@ -101,6 +101,9 @@ namespace ZeroTier {
// Maximum number of tags this node can accept
#define ZT_NETWORKCONFIG_REQUEST_METADATA_KEY_MAX_NETWORK_TAGS "mt"
// Network join authorization token (if any)
#define ZT_NETWORKCONFIG_REQUEST_METADATA_KEY_AUTH_TOKEN "atok"
// These dictionary keys are short so they don't take up much room.
// By convention we use upper case for binary blobs, but it doesn't really matter.