aboutsummaryrefslogtreecommitdiff
path: root/src/feature/stats/rephist.h
diff options
context:
space:
mode:
authorNeel Chauhan <neel@neelc.org>2020-05-27 20:40:02 -0700
committerDavid Goulet <dgoulet@torproject.org>2020-07-01 12:00:53 -0400
commit4477317cbec059eefb4b86b88efa16f3a5ba7e52 (patch)
tree6e2935676d6f3d4577bd6255c485e32e46af5bea /src/feature/stats/rephist.h
parent8d8a9d7f1d9cc779036441cfa9639f35c20e37c9 (diff)
downloadtor-4477317cbec059eefb4b86b88efa16f3a5ba7e52.tar.gz
tor-4477317cbec059eefb4b86b88efa16f3a5ba7e52.zip
control: Add a key to GETINFO to fetch the circuit onion handshake rephist values
Diffstat (limited to 'src/feature/stats/rephist.h')
-rw-r--r--src/feature/stats/rephist.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/feature/stats/rephist.h b/src/feature/stats/rephist.h
index 92c3d2a5a5..d08b8833cc 100644
--- a/src/feature/stats/rephist.h
+++ b/src/feature/stats/rephist.h
@@ -77,6 +77,9 @@ void rep_hist_note_circuit_handshake_requested(uint16_t type);
void rep_hist_note_circuit_handshake_assigned(uint16_t type);
void rep_hist_log_circuit_handshake_stats(time_t now);
+MOCK_DECL(int, rep_hist_get_circuit_handshake_requested, (uint16_t type));
+MOCK_DECL(int, rep_hist_get_circuit_handshake_assigned, (uint16_t type));
+
void rep_hist_hs_stats_init(time_t now);
void rep_hist_hs_stats_term(void);
time_t rep_hist_hs_stats_write(time_t now);