summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Add downgrade-dependencies exceptions to make tor-proto build right.Nick Mathewson2023-10-121-1/+3
| | |
| * | proto::stream::incoming: Use bit-array representation for command listNick Mathewson2023-10-123-7/+125
| | | | | | | | | | | | | | | This should be smaller and faster than vec, and save some allocations. It could also avoid a tiny sidechannel.
| * | tor-proto: remove a now-unneeded allow in stream::incomingNick Mathewson2023-10-121-2/+0
| | |
| * | hss: use Arc to avoid copying on k_hss_ntor.Nick Mathewson2023-10-123-15/+8
| | | | | | | | | | | | (We try to avoid making tons and tons of copies of a secret key.)
| * | Remove the (fairly bogus) HsNtorServiceInput type.Nick Mathewson2023-10-125-103/+66
| | | | | | | | | | | | This will let avoid some copying inside our HSS code.
| * | proto: Remove a TODO about merging two functions.Nick Mathewson2023-10-121-2/+0
| | | | | | | | | | | | | | | There is some similarity, but there's not really a logical way to combine the two that actually results in less, clearer code.
| * | Lower and downgrade a TODO about StreamID and NonZeroU16.Nick Mathewson2023-10-122-2/+6
| | |
* | | Merge branch 'proto' into 'main'Alexander Færøy2023-10-121-0/+2
|\ \ \ | |/ / |/| | | | | | | | tor-proto: Add a FIXME about an allow See merge request tpo/core/arti!1657
| * | tor-proto: Add a FIXME about an allowIan Jackson2023-10-121-0/+2
|/ /
* | Merge branch 'bug1051' into 'main'gabi-2502023-10-113-4/+188
|\ \ | | | | | | | | | | | | Implement build_auth_clients() See merge request tpo/core/arti!1642
| * | Implement build_auth_clients()Neel Chauhan2023-10-113-4/+188
| | |
* | | Merge branch 'oneshot' into 'main'Nick Mathewson2023-10-1138-44/+117
|\ \ \ | |/ / |/| | | | | | | | | | | | | | Provide and mandate Fuse type veneer around oneshot Closes #1059 See merge request tpo/core/arti!1656
| * | oneshot: Apply deferred rustfmt churnIan Jackson2023-10-1117-28/+21
| | | | | | | | | | | | cargo fmt, precisely.
| * | oneshot: Deprecate futures::channel::oneshotIan Jackson2023-10-111-0/+5
| | |
| * | oneshot: Use veneer in arti-rpcserverIan Jackson2023-10-111-1/+2
| | |
| * | oneshot: Use veneer in tor-hsrproxyIan Jackson2023-10-113-1/+4
| | |
| * | oneshot: Use veneer in tor-dirmgrIan Jackson2023-10-114-2/+5
| | |
| * | oneshot: Use veneer in tor-hsclientIan Jackson2023-10-112-2/+2
| | |
| * | oneshot: Use veneer in tor-hsserviceIan Jackson2023-10-115-6/+7
| | |
| * | oneshot: Use veneer in tor-circmgrIan Jackson2023-10-115-5/+8
| | |
| * | oneshot: Use veneer in tor-ptmgrIan Jackson2023-10-114-2/+7
| | |
| * | oneshot: Use veneer in tor-guardmgrIan Jackson2023-10-114-2/+5
| | |
| * | oneshot: Use veneer in tor-chanmgrIan Jackson2023-10-113-1/+3
| | |
| * | oneshot: Use veneer in tor-protoIan Jackson2023-10-116-9/+15
| | |
| * | oneshot: Use veneer in tor-rtmockIan Jackson2023-10-114-2/+4
| | |
| * | oneshot: Avoid (one) use of .try_recv()Ian Jackson2023-10-111-2/+4
| | | | | | | | | | | | | | | | | | It's not so straightforward to provide this (we'd need to poll the FusedFuture and make a dummy a Context and so on), but this is just used once in a test where we can replace it with use of `poll!`
| * | oneshot: Introduce veneer in tor_rtcompatIan Jackson2023-10-112-0/+44
|/ /
* | Merge branch 'configure_onion_service_part2' into 'main'Nick Mathewson2023-10-115-32/+206
|\ \ | | | | | | | | | | | | Non-working attempt to test onion service configuration. See merge request tpo/core/arti!1640
| * | Use a less obtrustive sign to end the onion services config sectionNick Mathewson2023-10-112-7/+5
| | |
| * | Improve test fn documentation even more.Ian Jackson2023-10-101-2/+2
| | |
| * | arti::cfg: tweak narrow() test fn to be more useful.Nick Mathewson2023-10-102-13/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | It still matches the start pattern in the same way, but it takes the _next_ match of the end pattern after the start pattern, and it allows the end pattern to be absent. This will make the bridge tests a little more robust, and let the onion service tests stop saying BEGIN and END.
| * | hsrproxy: Temporarily change the format of ProxyRule.Nick Mathewson2023-10-102-11/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | Since config-rs has a bug breaking its support for nested arrays (see discussion at !1640), we're temporarily changing the format to a single string with a "=>" in the middle. I've opened #1058 to put things back as they were once config-rs is fixed.
| * | Non-working attempt to test onion service configuration.Nick Mathewson2023-10-035-23/+107
| | | | | | | | | | | | | | | | | | | | | The problem here is that, for some reason, the proxy_rule configuration doesn't actually work. I suspect a bug in Flatten, since the same configuration works fine if you pass it to the hsrproxy config directly.
| * | arti: Try to document some test helpers.Nick Mathewson2023-10-031-1/+18
| | |
* | | Merge branch 'seal' into 'main'Nick Mathewson2023-10-102-1/+10
|\ \ \ | | | | | | | | | | | | | | | | tor-basic-utils: Seal IoErrorExt See merge request tpo/core/arti!1654
| * | | tor-basic-utils: Seal IoErrorExtIan Jackson2023-10-102-1/+10
|/ / /
* | | Merge branch 'keygen' into 'main'gabi-2502023-10-095-57/+508
|\ \ \ | | | | | | | | | | | | | | | | tor-hsservice: Make OnionService auto-generate the hs_id, if it's missing. See merge request tpo/core/arti!1649
| * | | tor-hsservice: Add tests for maybe_generate_hsid.Gabriela Moldovan2023-10-091-0/+189
| | | |
| * | | tor-hsservice: Move hsid generation to a separate function.Gabriela Moldovan2023-10-091-59/+71
| | | |
| * | | tor-keymgr: Make generate_with_derived validate any existing key pairs.Gabriela Moldovan2023-10-091-4/+40
| | | |
| * | | tor-hsservice: Make OnionServices auto-generate the hs_id, if it's missing.Gabriela Moldovan2023-10-092-0/+89
| | | |
| * | | tor-keymgr: Add KeyMgr::generate_with_derived for generating keypairs.Gabriela Moldovan2023-10-091-6/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When generating a keypair, `KeyMgr::generate` inserts a single entry representing the keypair into the keystore. However, for some keypairs, the keystore will need contain a separate entry containing just the public part of the keypair. This commit introduces `KeyMgr::generate_with_derived`, which generates 2 entries in the specified keystore: one for the keypair and another for the public key, which makes it easier to insert keypairs and their corresponding public keys into the keystore without to fall out of sync. Previously, generating a (public, private) keypair involved generating a new keypair with `KeyMgr::generate` and manually inserting the corresponding public key entry.
| * | | tor-keymgr: Factor the generate() function into a separate trait.Gabriela Moldovan2023-10-093-51/+52
|/ / / | | | | | | | | | | | | | | | `EncodableKey` is a trait for encoding keypairs and public keys. Keygen only makes sense for key_pairs_ (it doesn't make sense for public keys), so it makes sense to move `generate()` out of `EncodableKey`,
* | | Merge branch 'reconfig_onions' into 'main'gabi-2502023-10-094-4/+61
|\ \ \ | | | | | | | | | | | | | | | | Implement reconfigure functions for hsservice and hsrproxy See merge request tpo/core/arti!1651
| * | | Note reconfigure limitations.Nick Mathewson2023-10-052-0/+8
| | | |
| * | | hss: Implement a reconfigure function.Nick Mathewson2023-10-052-3/+43
| | | |
| * | | hsrproxy: Add "how" to reconfigure.Nick Mathewson2023-10-052-1/+10
| | | | | | | | | | | | | | | | Our reconfigure methods take these by convention.
* | | | Merge branch 'main' into 'main'Nick Mathewson2023-10-071-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Update Onion Support command See merge request tpo/core/arti!1653
| * | | | update Onion Support commandLowLandMink5432023-10-071-1/+1
|/ / / /
* | | | Merge branch 'new-mock-time-3' into 'main'Nick Mathewson2023-10-052-5/+109
|\ \ \ \ | |/ / / |/| | | | | | | | | | | tor-rtmock: Docs updates (and an API fix) See merge request tpo/core/arti!1650