diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-10-31 19:17:07 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-10-31 19:17:07 +0000 |
commit | 1bf1f9d2fca917099c7e26e8f46df36329cd5c65 (patch) | |
tree | 756676cc8fc30d175869b579fad56d05a1d5ce06 /src/or/or.h | |
parent | 058ae90539de12b2486bc4032b11bc1d79357f41 (diff) | |
download | tor-1bf1f9d2fca917099c7e26e8f46df36329cd5c65.tar.gz tor-1bf1f9d2fca917099c7e26e8f46df36329cd5c65.zip |
r9449@Kushana: nickm | 2006-10-31 00:12:02 -0500
Dump breakdown of PK operations when we get a USR2 signal. This should help us figure out of we are doing some of them for stupid reasons.
svn:r8881
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index 6d9b27f127..f2663695e5 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2408,6 +2408,16 @@ int rep_hist_get_predicted_internal(time_t now, int *need_uptime, int any_predicted_circuits(time_t now); int rep_hist_circbuilding_dormant(time_t now); +typedef enum { + SIGN_DIR, SIGN_RTR, + VERIFY_DIR, VERIFY_RTR, + ENC_ONIONSKIN, DEC_ONIONSKIN, + TLS_HANDSHAKE_C, TLS_HANDSHAKE_S, + REND_CLIENT, REND_MID, REND_SERVER, +} pk_op_t; +void note_crypto_pk_op(pk_op_t operation); +void dump_pk_ops(int severity); + void rep_hist_free_all(void); /********************************* rendclient.c ***************************/ |