summaryrefslogtreecommitdiff
path: root/node/Revocation.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-02-04 13:17:00 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-02-04 13:17:00 -0800
commit3587aa1ea7573198168422be55511b16470fb33f (patch)
tree645853d1cd6cd9d98218d28455efa981d5f6ccf5 /node/Revocation.hpp
parentbeb642faa58bb3c2c283a068e6de942bfad2c314 (diff)
downloadinfinitytier-3587aa1ea7573198168422be55511b16470fb33f.tar.gz
infinitytier-3587aa1ea7573198168422be55511b16470fb33f.zip
Add and send certificates of representation to tell people what our valid upstreams are. These are not used yet but will be needed for future privacy modes, etc. Also some cleanup.
Diffstat (limited to 'node/Revocation.hpp')
-rw-r--r--node/Revocation.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/node/Revocation.hpp b/node/Revocation.hpp
index 18916985..bc290e75 100644
--- a/node/Revocation.hpp
+++ b/node/Revocation.hpp
@@ -152,6 +152,8 @@ public:
memcpy(_signature.data,b.field(p,ZT_C25519_SIGNATURE_LEN),ZT_C25519_SIGNATURE_LEN);
p += ZT_C25519_SIGNATURE_LEN;
} else throw std::runtime_error("invalid signature");
+ } else {
+ p += 2 + b.template at<uint16_t>(p);
}
p += 2 + b.template at<uint16_t>(p);