Clients avoid choosing nodes that can't do ntor
commit579a80d4ae54ec03fd9b02c4a125b2943770c85d
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>
Thu, 7 Jul 2016 02:58:47 +0000 (7 12:58 +1000)
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>
Thu, 14 Jul 2016 23:55:49 +0000 (15 09:55 +1000)
tree816ee00f3ed7dff2fe350d1a2fcb49469baea1ac
parenta76d528bec970e500d3339d9e0f253bded17c338
Clients avoid choosing nodes that can't do ntor

If we know a node's version, and it can't do ntor, consider it not running.
If we have a node's descriptor, and it doesn't have a valid ntor key,
consider it not running.

Refactor these checks so they're consistent between authorities and clients.
changes/reject-tap
src/or/circuitbuild.c
src/or/dirserv.c
src/or/networkstatus.c
src/or/nodelist.c
src/or/routerlist.c
src/or/routerlist.h