[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/release-0.3.2] Merge branch 'bug23817_031' into maint-0.3.2



commit 2cee26b16447c143333ffc16502ecc28b48060cd
Merge: b98614f1a 96b69942a
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Fri Nov 17 09:56:53 2017 -0500

    Merge branch 'bug23817_031' into maint-0.3.2

 changes/bug23817       |   3 ++
 src/or/directory.c     |  40 ++++++++++------
 src/or/directory.h     |   2 +
 src/or/entrynodes.c    | 121 ++++++++++++++++++++++++++++++++++++++++++++-----
 src/or/entrynodes.h    |  33 ++++++++++----
 src/or/microdesc.c     | 101 +++++++++++++++++++++++++++++++++++++++++
 src/or/microdesc.h     |   4 ++
 src/or/networkstatus.c |   3 ++
 8 files changed, 272 insertions(+), 35 deletions(-)

diff --cc src/or/directory.h
index d26d83537,571c30a0f..b57b7b544
--- a/src/or/directory.h
+++ b/src/or/directory.h
@@@ -191,8 -166,10 +191,10 @@@ STATIC char *accept_encoding_header(voi
  STATIC int allowed_anonymous_connection_compression_method(compress_method_t);
  STATIC void warn_disallowed_anonymous_compression_method(compress_method_t);
  
 -struct response_handler_args_t;
 -
 +STATIC int handle_response_fetch_hsdesc_v3(dir_connection_t *conn,
 +                                          const response_handler_args_t *args);
+ STATIC int handle_response_fetch_microdesc(dir_connection_t *conn,
 -                                 const struct response_handler_args_t *args);
++                                 const response_handler_args_t *args);
  
  #endif /* defined(DIRECTORY_PRIVATE) */
  
diff --cc src/or/entrynodes.h
index 9e1e72993,29de627de..49bb3e55c
--- a/src/or/entrynodes.h
+++ b/src/or/entrynodes.h
@@@ -550,6 -557,16 +557,14 @@@ STATIC unsigned entry_guards_note_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);
+ 
 -STATIC entry_guard_restriction_t *
 -guard_create_exit_restriction(const uint8_t *exit_id);
++STATIC entry_guard_restriction_t *guard_create_exit_restriction(
++                                                      const uint8_t *exit_id);
+ 
 -STATIC entry_guard_restriction_t *
 -guard_create_dirserver_md_restriction(void);
++STATIC entry_guard_restriction_t *guard_create_dirserver_md_restriction(void);
+ 
 -STATIC void
 -entry_guard_restriction_free(entry_guard_restriction_t *rst);
++STATIC void entry_guard_restriction_free(entry_guard_restriction_t *rst);
+ 
  #endif /* defined(ENTRYNODES_PRIVATE) */
  
  void remove_all_entry_guards_for_guard_selection(guard_selection_t *gs);
diff --cc src/or/networkstatus.c
index 2660e6a32,36e62020e..f31529733
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@@ -2009,11 -2037,13 +2009,14 @@@ networkstatus_set_current_consensus(con
               "consensus network status document (%s UTC).  Tor needs an "
               "accurate clock to work correctly. Please check your time and "
               "date settings!", dbuf, tbuf);
 -    control_event_general_status(LOG_WARN,
 -                    "CLOCK_SKEW MIN_SKEW=%ld SOURCE=CONSENSUS", delta);
 +    tor_asprintf(&flavormsg, "%s flavor consensus", flavor);
 +    clock_skew_warning(NULL, delta, 1, LD_GENERAL, flavormsg, "CONSENSUS");
 +    tor_free(flavormsg);
    }
  
+   /* We got a new consesus. Reset our md fetch fail cache */
+   microdesc_reset_outdated_dirservers_list();
+ 
    router_dir_info_changed();
  
    result = 0;



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits