aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_controller.c
AgeCommit message (Collapse)Author
2021-03-12Update copyrights to 2021, using "make update-copyright"Nick Mathewson
2021-02-19hs-v2: Removal of service and relay supportDavid Goulet
This is unfortunately massive but both functionalities were extremely intertwined and it would have required us to actually change the HSv2 code in order to be able to split this into multiple commits. After this commit, there are still artefacts of v2 in the code but there is no more support for service, intro point and HSDir. The v2 support for rendezvous circuit is still available since that code is the same for the v3 and we will leave it in so if a client is able to rendezvous on v2 then it can still transfer traffic. Once the entire network has moved away from v2, we can remove v2 rendezvous point support. Related to #40266 Signed-off-by: David Goulet <dgoulet@torproject.org>
2021-02-19hs: Rename service config port objectDavid Goulet
Remove it from rendservice.c and move everything related to hs_common.{c|h}. Related to #40266 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-01test: Rename test_rep_hist to test_statsDavid Goulet
The exposed interface is "stats/" thus make the unit tests clear that it is testing that specific GETINFO command. Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-01Add GETINFO "rephist/{tap,ntor}/onion_handshakes_{assigned/requested}" testNeel Chauhan
2020-01-24tests for ticket 33039Taylor Yu
2020-01-08It's 2020. Update the copyright dates with "make update-copyright"Nick Mathewson
2019-12-09Rename control_reply_add_1kvTaylor Yu
Part of ticket 30984.
2019-12-08reply lines structuresTaylor Yu
Part of #30984.
2019-11-26test/controller: Stop including a ".c" source fileteor
Part of 32522.
2019-10-22Re-run make autostyle.Nick Mathewson
2019-10-22Merge branch 'ticket31705_v2' into ticket31705_v2_mergedNick Mathewson
Conflicts: src/feature/dirparse/authcert_parse.c src/feature/dirparse/ns_parse.c src/feature/hs/hs_service.c src/lib/conf/conftesting.h src/lib/log/log.h src/lib/thread/threads.h src/test/test_options.c These conflicts were mostly related to autostyle improvements, with one or two due to doxygen fixes.
2019-10-22test: Hide some test-declaration macro definitions to COCCI.Nick Mathewson
(These ones cause parsing failures.)
2019-10-21Merge remote-tracking branch 'tor-github/pr/1434'teor
2019-10-21test/getinfo: Remove unnecessary test codeteor
Fix for 31684.
2019-10-21control: Add GETINFO support for dumping microdesc consensusAmreshVenugopal
- Allows control port to read microdesc consensus using: GETINFO dir/status-vote/microdesc/consensus add: Helper function `getinfo_helper_current_consensus` test: check if GETINFO commands return expected consensus data. Resolves 31684.
2019-10-03hs: ADD_ONION NEW:BEST now defaults to ED25519-V3David Goulet
From RSA1024 (v2) to v3 now. Closes #29669 Signed-off-by: David Goulet <dgoulet@torproject.org>
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