aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-hsservice/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * hsservice: new rend_handshake moduleNick Mathewson2023-08-172-0/+255
| | | | | | | | | | | | | | | | | | This code has most of what we need to go from an INTRODUCE2 message we've just received to the point where we've connected to the rendezvous point and we're waiting for a stream of BEGIN messages. Unfinished pieces are marked with TODO HSS. Most of #980.
* | tor-hsservice: Have IptEstablisher::new() return the status watch (fmt)Ian Jackson2023-08-161-2/+1
| |
* | tor-hsservice: Have IptEstablisher::new() return the status watchIan Jackson2023-08-161-5/+6
|/ | | | | | | | | | | The IPT manager is going to want to separate the IptEstablisher struct (which contains the Drop signal) from the watch receiver. We could add an accessor to clone the watch, but the copy in the IptEstablisher would be redundant. This makes new()'s signature a bit funky but it's an internal method so I think that's fine.
* Wire up more of IptEstablisher.Nick Mathewson2023-08-161-7/+111
| | | | | It now supports running in a loop, trying to establish an introduction point, and reporting status.
* reformat establish_intro_onceNick Mathewson2023-08-151-75/+78
|
* Make establish_intro_once a method on a new IptEstablisherReactor.Nick Mathewson2023-08-151-18/+34
| | | | This will help with making a keep_established method.
* hsservice: Actually return from establish_intro_once.Nick Mathewson2023-08-151-13/+31
|
* hsservice: migrate IptStatus design to assume a postage::watchNick Mathewson2023-08-151-9/+12
|
* hsservice: Reject extensions in IntroEstablished cellsNick Mathewson2023-08-151-4/+12
| | | | | Intro points must not send these extensions except in response to a request that prompts them.
* hsservice: Send extensions in establish_intro msgs.Nick Mathewson2023-08-151-9/+18
| | | | | | I had planned to make this code accept extensions of unknown type, but for now I'm backing out of that plan: the set of extensions we send influences the set that we're willing to receive.
* Start working on the backend for an IptEstablisher.Nick Mathewson2023-08-141-7/+244
| | | | | | | | This should be enough now to establish real introduction points, though there is still a lot of work to do. Part of #976. This has been rebased and edited to incorporate discussions from !1465.
* Run add_warnings on all files.Nick Mathewson2023-08-041-2/+2
|
* hsservice: Add a sketched API for HsDir publishers.Nick Mathewson2023-07-312-0/+99
| | | | | | | As with the other APIs here, I'd expect that the implementors will need to refactor this a lot. Closes #972.
* A couple of notes on intropoint establisher API.Nick Mathewson2023-07-311-1/+10
|
* hsservice: Add a draft API for intropoint establisher.Nick Mathewson2023-07-312-0/+107
| | | | | | | Taken from @diziet's !1439 and lightly cleaned up so that it compiles. Closes #971.
* hsservice: Adapt API sketches from onion-service-notes.mdNick Mathewson2023-07-312-0/+43
|
* hsservice: Adapt data structures from onion-service-notes.mdNick Mathewson2023-07-316-85/+290
| | | | | | | Also, removed some older structures that don't make sense in the current design. Closes #970
* Add exceptions for some cases of diverging_sub_expressionNick Mathewson2023-07-101-0/+1
| | | | | | | | See here for documentation on the lint: https://rust-lang.github.io/rust-clippy/master/index.html#/diverging_sub_expression The issue here, from what I can tell, is that the lint triggers whenever you use a diverging expression as a function body within an
* Downgrade every "TODO HS" in tor-hsserviceNick Mathewson2023-06-205-26/+26
| | | | These are all service-specific, and not client-specific.
* keymgr: Move the HS client and service key specifiers out of tor-keymgr.Gabriela Moldovan2023-06-152-0/+35
| | | | | | The HS `HsClientSpecifier` and `HsClientSecretKeySpecifier` are moved to `tor-hsclient`. The HS service secret key specifier stubs are moved to `tor-hsservice`.
* hsservice: Add a note about the contents of circ_info.Nick Mathewson2023-01-241-0/+6
| | | | | In order to store per-circuit information, it's a good idea if we provide something that can be the key of a `PtrWeakKeyHashMap`.
* Sketch an API for onion services.Nick Mathewson2023-01-245-0/+196