diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-04-04 08:39:22 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-04-04 08:39:22 -0700 |
commit | b48a70db2e2639bef81941b17c4f3268c41d2a9f (patch) | |
tree | c0b58909b46c43d9733cbbd425f2864b86670bcf /node/CertificateOfRepresentation.hpp | |
parent | cd050b3423ede9c21e53db3a47cdad7ccf5bcb65 (diff) | |
parent | eddbc7e757f26e59d6eeab7e31e31eb6c47dcf20 (diff) | |
download | infinitytier-b48a70db2e2639bef81941b17c4f3268c41d2a9f.tar.gz infinitytier-b48a70db2e2639bef81941b17c4f3268c41d2a9f.zip |
Merge branch 'dev' of http://10.6.6.2/zerotier/ZeroTierOne into dev
Diffstat (limited to 'node/CertificateOfRepresentation.hpp')
-rw-r--r-- | node/CertificateOfRepresentation.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/node/CertificateOfRepresentation.hpp b/node/CertificateOfRepresentation.hpp index 02e961c4..710ee577 100644 --- a/node/CertificateOfRepresentation.hpp +++ b/node/CertificateOfRepresentation.hpp @@ -20,6 +20,7 @@ #define ZT_CERTIFICATEOFREPRESENTATION_HPP #include "Constants.hpp" +#include "Credential.hpp" #include "Address.hpp" #include "C25519.hpp" #include "Identity.hpp" @@ -47,14 +48,17 @@ namespace ZeroTier { * roots can shield nodes entirely and p2p connectivity behind them can * be disabled. This will be desirable for a number of use cases. */ -class CertificateOfRepresentation +class CertificateOfRepresentation : public Credential { public: + static inline Credential::Type credentialType() { return Credential::CREDENTIAL_TYPE_COR; } + CertificateOfRepresentation() { memset(this,0,sizeof(CertificateOfRepresentation)); } + inline uint32_t id() const { return 0; } inline uint64_t timestamp() const { return _timestamp; } inline const Address &representative(const unsigned int i) const { return _reps[i]; } inline unsigned int repCount() const { return _repCount; } |