summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-09-08 12:18:22 -0400
committerNick Mathewson <nickm@torproject.org>2017-09-08 12:18:22 -0400
commit2df7f1d59dcf613725ff5273cc792f93fb2e3031 (patch)
treeecc34e3180691af588b409151a4bf3f28ddb6196 /src/or/or.h
parentca19a95d5402e2f74e027761223f6d7605534c2c (diff)
parent80d3887360548b28fe2bd06501f0d51d0a1ba4f0 (diff)
downloadtor-2df7f1d59dcf613725ff5273cc792f93fb2e3031.tar.gz
tor-2df7f1d59dcf613725ff5273cc792f93fb2e3031.zip
Merge branch 'ed25519_lookup'
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 5a543b498c..161d80ed96 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -2459,6 +2459,8 @@ typedef struct node_t {
/** Used to look up the node_t by its identity digest. */
HT_ENTRY(node_t) ht_ent;
+ /** Used to look up the node_t by its ed25519 identity digest. */
+ HT_ENTRY(node_t) ed_ht_ent;
/** Position of the node within the list of nodes */
int nodelist_idx;
@@ -2466,6 +2468,13 @@ typedef struct node_t {
* identity may exist at a time. */
char identity[DIGEST_LEN];
+ /** The ed25519 identity of this node_t. This field is nonzero iff we
+ * currently have an ed25519 identity for this node in either md or ri,
+ * _and_ this node has been inserted to the ed25519-to-node map in the
+ * nodelist.
+ */
+ ed25519_public_key_t ed25519_id;
+
microdesc_t *md;
routerinfo_t *ri;
routerstatus_t *rs;