aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_controller.c
AgeCommit message (Collapse)Author
2019-06-25Fix some onion helpersTaylor Yu
Fix add_onion_helper_clientauth() and add_onion_helper_keyarg() to explicitly call the appropriate control reply abstractions instead of allocating a string to pass to their callers. Part of ticket 30889.
2019-04-30Merge branch 'tor-github/pr/983'George Kadianakis
2019-04-26Make nodelist_get_list() return a const pointer.Nick Mathewson
2019-04-25In control command api, rename "object" to "cmddata"Nick Mathewson
This makes it match control-spec.txt.
2019-04-25Add kvline support to controller command parser.Nick Mathewson
This should let us handle all (or nearly all) of the remaining commands.
2019-04-25Allow kvlines in control commands.Nick Mathewson
2019-04-25Unit tests for current control-command parser logicNick Mathewson
2019-03-25Split command-handling and authentication from control.cNick Mathewson
2019-03-25Split getinfo handling into a new control_getinfo.cNick Mathewson
2019-01-16Bump copyright date to 2019Nick Mathewson
2018-09-19Split routerlist.c into 4 separate modulesNick Mathewson
There are now separate modules for: * the list of router descriptors * the list of authorities and fallbacks * managing authority certificates * selecting random nodes
2018-09-06Merge remote-tracking branch 'tor-github/pr/294'Nick Mathewson
2018-08-28Stricter HiddenServicePort parsingrl1987
2018-08-21Rename functions that encode/decode private keysNick Mathewson
It is not nice to expose a private key's contents without having the function name advertise the fact. Fortunately, we weren't misusing these yet.
2018-07-10Isolate resolve.h usage in the modules that really need it.Nick Mathewson
(Almost none of Tor should actually need to touch the platform resolver.)
2018-07-05Fix every include path changed in the previous commit (automated)Nick Mathewson
I am very glad to have written this script.
2018-07-01Minimize headers that include crypto_formats and x25519 stuffNick Mathewson
2018-06-20Run rectify_include_paths.pyNick Mathewson
2018-06-20Update copyrights to 2018.Nick Mathewson
2018-06-18test: Add missing headers in test_controller.cDavid Goulet
After the big or.h refactoring, one single unit test file was missing two headers for node_t and microdesc_t. Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-06-18Merge branch 'split_or_h'Nick Mathewson
2018-06-15Extract download_status_t into its own header.Nick Mathewson
2018-06-15Split control_connection_t into its own header.Nick Mathewson
This one was actually fairly simple.
2018-06-08Implement GETINFO md/allrl1987
2018-05-30Fix various typosNick Mathewson
2018-04-16Add GETINFO current-time/{local,utc} regression testNeel Chauhan
2018-01-25Remove the old ("deterministic") download schedule.Nick Mathewson
We haven't meant to use it since we introduced the random exponential schedule. Closes ticket 23814.
2017-12-05control: Don't use void pointer for ADD_ONION secret keyDavid Goulet
Make this a bit more safe with at least type checking of the pointers depending on the version. Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-12-05hs-v3: Add ephemeral service supportDavid Goulet
The functions are now used by the ADD_ONION/DEL_ONION control port command as well. This commits makes them fully functionnal with hidden service v3. Part of #20699 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-11-20control: Support HSv3 interface for ADD_ONIONDavid Goulet
At this commit, the key handling and generation is supported for a v3 service (ED25519-V3). However, the service creation is not yet implemented. This only adds the interface and code to deal with the new ED25519-V3 key type. Tests have been updated for RSA key type but nothing yet for ED25519-v3. Part of #20699 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-08-24apply ahf's test_assert_null.cocciNick Mathewson
2017-08-24apply ahf's test_assert_int.cocciNick Mathewson
2017-03-15Run the copyright update script.Nick Mathewson
2017-02-17Fix memleak in test_getinfo_helper_onion.Nick Mathewson
Fix on fc58c37e334fec71a20. Not in any released tor
2017-01-28Ticket #21329: GETINFO onions/current returns empty listmeejah
If there are no ephemeral or detached onion services, then "GETINFO onions/current" or "GETINFO onions/detached" should return an empty list instead of an error
2017-01-03Fix unit test failures in response to DNS hijacking.Nick Mathewson
Some DNS NXDOMAIN hijackers hijack truly ridiculous domains, like "invalid-stuff!!" or "1.2.3.4.5". This would provoke unit test failures where we used addresses like that to force tor_addr_lookup() to fail. The fix, for testing, is to mock tor_addr_lookup() with a variant that always fails when it gets a name with a !. Fixes bugs 20862 and 20863.
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-10-14Whitespace cleaningNick Mathewson
2016-10-04Allow a unix: address to contain a C-style quoted string.Nick Mathewson
Feature 18753 -- all this to allow spaces.
2016-06-29Unit tests for GETINFO download/desc and download/bridge casesAndrea Shepard
2016-06-29Unit test for GETINFO download/cert caseAndrea Shepard
2016-06-29Unit test for GETINFO download/networkstatus caseAndrea Shepard
2016-05-09Merge branch 'feature15588_squashed'Nick Mathewson
2016-05-09Add client auth for ADD_ONION servicesJohn Brooks
2016-02-27Update the copyright year.Nick Mathewson
2015-05-05Fix a few more memory leaks; not in any released TorNick Mathewson
2015-04-28Add "ADD_ONION"/"DEL_ONION" and "GETINFO onions/*" to the controller.Yawning Angel
These commands allow for the creation and management of ephemeral Onion ("Hidden") services that are either bound to the lifetime of the originating control connection, or optionally the lifetime of the tor instance. Implements #6411.