diff options
Diffstat (limited to 'src/core/or/connection_or.h')
-rw-r--r-- | src/core/or/connection_or.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/or/connection_or.h b/src/core/or/connection_or.h index e9ace56ab4..8cbe8c028b 100644 --- a/src/core/or/connection_or.h +++ b/src/core/or/connection_or.h @@ -16,6 +16,7 @@ struct ed25519_public_key_t; struct ed25519_keypair_t; or_connection_t *TO_OR_CONN(connection_t *); +const or_connection_t *CONST_TO_OR_CONN(const connection_t *); #include "core/or/orconn_event.h" @@ -72,6 +73,8 @@ void connection_or_init_conn_from_address(or_connection_t *conn, int connection_or_client_learned_peer_id(or_connection_t *conn, const uint8_t *rsa_peer_id, const struct ed25519_public_key_t *ed_peer_id); +const struct ed25519_public_key_t *connection_or_get_alleged_ed25519_id( + const or_connection_t *conn); 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); @@ -117,14 +120,14 @@ void connection_or_group_set_badness_(smartlist_t *group, int force); #ifdef CONNECTION_OR_PRIVATE STATIC int should_connect_to_relay(const or_connection_t *or_conn); STATIC void note_or_connect_failed(const or_connection_t *or_conn); +#endif /* defined(CONNECTION_OR_PRIVATE) */ /* * Call this when changing connection state, so notifications to the owning * channel can be handled. */ -MOCK_DECL(STATIC void,connection_or_change_state, +MOCK_DECL(void, connection_or_change_state, (or_connection_t *conn, uint8_t state)); -#endif /* defined(CONNECTION_OR_PRIVATE) */ #ifdef TOR_UNIT_TESTS extern int testing__connection_or_pretend_TLSSECRET_is_supported; |