aboutsummaryrefslogtreecommitdiff
path: root/src/or/entrynodes.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2016-12-06 14:34:48 -0500
committerNick Mathewson <nickm@torproject.org>2016-12-16 11:06:22 -0500
commit7ab2678074e5d49628d948fadb80c5904950236c (patch)
tree2f0b34c15bdb07481c5e20524c25c46f98a0deee /src/or/entrynodes.h
parent68679504323b0a676a446b8fb34b976c9dc66b4f (diff)
downloadtor-7ab2678074e5d49628d948fadb80c5904950236c.tar.gz
tor-7ab2678074e5d49628d948fadb80c5904950236c.zip
Trivial documentation improvements.
Diffstat (limited to 'src/or/entrynodes.h')
-rw-r--r--src/or/entrynodes.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/or/entrynodes.h b/src/or/entrynodes.h
index 3250be1222..116e5abb8c 100644
--- a/src/or/entrynodes.h
+++ b/src/or/entrynodes.h
@@ -402,11 +402,14 @@ int entry_guard_pick_for_circuit(guard_selection_t *gs,
entry_guard_restriction_t *rst,
const node_t **chosen_node_out,
circuit_guard_state_t **guard_state_out);
+
+/* We just connected to an entry guard. What should we do with the circuit? */
typedef enum {
- GUARD_USABLE_NEVER = -1,
- GUARD_MAYBE_USABLE_LATER = 0,
- GUARD_USABLE_NOW = 1,
+ GUARD_USABLE_NEVER = -1, /* Never use the circuit */
+ GUARD_MAYBE_USABLE_LATER = 0, /* Keep it. We might use it in the future */
+ GUARD_USABLE_NOW = 1, /* Use it right now */
} guard_usable_t;
+
guard_usable_t entry_guard_succeeded(circuit_guard_state_t **guard_state_p);
void entry_guard_failed(circuit_guard_state_t **guard_state_p);
void entry_guard_cancel(circuit_guard_state_t **guard_state_p);