mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Make node_get_curve25519_onion_key() return a const ptr
This commit is contained in:
parent
f92736517b
commit
a5ef2b619d
@ -1640,7 +1640,7 @@ node_has_curve25519_onion_key(const node_t *node)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Return the curve25519 key of <b>node</b>, or NULL if none. */
|
/** Return the curve25519 key of <b>node</b>, or NULL if none. */
|
||||||
curve25519_public_key_t *
|
const curve25519_public_key_t *
|
||||||
node_get_curve25519_onion_key(const node_t *node)
|
node_get_curve25519_onion_key(const node_t *node)
|
||||||
{
|
{
|
||||||
if (node->ri)
|
if (node->ri)
|
||||||
|
@ -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_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);
|
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);
|
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));
|
MOCK_DECL(smartlist_t *, nodelist_get_list, (void));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user