aboutsummaryrefslogtreecommitdiff
path: root/src/or
AgeCommit message (Collapse)Author
2011-05-06Link to libevent_openssl statically when requestedSebastian Hahn
When configure tor with --enable-bufferevents and --enable-static-libevent, libevent_openssl would still be linked dynamically. Fix this and refactor src/or/Makefile.am along the way.
2011-05-05Fix check-spaces issues in masterNick Mathewson
2011-05-05Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2011-05-05Fix up some check-spaces issuesNick Mathewson
2011-05-05Make microdesc use off-by-default for now, since there are not enough cachesNick Mathewson
2011-05-05Now that 0.2.3.1-alpha is out, require it for microdesc fetchesNick Mathewson
2011-05-05Move dummy authority.z fetch out of update_router_descriptor_downloadsNick Mathewson
To make sure that a server learns if its IP has changed, the server sometimes launches authority.z descriptor fetches from update_router_descriptor_downloads. That's nice, but we're moving towards a situation where update_router_descriptor_downloads doesn't always get called. So this patch breaks the authority.z check-and-fetch into a new function. This function also renames last_routerdesc_download to a more appropriate last_descriptor_download, and adds a new update_all_descriptor_downloads() function. (For now, this is unnecessary, since servers don't actually use microdescriptors. But that could change, or bridges could start using microdescriptors, and then we'll be glad this is refactored nicely.)
2011-05-05Code to make clients fetch and use microdescriptors for circuit buildingNick Mathewson
To turn this on, set UseMicrodescriptors to "1" (or "auto" if you want it on-if-you're-a-client). It should go auto-by-default once 0.2.3.1-alpha is released. Because of our node logic, directory caches will never use microdescriptors when they have the right routerinfo available.
2011-05-05Replace _AUTHORITY enum values with _DIRINFO values (automted)Nick Mathewson
2011-05-05Automated rename from authority_type_t to dirinfo_type_tNick Mathewson
We were already overloading this type to mean "a directory that can serve us X" in addition to "a directory that is an authority for X."
2011-05-05Add a new configuration type, "AUTOBOOL", to handle 1/0/auto typesNick Mathewson
We only have one of these now, but I'm about to add a few more. Yes, I have already thought of the "Filenotfoundian logic" joke.
2011-05-04Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2011-05-04Merge remote-tracking branch 'rransom/bug3106' into maint-0.2.2Nick Mathewson
2011-05-04Handle crypto_pk_get_digest failures semi-sensiblyRobert Ransom
Fixes bug 3106.
2011-05-04Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2011-05-04Merge remote-tracking branch 'sebastian/win_warning' into maint-0.2.2Nick Mathewson
2011-05-05Fix compile warning on windowsSebastian Hahn
2011-05-03Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2011-05-03Fix circuit_list_path_impl(): internal circuits do not have an "exit". ↵Nick Mathewson
Trivial fix for 3079.
2011-05-03Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
Conflicts: src/or/main.c src/or/microdesc.c
2011-05-03Change who calls microdesc_cache_rebuild().Nick Mathewson
Previously we ensured that it would get called periodically by doing it from inside the code that added microdescriptors. That won't work though: it would interfere with our code that tried to read microdescs from disk initially. Instead, we should consider rebuilding the cache periodically, and on startup.
2011-05-03Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
Conflicts: src/or/microdesc.c
2011-05-03Rebuild the microdesc cache when a sufficient number of bytes are droppedNick Mathewson
Previously on 0.2.2, we'd never clean the cache. Now that we can clean it, we want to add a condition to rebuild it: that should happen whenever we have dropped enough microdescriptors that we could save a lot of space. No changes file, since 0.2.3 doesn't need one and 0.2.2 already has some changes files for the backport of the microdesc_clean_cahce() function.
2011-05-03Backport microdesc_cache_clean to 0.2.2Nick Mathewson
Otherwise we have no way to keep authorities' microdesc caches in 0.2.2 from growing without bound.
2011-05-03Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
Conflicts: src/or/microdesc.c
2011-05-03Fix a check for when to rebuild the microdesc cache. (Backport from 0.2.3.Nick Mathewson
2011-05-03Add missing code to set cache->journal_len when reading microdesc journalNick Mathewson
This could be one reason that authorities' journals would grow without bound; related to bug 2230. Bugfix on 0.2.2.6-alpha. Fix by "cypherpunks".
2011-04-30Don't choose exit nodes without desc availableSebastian Hahn
n_supported[i] has a random value prior to initialization, so a node that doesn't have routerinfo available can have a random priority. Patch contributed by wanoskarnet from #tor. Thanks!
2011-04-29Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2011-04-29Clean up a warning a bitNick Mathewson
2011-04-28Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2011-04-28Merge remote-tracking branch 'arma/bug3012' into maint-0.2.2Nick Mathewson
2011-04-28relays checkpoint their state file twice a dayRoger Dingledine
2011-04-28Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2011-04-28Merge remote-tracking branch 'arma/bug3039' into maint-0.2.2Nick Mathewson
2011-04-28stop putting wacky values into state->lastwrittenRoger Dingledine
2011-04-28Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2011-04-28Clarify comment to say which version fixed 2722Nick Mathewson
2011-04-28Merge remote-tracking branches 'rransom/bug2722' and 'rransom/bug2722b' into ↵Nick Mathewson
maint-0.2.2
2011-04-28Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2011-04-28Merge remote-tracking branch 'sebastian/bug3020' into maint-0.2.2Nick Mathewson
2011-04-28fix a function commentRoger Dingledine
2011-04-29Correctly check elapsed time in last hibernation periodSebastian Hahn
Fix bug 3020.
2011-04-28Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2011-04-28Avoid false positives from proxy_mode()Nick Mathewson
Previously it would erroneously return true if ListenAddr was set for a client port, even if that port itself was 0. This would give false positives, which were not previously harmful... but which were about to become.
2011-04-28Fix bug 1930Robert Ransom
2011-04-28Ignore SIGNAL NEWNYM on relay-only Tor instancesRobert Ransom
2011-04-28Don't allow v0 HS auths to act as clientsRobert Ransom
A v0 HS authority stores v0 HS descriptors in the same descriptor cache that its HS client functionality uses. Thus, if the HS authority operator clears its client HS descriptor cache, ALL v0 HS descriptors will be lost. That would be bad.
2011-04-28Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2011-04-28Merge remote-tracking branch 'sebastian/bug2497' into maint-0.2.2Nick Mathewson