generalize choose_random_entry()'s dirinfo parameter
commitbce5019eff37fc741747ef76c5d0a387569f9265
authorRoger Dingledine <arma@torproject.org>
Thu, 26 Jan 2012 01:49:32 +0000 (25 20:49 -0500)
committerAndrea Shepard <andrea@torproject.org>
Sat, 2 Feb 2013 16:19:27 +0000 (2 08:19 -0800)
tree8a5199b366aeb30bc4d2effc622c2de30384fec0
parenta8297cdbd3324ac707165ae9922ecf478c4608a1
generalize choose_random_entry()'s dirinfo parameter

Now we can specify to skip bridges that wouldn't be able to answer the
type of dir fetch we're launching.

It's still the responsibility of the rest of the code to prevent us from
launching a given dir fetch if we have no bridges that could handle it.
src/or/circuitbuild.c
src/or/directory.c
src/or/entrynodes.c
src/or/entrynodes.h