summaryrefslogtreecommitdiff
path: root/crates/tor-hsservice
Commit message (Collapse)AuthorAgeFilesLines
...
* | hs: Intro point selection: Actually call is_hs_intro_point() (fmt)Ian Jackson2023-08-291-5/+5
| |
* | hs: Intro point selection: Actually call is_hs_intro_point()Ian Jackson2023-08-291-0/+1
| | | | | | | | | | | | | | | | Call site as per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1550#note_2936401 Plus a TODO comment with an opinion from me about this API. (Note not a TODO HSS so this is on the back burner.)
* | tor-hsservice: Actually select new intro point relays (fmt)Ian Jackson2023-08-291-2/+6
| |
* | tor-hsservice: Actually select new intro point relaysIan Jackson2023-08-291-9/+59
| | | | | | | | | | | | | | | | I doubt this would work yet because it will probably crash at startup due to the unhandled error case. Handling the error case would have a conflict with !1549 so let's do that later.
* | Merge branch 'mgr-split' into 'main'Ian Jackson2023-08-291-4/+19
|\ \ | |/ |/| | | | | tor-hsservice: ipt mgr: Split up idempotently_progress_things_now See merge request tpo/core/arti!1549
| * tor-hsservice: ipt mgr: Split up idempotently_progress_things_nowIan Jackson2023-08-251-4/+19
| | | | | | | | | | | | | | | | Break publication out of this function, which was rather long. This does seem to make conceptual sense, now I've done it. For example, note how the 2nd half didn't need &mut self, and so doesn't ever `return CONTINUE;`
* | tor-hsservice: Add TODOs for the unimplemented parts.Gabriela Moldovan2023-08-251-0/+57
| |
* | tor-hsservice: Get rid of an unnecessary clone.Gabriela Moldovan2023-08-251-5/+3
| |
* | tor-hsservice: Remove unnecessary validate() function.Gabriela Moldovan2023-08-252-29/+11
| |
* | tor-hsservice: If we can't build the descriptor, log the error (fmt).Gabriela Moldovan2023-08-251-12/+15
| |
* | tor-hsservice: If we can't build the descriptor, log the error.Gabriela Moldovan2023-08-251-3/+6
| |
* | tor-hsservice: Document the non-Event events handled by the Reactor.Gabriela Moldovan2023-08-251-0/+10
| |
* | tor-hsservice: Clarify when `descriptor` is expected to be incomplete.Gabriela Moldovan2023-08-251-0/+3
| |
* | tor-hsservice: Explain what UPLOAD_RATE_LIM_THRESHOLD is used for.Gabriela Moldovan2023-08-251-0/+5
| |
* | tor-hsservice: Document when recompute_hs_dirs should be called.Gabriela Moldovan2023-08-251-0/+8
| |
* | tor-hsservice: s/fetch_hsdirs/compute_hsdirs (fmt).Gabriela Moldovan2023-08-251-1/+2
| |
* | tor-hsservice: s/fetch_hsdirs/compute_hsdirs.Gabriela Moldovan2023-08-251-3/+3
| |
* | tor-hsservice: Use [v].into_iter() instead of iter::once(v).Gabriela Moldovan2023-08-251-1/+1
| |
* | tor-hsservice: Handle schedule_upload_rx.recv() errors.Gabriela Moldovan2023-08-251-2/+4
| |
* | tor-hsservice: Remove unnecessary argument from recompute_hs_dirs.Gabriela Moldovan2023-08-251-5/+9
| |
* | tor-hsservice: Replace the netdir before recomputing the HsDirs.Gabriela Moldovan2023-08-251-2/+2
| |
* | tor-hsservice: Add partial descriptor publisher reactor implementation.Gabriela Moldovan2023-08-254-10/+842
| | | | | | | | | | | | | | | | This partially implements the descriptor publisher reactor. The code still has many TODOs and there are no tests. Partially implements #977
* | tor-hsservice: Move PublisherError to a separate module, tweak publisher API.Gabriela Moldovan2023-08-252-5/+47
| |
* | tor-hsservice: Make wait_for_netdir* more widely available.Gabriela Moldovan2023-08-253-63/+78
|/ | | | | `wait_for_netdir` is needed by the descriptor publisher (to compute the initial netdir).
* hss: Retry rendezvous circuit attempts.Nick Mathewson2023-08-242-8/+27
| | | | Closes #1013.
* tor-keymgr, tor-hsservice: Run rustfmt to make derives uglierIan Jackson2023-08-231-3/+3
|
* tor-keymgr, tor-hsservice: deser for ArtiPathComponent and HsNicknameIan Jackson2023-08-232-0/+22
|
* tor-hsservice: Use real HsNickname in configIan Jackson2023-08-231-4/+4
|
* tor-hsservice: Use real HsNickname in ipt_mgrIan Jackson2023-08-231-4/+1
|
* tor-hsservice: Provide a sensible HsNicknameIan Jackson2023-08-233-0/+91
|
* Rerun maint/add_warningIan Jackson2023-08-231-0/+1
| | | | | Fixes CI. There was a semantic conflict between !1535 (which added a suppression) and !1523 (which added a new module).
* Merge branch 'hss_send_raw' into 'main'Ian Jackson2023-08-231-20/+2
|\ | | | | | | | | hss: use send_raw_msg in rend_handshake. See merge request tpo/core/arti!1536
| * hss: use send_raw_msg in rend_handshake.Nick Mathewson2023-08-221-20/+2
| |
* | ipt establisher API: pass a struct to new() (fmt)Ian Jackson2023-08-231-6/+2
| | | | | | | | One of rustfmt's changes here is wrong. Whatever.
* | ipt establisher API: pass a struct to new()Ian Jackson2023-08-232-20/+47
| | | | | | | | | | | | | | | | Now new() only has a reasonable number of arguments and removes some repetition in the mocking arrangements in the IPT Manager. This is the minimum amount that needs to be done in the commit that touches both the IPT Establisher and the Manager.
* | tor-hsservice: Add a TODO for breaking up the big functionIan Jackson2023-08-231-0/+2
| | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1523#note_2934367
* | tor-hsservice: timeout_track: Add some TODOsIan Jackson2023-08-231-0/+3
| | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1523#note_2934299
* | tor-hsservice: ipt-m: Add a TODO about code motionIan Jackson2023-08-231-0/+2
| | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1523#note_2934300
* | tor-hsservice: ipt-m: tests: Fix wrong commentIan Jackson2023-08-231-1/+1
| | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1523#note_2934298
* | Fix doc formatting.gabi-2502023-08-231-1/+1
| |
* | tor-hsservice: About half of an IPT ManagerIan Jackson2023-08-235-2/+799
| | | | | | | | There are many TODOs and no tests, but it does compile.
* | tor-hsservice: Expose the ipt_establish and publish modulesIan Jackson2023-08-231-2/+2
| | | | | | | | | | | | I still think putting these in svc/ module doesn't make much sense. Anyway, we can leave them there for now, but I need to get at them from crate::ipt_establisher.
* | tor-hsservice: Provide timeout tracking utilities - testsIan Jackson2023-08-232-2/+201
| |
* | tor-hsservice: Provide timeout tracking utilitiesIan Jackson2023-08-233-0/+434
| | | | | | | | | | This module is perhaps rather more comprehensive than needed right now. But I found I kept wanting to change which bits of it I used.
* | Use "typos-cli" to fix a bunch of typos.Nick Mathewson2023-08-222-2/+2
| |
* | hss: Improve comments in IptEstablisher::drop.Nick Mathewson2023-08-221-2/+8
| |
* | hss: Allow IptEstablisher to start in Advertised mode.Nick Mathewson2023-08-221-18/+20
| |
* | hss: switch to select_biasedNick Mathewson2023-08-221-1/+1
| |
* | hss: change terminate oneshot to send "void".Nick Mathewson2023-08-222-7/+10
| | | | | | | | We don't actually want to distinguish drop from not-drop.
* | hss: enable tor_proto/experimental-apiNick Mathewson2023-08-221-1/+5
| | | | | | | | Needed for ClientCirc::wait_for_close