summaryrefslogtreecommitdiff
path: root/src/or
AgeCommit message (Collapse)Author
2014-02-15Remove a bunch of functions that were never called.Nick Mathewson
2014-02-15Merge remote-tracking branch 'public/bug10841'Nick Mathewson
2014-02-14tristate->enum in rendcommon functionsNick Mathewson
When we have more than two return values, we should really be using an enum rather than "-2 means this, -1 means that, 0 means this, and 1 or more means a number."
2014-02-14Remove another unused v0 hidserv function.Karsten Loesing
Noted by Nick on #10841.
2014-02-12Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson
2014-02-12Fix windows compilation of e0c8031516852Nick Mathewson
There is no WSAEPERM; we were implying that there was.This fixes a bug in e0c8031516852143fb82d8fee91a0f4c576c7418, which hadn't yet appeared in any released Tor.
2014-02-12Remove remaining v0 hidden service descriptor code.Karsten Loesing
Fixes the rest of #10841 after #10881 already removed some hidden service authority code.
2014-02-11Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson
2014-02-11Merge branch 'bug10777_netunreach_024' into maint-0.2.4Nick Mathewson
2014-02-11Merge remote-tracking branch 'public/bug10777_nointernal_024' into maint-0.2.4Nick Mathewson
2014-02-11Merge remote-tracking branch 'public/no_itime_queue_025'Nick Mathewson
2014-02-11Merge branch 'bug10881'Nick Mathewson
2014-02-11Merge remote-tracking branch 'karsten/one-dirauth'Nick Mathewson
2014-02-11Merge remote-tracking branch 'public/bug10722'Nick Mathewson
2014-02-10Remove options for configuring HS authorities.Nick Mathewson
(There is no longer meaningfully any such thing as a HS authority, since we stopped uploading or downloading v0 hs descriptors in 0.2.2.1-alpha.) Implements #10881, and part of #10841.
2014-02-10fix trivial typoRoger Dingledine
2014-02-10make EACCES survivable too.Nick Mathewson
2014-02-10Merge remote-tracking branch 'public/no_itime_queue'Nick Mathewson
The conflicts here were tricky, and required me to eliminate the command-queue as well. That wasn't so hard. Conflicts: src/or/or.h src/or/relay.c
2014-02-10Excise the insertion_time_elem_t logicNick Mathewson
It's now redundant with the inserted_time field in packed_cell_t Fixes bug 10870.
2014-02-09Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson
2014-02-09Don't treat END_STREAM_REASON_INTERNAL as total circuit failureNick Mathewson
It can happen because we sent something that got an ENETUNREACH response. Bugfix on 0.2.4.8-alpha; fixes a part of bug 10777.
2014-02-09Call ENETUNREACH a case of NOROUTE, not a case of INTERNAL.Nick Mathewson
Found by cypherpunks; fix for a part of bug 10777; bugfix on 0.1.0.1-rc.
2014-02-08Make sure orconn->chan gets nulled out when channels exit from ↵Andrea Shepard
channel_free_all() too
2014-02-08Suppress warning in networks with only 1 dirauth.Karsten Loesing
2014-02-07Merge remote-tracking branch 'houqp/hs_control_fix'Nick Mathewson
2014-02-07Remove a needless check in channel_tls_handle_incomingNick Mathewson
This patch removes an "if (chan)" that occurred at a place where chan was definitely non-NULL. Having it there made some static analysis tools conclude that we were up to shenanigans. This resolves #9979.
2014-02-07Merge the circuit_{free,clear}_cpath functionsNick Mathewson
(Based on a suggestion by arma at #9777)
2014-02-07Merge remote-tracking branch 'public/feature9777_024_squashed'Nick Mathewson
Conflicts: src/or/circuitbuild.c
2014-02-07Discard circuit paths on which nobody supports ntorNick Mathewson
Right now this accounts for about 1% of circuits over all, but if you pick a guard that's running 0.2.3, it will be about 6% of the circuits running through that guard. Making sure that every circuit has at least one ntor link means that we're getting plausibly good forward secrecy on every circuit. This implements ticket 9777,
2014-02-07Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson
2014-02-06NULL out conns on tlschans when freeing in case channel_run_cleanup() is ↵Andrea Shepard
late; fixes bug 9602
2014-02-06Merge remote-tracking branch 'public/bug9716_024' into maint-0.2.4Nick Mathewson
2014-02-06Merge remote-tracking branch 'public/bug10543_024_v2'Nick Mathewson
2014-02-06Make the handling for usable-exit counting handle ExitNodes betterNick Mathewson
It's possible to set your ExitNodes to contains only exits that don't have the Exit flag. If you do that, we'll decide that 0 of your exits are working. Instead, in that case we should look at nodes which have (or which might have) exit policies that don't reject everything. Fix for bug 10543; bugfix on 0.2.4.10-alpha.
2014-02-06remove node_describe_by_id() functionQingping Hou
This function is not used anymore
2014-02-06fix longname returned in HS_DESC control eventsQingping Hou
According to control spec, longname should not contain any spaces and is consists only of identy_digest + nickname added two functions: * node_get_verbose_nickname_by_id() * node_describe_longname_by_id()
2014-02-06Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson
Conflicts: changes/bug10485 src/or/rephist.c src/or/status.c
2014-02-06Add a missing includeNick Mathewson
2014-02-06Deliver circuit handshake counts as part of the heartbeatNick Mathewson
Previously, they went out once an hour, unconditionally. Fixes 10485; bugfix on 0.2.4.17-rc.
2014-02-03TransProxyType replaces TransTPROXY optionNick Mathewson
I'm making this change now since ipfw will want its own option too, and proliferating options here isn't sensible. (See #10582 and #10267)
2014-02-03More fixes to rip out all of the v2 directory code.Karsten Loesing
(This was a squash commit, but I forgot to squash it. Sorry! --Nick)
2014-02-0310365: Close connections if the VERSIONS cell has an odd length.rl1987
Fixes issue 10365.
2014-02-03Defensive programming in control_event_hs_descriptor_*Nick Mathewson
It looks to me like these functions can never get called with NULL arguments, but better safe than sorry.
2014-02-03Merge remote-tracking branch 'houqp/hs_control'Nick Mathewson
2014-02-03Merge remote-tracking branch 'public/bug10758'Nick Mathewson
2014-02-02Move the friendly warning about TPROXY and root to EPERM timeNick Mathewson
I'm doing this because: * User doesn't mean you're running as root, and running as root doesn't mean you've set User. * It's possible that the user has done some other capability-based hack to retain the necessary privileges.
2014-01-31Add support for TPROXY via new TransTPRoxy optionNick Mathewson
Based on patch from "thomo" at #10582.
2014-01-29add hidden service descriptor async control eventQingping Hou
2014-01-29Rip out all of the v2 directory code.Nick Mathewson
The remaining vestige is that we continue to publish the V2dir flag, and that, for the controller, we continue to emit v2 directory formats when requested.
2014-01-24Apply StrictNodes to hidden service directories earlyNick Mathewson
Previously, we would sometimes decide in directory_get_from_hs_dir() to connect to an excluded node, and then later in directory_initiate_command_routerstatus_rend() notice that it was excluded and strictnodes was set, and catch it as a stopgap. Additionally, this patch preferentially tries to fetch from non-excluded nodes even when StrictNodes is off. Fix for bug #10722. Bugfix on 0.2.0.10-alpha (the v2 hidserv directory system was introduced in e136f00ca). Reported by "mr-4".