More progress on bridge implementation with prop271 guards
commit3bcbbea350ccab4bc25b191fcce1dd3fc63775d3
authorNick Mathewson <nickm@torproject.org>
Tue, 29 Nov 2016 16:26:55 +0000 (29 11:26 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 16 Dec 2016 16:06:18 +0000 (16 11:06 -0500)
tree36c4447241c6a06a82ffeadb81db1e4ba3acf520
parent82fa71610de1c7d7faed78490a3cb90ce917a3e2
More progress on bridge implementation with prop271 guards

Here we handle most (all?) of the remaining tasks, and fix some
bugs, in the prop271 bridge implementation.

  * We record bridge identities as we learn them.
  * We only call deprecated functions from bridges.c when the
    deprecated guard algorithm is in use.
  * We update any_bridge_descriptors_known() and
    num_bridges_usable() to work correctly with the new backend
    code. (Previously, they called into the guard selection logic.
  * We update bridge directory fetches to work with the new
    guard code.
  * We remove some erroneous assertions where we assumed that we'd
    never load a guard that wasn't for the current selection.

Also, we fix a couple of typos.
src/or/bridges.c
src/or/directory.c
src/or/entrynodes.c