summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-08-07Server transport proxies should bind on the same port each time, if possible.George Kadianakis
2011-07-18Changed a printf() to a log_debug().George Kadianakis
2011-07-18Reuse get_string_from_pipe() in log_from_pipe().George Kadianakis
2011-07-18Let's be smarter while parsing {Client,Server}TransportPlugin lines.George Kadianakis
2011-07-18Replaced ST_* enum prefix for stream status with IO_STREAM_*.George Kadianakis
2011-07-18Updated #includes etc. to use transports.[ch].George Kadianakis
2011-07-18Renamed pluggable_transports.[ch] to transports.[ch].George Kadianakis
2011-07-14Reverting the accounting thing introduced in 5492de76 till I think how it ↵George Kadianakis
should be done properly.
2011-07-14Changed a couple of 180 spec stuff according to #3578.George Kadianakis
* Restored "proxy" in external ServerTransportPlugin lines. * Changed the extended OR port and ORPort env. vars to addr:port.
2011-07-13Add some unit tests.George Kadianakis
2011-07-13Put some last missing pieces together.George Kadianakis
* Add some utility transport functions in circuitbuild.[ch] so that we can use them from pt.c. * Make the accounting system consider traffic coming from proxies. * Make sure that we only fetch bridge descriptors when all the transports are configured.
2011-07-13Create the pluggable_transports.[ch] source files responsible for talking ↵George Kadianakis
the 180 talk.
2011-07-13Make some utility functions.George Kadianakis
* Create a function that will get input from a stream, so that we can communicate with the managed proxy. * Hackish change to tor_spawn_background() so that we can specify an environ for our spawn.
2011-07-13Add support for managed {Client,Server}TransportPlugin parsing.George Kadianakis
2011-07-03Refactor the interfaces of transport/proxy lookup fnsNick Mathewson
Returning a tristate is needless here; we can just use the yielded transport/proxy_type field to tell whether there's a proxy, and have the return indicate success/failure. Also, store the proxy_type in the or_connection_t rather than letting it get out of sync if a configuration reload happens between launching the or_connection and deciding what to say with it.
2011-07-03Future-proof and user-proof parse_bridge_lineNick Mathewson
2011-07-02Simplify parse_client_transport_lineNick Mathewson
2011-07-02Style and grammar tweaks on 2841 branchNick Mathewson
2011-07-02Small tweaks to 2841 codeNick Mathewson
- const-ify some transport_t pointers - Remove a vestigial argument to parse_bridge_line - Make it compile without warnings on my laptop with --enable-gcc-warnings
2011-06-28Trivial code tweaks and documentation updates.George Kadianakis
2011-06-22Revised how we handle ClientTransportPlugin and Bridge lines.George Kadianakis
Multiple Bridge lines can point to the same one ClientTransportPlugin line, and we can have multiple ClientTransportPlugin lines in our configuration file that don't match with a bridge. We also issue a warning when we have a Bridge line with a pluggable transport but we can't match it to a ClientTransportPlugin line.
2011-06-21Various small tweaks around config.c and or.hGeorge Kadianakis
2011-06-21Tweaked connection{.c,.h,_or.c} based on nick's comments.George Kadianakis
* Tweaked doxygen comments. * Changed returns of get_proxy_addrport(). * Ran make check-spaces. * Various small code tweaks.
2011-06-21Fixes on circuitbuild.[ch] based on nick's comments.George Kadianakis
* Renamed transport_info_t to transport_t. * Introduced transport_get_by_name(). * Killed match_bridges_with_transports(). We currently *don't* detect whether any bridges miss their transports, of if any transports miss their bridges. * Various code and aesthetic tweaks and English language changes.
2011-06-14Fixes small bugs.George Kadianakis
2011-06-14This commit is an attempt to beautify the previous commit.George Kadianakis
It creates some helper functions that return the proxy type, proxy addr/port, etc.
2011-06-14Our warning now is much more specific, mentioning proxy type/addr/port.George Kadianakis
Not included in the previous commit, because the implementation is ugly; I see no other way of doing this though.
2011-06-14We now warn the user if a proxy server is not up when we try to connect with it.George Kadianakis
2011-06-12Various trivial changes.George Kadianakis
* Improved function documentation. * Renamed find_bridge_transport_by_addrport() to find_transport_by_bridge_addrport(). * Sanitized log severities we use. * Ran check-spaces.
2011-06-12We can now connect using transports as well!George Kadianakis
2011-06-11We can now match our transports with our bridges.George Kadianakis
2011-06-11ClientTransportPlugin parsing done.George Kadianakis
2011-06-10fix typo in changes/coverity_master spotted by rransomNick Mathewson
2011-06-10Move errant doc/nodefamily_routerset into 0.2.3.1-alpha ChangeLog. Fix bug 3373Nick Mathewson
2011-06-09Upgrade to the latest version of tinytestNick Mathewson
2011-06-08Prefer tt_assert in unit tests, not tor_assertNick Mathewson
2011-06-08tweak coverity_master changes fileNick Mathewson
2011-06-08Fix a memleak in nodelist_assert_ok()Sebastian Hahn
2011-06-08Remove a dead variable in the heartbeat codeSebastian Hahn
2011-06-08Fix a minor coverity-found bug in testsSebastian Hahn
2011-06-08Update the uptime string to include an hours indicatorSebastian Hahn
Before, it wasn't really obvious if one meant hours:minutes or minutes:seconds etc.
2011-06-07Fix crash bug (3361) when setting off-flavor networkstatusNick Mathewson
When we set a networkstatus in the non-preferred flavor, we'd check the time in the current_consensus. But that might have been NULL, which could produce a crash as seen in bug 3361.
2011-06-06Merge remote-tracking branch 'asn2/bug3336'Nick Mathewson
2011-06-06Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson
2011-06-06Merge branch 'bug3306_nm_squashed' into maint-0.2.2Nick Mathewson
2011-06-06Detect insanely large circuit build state; don't give its length to rand_intNick Mathewson
2011-06-06Check maximum properly in crypto_rand_int()Nick Mathewson
George Kadianakis notes that if you give crypto_rand_int() a value above INT_MAX, it can return a negative number, which is not what the documentation would imply. The simple solution is to assert that the input is in [1,INT_MAX+1]. If in the future we need a random-value function that can return values up to UINT_MAX, we can add one. Fixes bug 3306; bugfix on 0.2.2pre14.
2011-06-05Add the heartbeat domain in log.c:domain_list[]George Kadianakis
so that parse_log_domain() doesn't fail.
2011-06-05Merge branch 'maint-0.2.2'Roger Dingledine
2011-06-05Merge branch 'maint-0.2.1' into maint-0.2.2Roger Dingledine