summaryrefslogtreecommitdiff
path: root/src/or/nodelist.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-11-12 17:07:16 -0500
committerNick Mathewson <nickm@torproject.org>2017-11-12 17:07:16 -0500
commita5ef2b619d267c38723c150d7945f17268c2fb6e (patch)
treebc293a4fbb5e1c31e3a4c947bfb44966bed36634 /src/or/nodelist.h
parentf92736517baa2f19b0ff3827684f11b1b1f29ffd (diff)
downloadtor-a5ef2b619d267c38723c150d7945f17268c2fb6e.tar.gz
tor-a5ef2b619d267c38723c150d7945f17268c2fb6e.zip
Make node_get_curve25519_onion_key() return a const ptr
Diffstat (limited to 'src/or/nodelist.h')
-rw-r--r--src/or/nodelist.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/nodelist.h b/src/or/nodelist.h
index 2922b6e2da..e879b4e8ff 100644
--- a/src/or/nodelist.h
+++ b/src/or/nodelist.h
@@ -86,7 +86,8 @@ int node_get_prim_dirport(const node_t *node, tor_addr_port_t *ap_out);
void node_get_pref_dirport(const node_t *node, tor_addr_port_t *ap_out);
void node_get_pref_ipv6_dirport(const node_t *node, tor_addr_port_t *ap_out);
int node_has_curve25519_onion_key(const node_t *node);
-curve25519_public_key_t *node_get_curve25519_onion_key(const node_t *node);
+const curve25519_public_key_t *node_get_curve25519_onion_key(
+ const node_t *node);
MOCK_DECL(smartlist_t *, nodelist_get_list, (void));