summaryrefslogtreecommitdiff
path: root/src/or/transports.c
AgeCommit message (Collapse)Author
2018-07-05Move literally everything out of src/orNick Mathewson
This commit won't build yet -- it just puts everything in a slightly more logical place. The reasoning here is that "src/core" will hold the stuff that every (or nearly every) tor instance will need in order to do onion routing. Other features (including some necessary ones) will live in "src/feature". The "src/app" directory will hold the stuff needed to have Tor be an application you can actually run. This commit DOES NOT refactor the former contents of src/or into a logical set of acyclic libraries, or change any code at all. That will have to come in the future. We will continue to move things around and split them in the future, but I hope this lays a reasonable groundwork for doing so.
2018-07-05Remove util.hNick Mathewson
Inline its contents (which were all includes) into or.h, and some of its contents into other places that didn't include or.h at all.
2018-07-01Extract more constants from or.hNick Mathewson
2018-06-28Move tor_escape_str_for_pt_args into or/transports.cNick Mathewson
2018-06-28Extract process-management functionality into a new lib/processNick Mathewson
Note that procmon does *not* go here, since procmon needs to integrate with the event loop.
2018-06-20Run rectify_include_paths.pyNick Mathewson
2018-06-20Update copyrights to 2018.Nick Mathewson
2018-04-10Merge remote-tracking branch 'isis-github/bug25425_squashed2'Nick Mathewson
2018-04-09test: Add testing module and some unittests for bridges.c.Isis Lovecruft
This roughly doubles our test coverage of the bridges.c module. * ADD new testing module, .../src/test/test_bridges.c. * CHANGE a few function declarations from `static` to `STATIC`. * CHANGE one function in transports.c, transport_get_by_name(), to be mockable. * CLOSES #25425: https://bugs.torproject.org/25425
2018-02-24Remove duplicate code between parse_{c,s}method in transport.cDeepesh Pathak
- Merged common code in function parse_{c,s}method to a single function - Removed duplicate code in transport.c - Fixes #6236
2018-02-07Fix spelling mistakes corresponding to ticket #23650Deepesh Pathak
2017-12-11Merge branch 'maint-0.3.2'Nick Mathewson
2017-12-11transport_new() cannot fail; do not check for it to fail.Nick Mathewson
(It can't fail because the tor_malloc*() family of functions can never return NULL) Found with STACK.
2017-12-08Change the free macro convention in the rest of src/or/*.hNick Mathewson
2017-09-15Run our #else/#endif annotator on our source code.Nick Mathewson
2017-03-15Run the copyright update script.Nick Mathewson
2017-01-19Remove extra newline from proxy_prepare_for_restart definitionteor
2016-11-30Split bridge functions into a new module.Nick Mathewson
This patch is just: * Code movement * Adding headers here and there as needed * Adding a bridges_free_all() with a call to it. It breaks compilation, since the bridge code needed to make exactly 2 calls into entrynodes.c internals. I'll fix those in the next commit.
2016-11-21Merge branch 'maint-0.2.9'Nick Mathewson
2016-11-16refactor router_pick_published_address to have another argRoger Dingledine
no change in behavior except fewer log entries in the case where we use a cached result.
2016-10-27Automated change to use smartlist_add_strdupovercaffeinated
Use the following coccinelle script to change uses of smartlist_add(sl, tor_strdup(str)) to smartlist_add_strdup(sl, string) (coccinelle script from nickm via bug 20048): @@ expression a; expression b; @@ - smartlist_add + smartlist_add_strdup (a, - tor_strdup( b - ) )
2016-07-28Fix all -Wshadow warnings on LinuxNick Mathewson
This is a partial fix for 18902.
2016-07-05Grammar.Nick Mathewson
I grepped and hand-inspected the "it's" instances, to see if any were supposed to be possessive. While doing that, I found a "the the", so I grepped to see if there were any more.
2016-05-30Replace nearly all XXX0vv comments with smarter onesNick Mathewson
So, back long ago, XXX012 meant, "before Tor 0.1.2 is released, we had better revisit this comment and fix it!" But we have a huge pile of such comments accumulated for a large number of released versions! Not cool. So, here's what I tried to do: * 0.2.9 and 0.2.8 are retained, since those are not yet released. * XXX+ or XXX++ or XXX++++ or whatever means, "This one looks quite important!" * The others, after one-by-one examination, are downgraded to plain old XXX. Which doesn't mean they aren't a problem -- just that they cannot possibly be a release-blocking problem.
2016-02-27Update the copyright year.Nick Mathewson
2016-01-26Correct grammatical errors in tor commentsteor (Tim Wilson-Brown)
Avoid using gender for things that don't have it. Avoid assigning a gender to tor users.
2015-12-15Replace usage of INLINE with inlinecypherpunks
This patch was generated using; sed -i -e "s/\bINLINE\b/inline/" src/*/*.[ch] src/*/*/*.[ch]
2015-03-26Implement "TOR_PT_EXIT_ON_STDIN_CLOSE".Yawning Angel
Background processes spawned by Tor now will have a valid stdin. Pluggable transports can detect this behavior with the aformentioned enviornment variable, and exit if stdin ever gets closed.
2015-01-02Bump copyright dates to 2015, in case someday this matters.Nick Mathewson
2014-12-22Fix a bunch of memory leaks in the unit tests. Found with valgrindNick Mathewson
2014-11-04Merge remote-tracking branch 'andrea/ticket6456'Nick Mathewson
Somewhat tricky conflicts: src/or/config.c Also, s/test_assert/tt_assert in test_config.c
2014-10-28Add another year to our copyright dates.Nick Mathewson
Because in 95 years, we or our successors will surely care about enforcing the BSD license terms on this code. Right?
2014-09-11Whitespace cleanups in transports/test_ptNick Mathewson
2014-09-09Fix issues brought up in nickm's review.Yawning Angel
* Update pt_get_proxy_uri() documentation. * proxy_supported is now unsigned. * Added a changes file.
2014-07-25Add some mocks needed to unit test ↵Andrea Shepard
ClientTransportPlugin/ServerTransportPlugin config line parsing
2014-05-21Improve the log message when a transport doesn't support proxies.Yawning Angel
Per feedback, explicltly note that the transport will be killed when it does not acknowledge the configured outgoing proxy.
2014-05-21Allow ClientTransportPlugins to use proxiesYawning Angel
This change allows using Socks4Proxy, Socks5Proxy and HTTPSProxy with ClientTransportPlugins via the TOR_PT_PROXY extension to the pluggable transport specification. This fixes bug #8402.
2014-04-23Slightly improve the documentation of src/or/transports.cGeorge Kadianakis
Make it clear that a SIGHUP is not the only action that can cause a config re-read.
2014-04-23Rename the got_hup element of managed proxies.George Kadianakis
Since we need to toggle that element in non-SIGHUP situations too where the config was re-read (like in SETCONF or RESETCONF).
2014-04-23Don't halt bootstrap to figure out if we should restart PT proxies.George Kadianakis
Instead, figure out if we should restart PT proxies _immediately_ after we re-read the config file.
2014-03-27check outputs from get_first_listener_addrport_stringNick Mathewson
Fix for 9650; bugfix for 0.2.3.16-alpha.
2013-10-29Fix an always-true assert in PT code.George Kadianakis
2013-08-25Implement the TRANSPORT_LAUNCHED control port event.George Kadianakis
2013-08-15Merge branch 'bug5040_4773_rebase_3'Nick Mathewson
2013-08-15Add guards to ext_orport.h, rename get_file to get_file_nameNick Mathewson
2013-07-31Merge branch 'bug9288_rebased'Nick Mathewson
Conflicts: src/test/test_pt.c
2013-07-31Modifications to transports.c for the unit tests to work.George Kadianakis
Both 'managed_proxy_list' and 'unconfigured_proxies_n' are global src/or/transports.c variables that are not initialized properly when unit tests are run.
2013-07-31Write unit tests for configure_proxy().George Kadianakis
2013-07-31Fix invalid-read when a managed proxy configuration fails.George Kadianakis
2013-07-18Move Extended ORPort code to its own module.George Kadianakis
Move the code from the connection_or module to ext_orport. This commit only moves code: it shouldn't modify anything.