summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Remove direct dependency on generic-arrayNick Mathewson2023-09-287-23/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of tying ourselves to a particular version of the generic-array crate, we now always use the version re-exported by our RustCrypto crates. This lets us avoid the possibility of version mismatch. (Originally I had planned to upgrade to generic-array 1.0, but then I found that we were not actually using it.)
| * | Upgrade async_executors dependency to 0.7.0Nick Mathewson2023-09-283-11/+16
| | |
| * | pt-proxy example: Upgrade to fast-socks5 v0.9.1.Nick Mathewson2023-09-283-5/+6
| | |
| * | Upgrade memmap2 dependency to 0.8.0Nick Mathewson2023-09-282-4/+4
| | |
| * | Upgrade event_listener dependency to 3.0.0Nick Mathewson2023-09-283-7/+18
| | |
* | | Merge branch 'less-spaghetti-zeroize' into 'main'gabi-2502023-09-281-6/+2
|\ \ \ | |/ / |/| | | | | | | | tor-proto: Replace repeating pattern with fill See merge request tpo/core/arti!1627
| * | tor-proto: Replace repeating pattern with fillEmil Engler2023-09-281-6/+2
|/ / | | | | | | | | | | | | | | | | This commit replaces a repeating code pattern in the `set_digest` function for setting the 'Recognized' and Digest field to zero with a slice fillment. Besides this, it also adds comments explaining which fields are currently getting zeroized.
* | Merge branch 'implement-rproxy' into 'main'Nick Mathewson2023-09-2714-47/+538
|\ \ | | | | | | | | | | | | Start implementing tor-hsrproxy See merge request tpo/core/arti!1622
| * | hsrproxy: detect shutdown correctly.Nick Mathewson2023-09-271-6/+23
| | |
| * | hsrproxy: improve error handling somewhatNick Mathewson2023-09-273-34/+114
| | | | | | | | | | | | | | | With this patch we now propagate errors upwards rather than handling them at the lowest possible level.
| * | rproxy: Implement the actual "proxy" part of the code.Nick Mathewson2023-09-271-10/+78
| | | | | | | | | | | | | | | Now we finally have the code to copy the data back and forth on the two AsyncRead+AsyncWrite objects that we create.
| * | hss: Remove OnionServiceDataStram type.Nick Mathewson2023-09-272-18/+4
| | | | | | | | | | | | | | | | | | | | | I think that the reason we added this was in case we needed different behavior from DataStream; but on reflection it does seem that we don't. Having a single type here will make things a bit simpler.
| * | hsrproxy: Implement more of the proxy functionalityNick Mathewson2023-09-273-4/+143
| | |
| * | hss: Implement methodss for StreamRequestNick Mathewson2023-09-271-7/+24
| | |
| * | hss: implement HasKind for several errors.Nick Mathewson2023-09-272-1/+50
| | |
| * | tor-cell: Add accessors for Begin.Nick Mathewson2023-09-271-0/+15
| | |
| * | hss: helper to get a stream of StreamReq from a stream of RendReq.Nick Mathewson2023-09-273-0/+34
| | | | | | | | | | | | | | | | | | This isn't very much code, but given how long it took me to write this and make it typecheck, I suspect that others may find it useful as well.
| * | hss: actually provide a stream of RendRequest from launch().Nick Mathewson2023-09-272-13/+23
| | |
| * | tor-proto: Make allow_stream_requests() not return a ResultNick Mathewson2023-09-273-16/+10
| | | | | | | | | | | | | | | | | | | | | The function never yields anything but an `Ok`, so we can simplify its type. (Not a stable feature, so no semver entry needed)
| * | hsrproxy: Start to sketch out an rproxy implementation.Nick Mathewson2023-09-275-0/+82
|/ /
* | Merge branch 'publisher-launch-non-async' into 'main'gabi-2502023-09-276-101/+63
|\ \ | | | | | | | | | | | | | | | | | | tor-hsservice: Make {Publisher, OnionService}::launch non-async Closes #1052 See merge request tpo/core/arti!1625
| * | tor-hsservice: Document that time_periods is empty until Reactor::run is called.Gabriela Moldovan2023-09-271-0/+2
| | |
| * | tor-hsservice: Run cargo fmt.Gabriela Moldovan2023-09-271-3/+1
| | |
| * | tor-hsservice: Remove unused publisher error module.Gabriela Moldovan2023-09-272-45/+0
| | | | | | | | | | | | | | | The `Publisher` now returns a `StartupError` if it fails so launch, so we don't need `PublisherError` anymore.
| * | tor-hsservice: Make Publisher::launch return a StartupError.Gabriela Moldovan2023-09-273-18/+7
| | | | | | | | | | | | | | | | | | This simplifies error handling in `OnionService`. Closes #1052
| * | tor-hsservice: Make Launchable a non-async trait.Gabriela Moldovan2023-09-272-8/+4
| | | | | | | | | | | | | | | This doesn't need to be an async_trait now that `Publisher::launch` is no longer async.
| * | tor-hsservice: Make Publisher::launch non-async.Gabriela Moldovan2023-09-273-12/+6
| | | | | | | | | | | | | | | | | | Fixes #1052 See also the discussion in !1616
| * | tor-hsservice: Initialize netdir in Reactor::run.Gabriela Moldovan2023-09-271-16/+44
|/ / | | | | | | This will enable us to make `Publisher::launch` non-async.
* | Merge branch 'publisher-todos' into 'main'Nick Mathewson2023-09-272-10/+11
|\ \ | | | | | | | | | | | | tor-hsservice: Resolve a couple of publisher todo!()s See merge request tpo/core/arti!1624
| * | tor-hsservice: Specify the expiry for the hs_desc_sign_cert.Gabriela Moldovan2023-09-271-3/+4
| | | | | | | | | | | | | | | | | | | | | Like the other certificates, the descriptor signing key certificate should have a lifetime of `HS_DESC_CERT_LIFETIME_SEC` seconds (at least, this is what C-Tor does. See build_desc_signing_key_cert() in feature/hs/hs_service.c).
| * | tor-hsservice: Make HsSvcKeySpecifier borrow the nickname.Gabriela Moldovan2023-09-272-9/+9
| | | | | | | | | | | | This helps avoid cloning the nickname unnecessarily.
| * | tor-hsservice: Use the nickname from the OnionServiceConfig.Gabriela Moldovan2023-09-271-3/+3
|/ / | | | | | | | | The publisher can just read the nickname of the service from its `OnionServiceConfig`.
* | Merge branch 'service-api' into 'main'Nick Mathewson2023-09-276-9/+85
|\ \ | | | | | | | | | | | | arti-client: sketch out an initial "launch an onion service" API. See merge request tpo/core/arti!1620
| * | arti-client: add a minimal onion-service-launching API.Nick Mathewson2023-09-272-6/+62
| | |
| * | hss: Implement HasKind for StartupErrorNick Mathewson2023-09-261-1/+15
| | |
| * | hss: Make launch() non-consuming.Nick Mathewson2023-09-261-1/+1
| | | | | | | | | | | | | | | We want to still have the OnionService kicking around, so we can use it as a handle.
| * | arti-client: add an onion-service-service featureNick Mathewson2023-09-262-1/+7
| | | | | | | | | | | | (I am not thrilled with this name.)
* | | Merge branch 'worst-case-end' into 'main'Nick Mathewson2023-09-271-34/+85
|\ \ \ | | | | | | | | | | | | | | | | or-hsservice: Set a timeout for desc upload tasks. See merge request tpo/core/arti!1623
| * | | tor-hsservice: Set a timeout for the upload task.Gabriela Moldovan2023-09-271-19/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The IPT manager needs to know how long the publication attempt will take in the worst case, so we add a timeout for the upload task. Part of #1050
| * | | tor-hsservice: Explain how note_publication_attempt is not called in the ↵Gabriela Moldovan2023-09-271-0/+23
| | | | | | | | | | | | | | | | right place.
| * | | tor-hsservice: Fix descriptor reactor lifetime bugs.Gabriela Moldovan2023-09-271-20/+14
| | | | | | | | | | | | | | | | | | | | The problem was that several variables were borrowed in the spawned async block.
| * | | tor-hsservice: Describe the lifetime bug from Reactor::upload_all.Gabriela Moldovan2023-09-271-0/+5
| | | |
* | | | Merge branch 'desc-todos' into 'main'Alexander Færøy2023-09-271-8/+3
|\ \ \ \ | |/ / / |/| | | | | | | | | | | tor-hsservice: Remove unnecessary TODO. See merge request tpo/core/arti!1621
| * | | tor-hsservice: Remove unnecessary TODO.Gabriela Moldovan2023-09-261-8/+3
| | | | | | | | | | | | | | | | | | | | `Ipt` _is_ `IntroPointDesc`, so we don't need `build_intro_point_desc()` at all.
* | | | Merge branch 'keymgr-blinded-keys' into 'main'gabi-2502023-09-266-27/+179
|\| | | | | | | | | | | | | | | | | | | tor-keymgr: Support storing `ed25519::ExpandedKeypair`s in the keystore See merge request tpo/core/arti!1619
| * | | tor-keymgr: Fix clippy warning (fmt).Gabriela Moldovan2023-09-261-4/+1
| | | |
| * | | tor-keymgr: Fix clippy warning.Gabriela Moldovan2023-09-261-1/+1
| | | |
| * | | tor-keymgr: Add a TODO regarding parsing errors.Gabriela Moldovan2023-09-261-0/+3
| | | |
| * | | tor-keymgr: Test expanded expanded-ed25519 SSH key parsing.Gabriela Moldovan2023-09-264-0/+47
| | | |
| * | | tor-keymgr: Extend parse_openssh! to support expanded ed25519 keypairs.Gabriela Moldovan2023-09-261-5/+46
| | | |