aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2019-12-19Support a flag to indicate that a config var is disabledNick Mathewson
Like "obsolete" variables, these variables produce a warning when you try to set them, but the warning says that the relevant module doesn't have support. The confdecl macros now have a CONF_CONTEXT that you can define to make all the modules in a given table disabled.
2019-12-19Add "stub" files for disabled modules.Nick Mathewson
These modules are only built when the selected modules are disabled. The provide stub implementations of the subsystem blocks. Later, other stub implementations could move here. Having real subsystem blocks here will let us handle disabled configuration options better.
2019-12-15Add torint.h include to confdecl.h.Nick Mathewson
This change allows other modules to include confdecl.h without having first to include integer types they might not even use.
2019-12-12src/ext: Add __future__ imports for python 3 compatibilityteor
Closes ticket 32732.
2019-12-12python: Add __future__ imports for python 3 compatibilityteor
Except for src/ext, which we may not want to modify. Closes ticket 32732.
2019-12-10Merge branch 'tor-github/pr/1581'George Kadianakis
2019-12-10hs-v3: Handle client rendezvous circuit timeoutDavid Goulet
With v3, the "pending_final_cpath" of a circuit is always NULL which means that for v3, established client rendezvous circuit waiting for the intro point to ACK, will always end up timing out quickly. This can increase the delays to which you connect to a service since in order to succeed, the rendezvous circuit needs to fully established (CIRCUIT_PURPOSE_C_REND_JOINED) within the cutoff of the introduction circuit as well which is these days around 2-3 seconds. Fixes #32021 Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-12-10Merge branch 'tor-github/pr/1583'David Goulet
2019-12-10hs-v3: Fix memory leak in test_hs_control_store_permanent_creds()George Kadianakis
2019-12-06Merge branch 'maint-0.4.2'Nick Mathewson
2019-12-06Merge branch 'maint-0.4.1' into maint-0.4.2Nick Mathewson
2019-12-06Merge branch 'maint-0.4.0' into maint-0.4.1Nick Mathewson
2019-12-06Merge branch 'maint-0.3.5' into maint-0.4.0Nick Mathewson
2019-12-06Merge branch 'maint-0.2.9' into maint-0.3.5Nick Mathewson
2019-12-06Update geoip and geoip6 to the December 3 2019 database.Karsten Loesing
2019-12-05Bump to 0.4.2.5Nick Mathewson
2019-12-05bump version to 0.4.1.7Nick Mathewson
2019-12-05Bump to 0.4.0.6Nick Mathewson
2019-12-05Bump version to 0.3.5.9Nick Mathewson
2019-12-05Merge branch 'maint-0.4.0' into maint-0.4.1teor
2019-12-05Merge branch 'maint-0.3.5' into maint-0.4.0teor
2019-12-05Merge remote-tracking branch 'tor-github/pr/1424' into maint-0.4.0teor
2019-12-05Merge remote-tracking branch 'tor-github/pr/1277' into maint-0.3.5teor
2019-12-04Merge branch 'ticket32609_squashed'Nick Mathewson
2019-12-04practracker: Add missing .may_include filesteor
All of these files contain "*.h", except for: * src/app/config/.may_include * src/test/.may_include which also contain "*.inc". This change prevents includes of "*.c" files, and other unusually named files. Part of 32609.
2019-12-04control-port: Include HS address in ONION_CLIENT_AUTH_VIEW reply.George Kadianakis
2019-12-03hs-v3: Fix NULL deref. in hs_circ_service_get_established_intro_circ()David Goulet
Found by Stem regression tests. Reported by atagar. Fixes #32664 Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-12-03Merge branch 'tor-github/pr/1563'David Goulet
2019-12-03hsv3: ONION_CLIENT_AUTH_REMOVE now also removes the credential file.George Kadianakis
2019-12-03hsv3: Abstract parts of hs_config_client_authorization() into func.George Kadianakis
Now we have a function that reads a file and returns a credential. We need that for the REMOVE control port command.
2019-12-03hsv3: Start refactoring hs_config_client_authorization().George Kadianakis
- Remove key_dir which is useless. - Kill an indentation layer. We want to make it cleaner and slimmer so that we can reuse parts of it in the REMOVE command for removing the right client auth file.
2019-12-03hsv3: Remove support for client auth nicknames.George Kadianakis
Because the function that parses client auth credentials saved on disk (parse_auth_file_content()) is not future compatible, there is no way to add support for storing the nickname on the disk. Hence, nicknames cannot persist after Tor restart making them pretty much useless. In the future we can introduce nicknames by adding a new file format for client auth credentials, but this was not deemed worth doing at this stage.
2019-12-03hsv3: Add tests for permanently storing auth credentials.George Kadianakis
Remove Permanent flag from old tests, and make a new test that does all the permanent things.
2019-12-03hsv3: Implement permanent storage of auth credentials.George Kadianakis
- See hs_client_register_auth_credentials() for the entry point. - Also set the permanent flag for credentials we read from the filesystem. - Also add some missing documentation.
2019-12-03Merge branch 'pr-1569-squashed'teor
2019-12-03Distribute checkSpaceTest.sh and run it when we have perl.Nick Mathewson
2019-12-02Merge branch 'ticket32207'Nick Mathewson
2019-12-02Link to mainloop_pubsub.[ch] when describing delivery policiesNick Mathewson
2019-12-02Merge branch 'tor-github/pr/1559'George Kadianakis
2019-12-01Merge remote-tracking branch 'tor-github/pr/1574'teor
2019-11-29control: Update an outdated function commentteor
Cleanup after 31531.
2019-11-29control: Remove an unused function return valueteor
Cleanup after 31531.
2019-11-29control: Rename a function variableteor
Cleanup after 31531.
2019-11-29control: Remove an unnecessary header in control_events.hteor
And replace it with a struct forward declaration. Also, move all the headers in the file before the forward declaration. Cleanup after 31531.
2019-11-27Merge branch 'tor-github/pr/1573'George Kadianakis
2019-11-27test: Add unit tests for closing intro circ on failureDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-11-27hs-v3: Remove unused hs_service_intro_circ_has_closed()David Goulet
Since the removal of ip->circuit_established, this function does litterally nothing so clean it up. Part of #32020 Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-11-27hs-v3: Give a cleanup type to hs_circ_cleanup()David Goulet
By centralizing the circuit cleanup type that is: on close, free and repurpose, some actions on the circuit can not happen for a certain cleanup type or for all types. This passes a cleanup type so the HS subsystem (v2 and v3) can take actions based on the type of cleanup. For instance, there is slow code that we do not run on a circuit close but rather only on free. Part of #32020 Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-11-27hs-v3: Note client intro circuit failureDavid Goulet
Report back to the v3 subsystem any introduction point client circuit failure so they can be noted down in the failure cache. Fixes #32020 Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-11-27hs-v2: Modernize rend_client_circuit_cleanup() codeDavid Goulet
Old and messy code path. Structure it in a more pleasant and readable way. No behavior change with this refactor. Part of #32020 Signed-off-by: David Goulet <dgoulet@torproject.org>