aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_controller.c
AgeCommit message (Collapse)Author
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.