aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2024-06-24 14:16:11 -0400
committerNick Mathewson <nickm@torproject.org>2024-06-26 11:42:36 -0400
commitcbbfb812a8eca6587ea2af12693d5c2357146f57 (patch)
tree9e7f1e32ae6166db60a321d5b2708c9e78e34a34
parent0428aef13a4043d2181b52e62c019d5cb4710283 (diff)
downloadtor-cbbfb812a8eca6587ea2af12693d5c2357146f57.tar.gz
tor-cbbfb812a8eca6587ea2af12693d5c2357146f57.zip
Remove node_get_rsa_onion_key
-rw-r--r--src/feature/nodelist/nodelist.c28
-rw-r--r--src/feature/nodelist/nodelist.h1
2 files changed, 0 insertions, 29 deletions
diff --git a/src/feature/nodelist/nodelist.c b/src/feature/nodelist/nodelist.c
index 09b10f10f6..735361d417 100644
--- a/src/feature/nodelist/nodelist.c
+++ b/src/feature/nodelist/nodelist.c
@@ -2034,34 +2034,6 @@ node_get_curve25519_onion_key(const node_t *node)
return NULL;
}
-/* Return a newly allocacted RSA onion public key taken from the given node.
- *
- * Return NULL if node is NULL or no RSA onion public key can be found. It is
- * the caller responsibility to free the returned object. */
-crypto_pk_t *
-node_get_rsa_onion_key(const node_t *node)
-{
- crypto_pk_t *pk = NULL;
- const char *onion_pkey;
- size_t onion_pkey_len;
-
- if (!node) {
- goto end;
- }
-
- if (node->ri) {
- onion_pkey = node->ri->onion_pkey;
- onion_pkey_len = node->ri->onion_pkey_len;
- } else {
- /* No descriptor; we don't take onion keys from microdescs. */
- goto end;
- }
- pk = router_get_rsa_onion_pkey(onion_pkey, onion_pkey_len);
-
- end:
- return pk;
-}
-
/** Refresh the country code of <b>ri</b>. This function MUST be called on
* each router when the GeoIP database is reloaded, and on all new routers. */
void
diff --git a/src/feature/nodelist/nodelist.h b/src/feature/nodelist/nodelist.h
index 3d5ad9c0ea..948a293f0c 100644
--- a/src/feature/nodelist/nodelist.h
+++ b/src/feature/nodelist/nodelist.h
@@ -109,7 +109,6 @@ 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);
const struct curve25519_public_key_t *node_get_curve25519_onion_key(
const node_t *node);
-crypto_pk_t *node_get_rsa_onion_key(const node_t *node);
MOCK_DECL(const smartlist_t *, nodelist_get_list, (void));