aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-08-30 09:44:42 -0400
committerNick Mathewson <nickm@torproject.org>2016-11-03 08:37:22 -0400
commit99b3e54691f451b766556391cba6e26120ad7d84 (patch)
tree5a2eec11702909d0a02680c317e68ff89a657dc4 /src/or/connection_or.h
parent0704fa8a63c2e203162c359e184e63b10c45630c (diff)
downloadtor-99b3e54691f451b766556391cba6e26120ad7d84.tar.gz
tor-99b3e54691f451b766556391cba6e26120ad7d84.zip
Add "Ed ID" arguments to a bunch of connection-ID-related fns.
In particular, these functions are the ones that set the identity of a given connection or channel, and/or confirm that we have learned said IDs. There's a lot of stub code here: we don't actually need to use the new keys till we start looking up connections/channels by Ed25519 IDs. Still, we want to start passing the Ed25519 IDs in now, so it makes sense to add these stubs as part of 15055.
Diffstat (limited to 'src/or/connection_or.h')
-rw-r--r--src/or/connection_or.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/or/connection_or.h b/src/or/connection_or.h
index 65a8ac1467..7fdfbb0a3c 100644
--- a/src/or/connection_or.h
+++ b/src/or/connection_or.h
@@ -40,7 +40,9 @@ void connection_or_notify_error(or_connection_t *conn,
MOCK_DECL(or_connection_t *,
connection_or_connect,
(const tor_addr_t *addr, uint16_t port,
- const char *id_digest, channel_tls_t *chan));
+ const char *id_digest,
+ const ed25519_public_key_t *ed_id,
+ channel_tls_t *chan));
void connection_or_close_normally(or_connection_t *orconn, int flush);
MOCK_DECL(void,connection_or_close_for_error,
@@ -59,10 +61,12 @@ int connection_init_or_handshake_state(or_connection_t *conn,
void connection_or_init_conn_from_address(or_connection_t *conn,
const tor_addr_t *addr,
uint16_t port,
- const char *id_digest,
+ const char *rsa_id_digest,
+ const ed25519_public_key_t *ed_id,
int started_here);
int connection_or_client_learned_peer_id(or_connection_t *conn,
- const uint8_t *peer_id);
+ const uint8_t *rsa_peer_id,
+ const ed25519_public_key_t *ed_peer_id);
time_t connection_or_client_used(or_connection_t *conn);
MOCK_DECL(int, connection_or_get_num_circuits, (or_connection_t *conn));
void or_handshake_state_free(or_handshake_state_t *state);