From b3178134859a70abaa09a2c5546ce54d9f1562dd Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 8 Dec 2016 11:51:06 -0500 Subject: Make GETINFO entry-guards work again with prop271 This is not a great solution, but it's as close to backward-compatible as possible. A better GETINFO API should expose more information. --- src/or/entrynodes.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/or/entrynodes.h') diff --git a/src/or/entrynodes.h b/src/or/entrynodes.h index db84d594c2..5fa0fec37f 100644 --- a/src/or/entrynodes.h +++ b/src/or/entrynodes.h @@ -610,7 +610,8 @@ STATIC unsigned entry_guards_note_guard_success(guard_selection_t *gs, entry_guard_t *guard, unsigned old_state); STATIC int entry_guard_has_higher_priority(entry_guard_t *a, entry_guard_t *b); - +STATIC char *getinfo_helper_format_single_entry_guard(const entry_guard_t *e, + int is_legacy); #ifdef ENABLE_LEGACY_GUARD_ALGORITHM // ---------- XXXX this stuff is pre-prop271. -- cgit v1.2.3-54-g00ecf