aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-07-06 16:39:54 -0400
committerNick Mathewson <nickm@torproject.org>2011-07-19 01:58:45 -0400
commit1d3c8c1f74e9f80317a70c3b7d9372dee87dd373 (patch)
tree6242d395e4bef2f9e3cba3e5fcb0c7843b91b9fa /src/or/main.h
parent461623e7f980e8d599829865caf3b3985117004a (diff)
downloadtor-1d3c8c1f74e9f80317a70c3b7d9372dee87dd373.tar
tor-1d3c8c1f74e9f80317a70c3b7d9372dee87dd373.tar.gz
Add a new isolation type and field: "nym epoch"
The "nym epoch" of a stream is defined as the number of times that NEWNYM had been called before the stream was opened. All streams are isolated by nym epoch. This feature should be redundant with existing signewnym stuff, but it provides a good belt-and-suspenders way for us to avoid ever letting any circuit type bypass signewnym.
Diffstat (limited to 'src/or/main.h')
-rw-r--r--src/or/main.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/main.h b/src/or/main.h
index db251356f..c8903642d 100644
--- a/src/or/main.h
+++ b/src/or/main.h
@@ -52,6 +52,7 @@ void ip_address_changed(int at_interface);
void dns_servers_relaunch_checks(void);
long get_uptime(void);
+unsigned get_signewnym_epoch(void);
void handle_signals(int is_parent);
void process_signal(uintptr_t sig);