summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2016-05-19Add unit tests for networkstatus_consensus_is_bootstrappingteor (Tim Wilson-Brown)
2016-05-19Restore and improve download schedule unit teststeor (Tim Wilson-Brown)
2016-05-19Update unit tests for multiple bootstrap connectionsteor (Tim Wilson-Brown)
2016-05-19Remove consensus_max_download_tries by refactoringteor (Tim Wilson-Brown)
No behaviour change This function is used twice. The code is simpler if we split it up and inline it where it is used.
2016-05-19Stop downloading consensuses when a consensus has been downloadedteor (Tim Wilson-Brown)
Previosuly, during bootstrap, we would continue to download consensuses if we had a consensus, but didn't have the certificates to validate it.
2016-05-10get rid of another no-longer-used functionRoger Dingledine
2016-05-09stop looping once we know what the answer will beRoger Dingledine
suggested during code review by dgoulet
2016-05-09fix a bug where relays would use the aggressive client bootstrapping retry ↵Roger Dingledine
number
2016-05-09simplify more -- we only call these funcs when bootstrappingRoger Dingledine
2016-05-09remove some more unused codeRoger Dingledine
2016-05-09avoid another redundant checkRoger Dingledine
we should avoid launching a consensus fetch if we don't want one, but if we do end up with an extra one, we should let the other checks take care of it.
2016-05-09get rid of the scattered checks to cancel a consensus fetchRoger Dingledine
We'll back off from the request in connection_ap_handshake_attach_circuit, or cancel it in connection_dir_close_consensus_fetches, and those are the only places we need to check.
2016-05-09close other consensus fetches when we get a consensusRoger Dingledine
not once per second, and only do it when a consensus arrives
2016-05-09use the new function here tooRoger Dingledine
2016-05-09avoid following through on a consensus fetch if we have one already arrivingRoger Dingledine
2016-05-09fix typos/etc before i go nuts on #18809Roger Dingledine
2016-05-05Refactor router_pick_directory_server_impl to use node functionsteor (Tim Wilson-Brown)
No behavioural change This makes the use of the node explicit in the function, rather than hiding the node lookup in fascist_firewall_allows_rs.
2016-05-05Comment-only change to clarify routerstatus_t IPv4 byte orderteor (Tim Wilson-Brown)
2016-05-05Rename skip_or and skip_dir to avoid confusionteor (Tim Wilson-Brown)
Variable rename only
2016-05-05Merge branch 'feature18483-028-v2-squashed' into maint-0.2.8Nick Mathewson
2016-05-05Only choose directory DirPorts on relaysteor (Tim Wilson-Brown)
2016-05-05Make clients only select directories with reachable ORPortsteor (Tim Wilson-Brown)
This makes sure clients will only select relays which support begindir over ORPort.
2016-05-05Make clients always use begindir for directory requeststeor (Tim Wilson-Brown)
This improves client anonymity and avoids directory header tampering. The extra load on the authorities should be offset by the fallback directories feature. This also simplifies the fixes to #18809.
2016-05-05Make directory node selection more reliableteor (Tim Wilson-Brown)
Delete an unnecessary check for non-preferred IP versions. Allows clients which can't reach any directories of their preferred IP address version to get directory documents. Patch on #17840 in 0.2.8.1-alpha.
2016-05-04Merge branch 'bug18921_squashed' into maint-0.2.8Nick Mathewson
2016-05-04Choose the correct address for one-hop connectionsteor (Tim Wilson-Brown)
After #17840 in 0.2.8.1-alpha, we incorrectly chose an IPv4 address for all DIRIND_ONEHOP directory connections, even if the routerstatus didn't have an IPv4 address. This likely affected bridge clients with IPv6 bridges. Resolves #18921.
2016-05-04Merge branch 'bug18686_025' into maint-0.2.8Nick Mathewson
2016-05-04Report success when not terminating an already terminated process.Nick Mathewson
Also, document the actual behavior and return values of tor_terminate_process. Fixes bug18686; bugfix on 0.2.3.9-alpha.
2016-05-04Merge branch 'bug18710_025' into maint-0.2.8Nick Mathewson
2016-05-04Fix dnsserv.c assertion when no supported questions are requested.Scott Dial
The problem is that "q" is always set on the first iteration even if the question is not a supported question. This set of "q" is not necessary, and will be handled after exiting the loop if there if a supported q->type was found. [Changes file by nickm] lease enter the commit message for your changes. Lines starting
2016-05-03Fix keccak-tiny portability on `exotic` platforms.Yawning Angel
* SHA-3/SHAKE use little endian for certain things, so byteswap as needed. * The code was written under the assumption that unaligned access to quadwords is allowed, which isn't true particularly on non-Intel.
2016-05-02(cherry-picked by nickm, with changes file from isis.)s0rlxmh0
2016-04-26April 2016 fallbacks for 0.2.8-rcteor (Tim Wilson-Brown)
2016-04-12Merge remote-tracking branch 'public/bug18716_027' into maint-0.2.8Nick Mathewson
2016-04-07memarea: Don't assume that sizeof(ulong) >= sizeof(void*).Nick Mathewson
Fixes bug 18716; bugfix on 0.2.1.1-alpha where memarea.c was introduced. Found by wbenny.
2016-04-07Turn TestingClientBootstrap* into non-testing optionsDavid Goulet
This changes simply renames them by removing "Testing" in front of them and they do not require TestingTorNetwork to be enabled anymore. Fixes #18481 Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2016-04-07Merge branch 'maint-0.2.7' into maint-0.2.8Nick Mathewson
2016-04-07Merge branch 'maint-0.2.6' into maint-0.2.7Nick Mathewson
2016-04-07Merge branch 'maint-0.2.5' into maint-0.2.6Nick Mathewson
2016-04-07Merge branch 'maint-0.2.4' into maint-0.2.5Nick Mathewson
2016-04-07Update geoip and geoip6 to the April 5 2016 database.Karsten Loesing
2016-04-05Don't call the system toupper or tolower.Nick Mathewson
Yes, we could cast to unsigned char first, but it's probably safest to just use our own (in test_util), or remove bad-idea features that we don't use (in readpassphrase.c). Fixes 18728.
2016-04-05quiet debug logs from periodic_event_dispatch()Roger Dingledine
Stop blasting twelve lines per second from periodic_event_dispatch() at loglevel debug. Resolves ticket 18729; fix on 0.2.8.1-alpha.
2016-04-05Only define NEW_THREAD_API when not building with LibreSSL.Nick Mathewson
2016-04-05OpenSSL 1.1.0-pre5-dev and later made BIO opaque.Yawning Angel
Detect newer versions and fix our TLS code to use the new API.
2016-04-05OpenSSL 1.1.0-pre4 and later(?) have a new "thread API".Yawning Angel
It appears that setting the various callbacks is no longer required, so don't.
2016-04-01Merge branch 'bug18133_027' into maint-0.2.8Nick Mathewson
2016-04-01fix indentationNick Mathewson
2016-04-01Merge remote-tracking branch 'karsten/task-18460-2' into maint-0.2.8Nick Mathewson
2016-03-30Merge branch 'bug15221_027' into maint-0.2.7Andrea Shepard