diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-08-14 19:52:22 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-08-14 19:52:22 -0400 |
| commit | c2187c87599c60b9c47dd9d01244ce1ffd105fea (patch) | |
| tree | 061667e920472a08f073ab2beb89456c05851cc5 /node/Dictionary.hpp | |
| parent | 56296f96db2ebecc69214de6ef0ca47d7aa77c6e (diff) | |
| download | infinitytier-c2187c87599c60b9c47dd9d01244ce1ffd105fea.tar.gz infinitytier-c2187c87599c60b9c47dd9d01244ce1ffd105fea.zip | |
(1) distribute default root-topology in new dictionary format, (2) bump peer serialization version to force obsolescence of old supernodes, (3) stop outputting a log message every time we poll for software updates
Diffstat (limited to 'node/Dictionary.hpp')
| -rw-r--r-- | node/Dictionary.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/node/Dictionary.hpp b/node/Dictionary.hpp index 22eb8a7e..35e93e43 100644 --- a/node/Dictionary.hpp +++ b/node/Dictionary.hpp @@ -28,6 +28,8 @@ #ifndef ZT_DICTIONARY_HPP #define ZT_DICTIONARY_HPP +#include <stdint.h> + #include <string> #include <map> #include <stdexcept> @@ -141,6 +143,16 @@ public: inline bool hasSignature() const { return (find(ZT_DICTIONARY_SIGNATURE) != end()); } /** + * @return Signing identity in string-serialized format or empty string if none + */ + inline std::string signingIdentity() const { return get(ZT_DICTIONARY_SIGNATURE_IDENTITY,std::string()); } + + /** + * @return Signature timestamp in milliseconds since epoch or 0 if none + */ + uint64_t signatureTimestamp() const; + + /** * Remove any signature from this dictionary */ inline void removeSignature() |
