summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge branch 'resume' into 'main'opara2026-02-242-2/+17
|\ \ | | | | | | | | | | | | tor-rtcompat: Disable rustls session resumption See merge request tpo/core/arti!3710
| * | tor-rtcompat: disable rustls session resumptionSteven Engler2026-02-242-2/+17
| | |
* | | Merge branch 'rtcompat-unfold-2070' into 'main'opara2026-02-242-88/+20
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | rtcompat: simplify async-std and smol incoming streams with unfold Closes #2070 See merge request tpo/core/arti!3705
| * | | tor-rtcompat: unfold for smol incoming streamsmoumenalaoui2026-02-191-41/+11
| | | |
| * | | tor-rtcompat: unfold for async-std incoming streamsmoumenalaoui2026-02-191-47/+9
| | | |
* | | | Merge branch 'err-msgs' into 'main'David Goulet2026-02-242-8/+15
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | arti-relay: Improve error/warning messages See merge request tpo/core/arti!3711
| * | | | arti-relay: fix stale commentSteven Engler2026-02-231-1/+1
| | | | | | | | | | | | | | | | | | | | This method was renamed previously.
| * | | | arti-relay: add more error contextSteven Engler2026-02-231-6/+12
| | | | |
| * | | | arti-relay: don't warn if key gen was successfulSteven Engler2026-02-231-1/+2
| | | | |
* | | | | tor-config: future-proof #[cfg] attribute.Nick Mathewson2026-02-241-17/+17
| | | | |
* | | | | arti: Fix some visibility-based compilation errors.Nick Mathewson2026-02-242-6/+10
| | | | |
* | | | | arti: Migrate top-level configuration to dd(TorConfig).Nick Mathewson2026-02-244-144/+83
| | | | |
* | | | | arti: Port rpc configuration to dd(TorConfig).Nick Mathewson2026-02-243-74/+74
| | | | |
* | | | | tor-config: Add an option to reject configured-out optionsNick Mathewson2026-02-241-6/+55
| | | | |
* | | | | tor-config: Have macros document more types and fnsNick Mathewson2026-02-242-0/+3
| | | | |
* | | | | arti: Port logging config to dd(TorConfig)Nick Mathewson2026-02-242-132/+71
| | | | |
* | | | | tor-config: Fix cfg() on sub_buildersNick Mathewson2026-02-241-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | Previously, it used the sub_builder rule, which doesn't make sense when the value is a stub place-holder to tell us whether to warn.
* | | | | tor-relay: convert to derive_deftly(TorConfig)Nick Mathewson2026-02-242-56/+44
| | | | |
* | | | | arti-client: Convert config to derive_deftly(TorConfig).Nick Mathewson2026-02-241-115/+94
| | | | | | | | | | | | | | | | | | | | | | | | | (There are a few places where we still do things in nonstandard places to avoid API breakage.)
* | | | | memquota: Implement ExtendBuilder for config builder.Nick Mathewson2026-02-241-0/+13
| | | | |
* | | | | keymgr: Port to derive_deftly(TorConfig)Nick Mathewson2026-02-241-44/+33
|/ / / / | | | | | | | | | | | | | | | | As with previous modules, I've left some thing less conformant with our "standard" APIs in order to keep backward compat (for now).
* | | | relay-crypto: Move comments above [derive] to be consistent accross codebaseDavid Goulet2026-02-231-7/+7
| | | | | | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | | | relay: Setup const for hardcoded value in crypto taskDavid Goulet2026-02-231-8/+13
| | | | | | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | | | relay: Log when key generation yields an existing key errorDavid Goulet2026-02-231-1/+4
| | | | | | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | | | relay: Simplify the crypto rotation task rotate_key()David Goulet2026-02-231-17/+11
| | | | | | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | | | relay: Get rid of start_task() for readabilityDavid Goulet2026-02-232-22/+10
| | | | | | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | | | relay: Generate relay identities at initDavid Goulet2026-02-232-7/+17
| | | | | | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | | | relay: Implement a helper to build RelayIdentitiesDavid Goulet2026-02-233-7/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This required to add a slight helper to our tor-key-forge RSA key d-d macro to access the inner keypair. This avoids a clone. Signed-off-by: David Goulet <[email protected]>
* | | | relay-crypto: Fix the gen relay signing keypair typoDavid Goulet2026-02-231-3/+3
| | | | | | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | | | proto: Modify RelayIdentities to have encodable certDavid Goulet2026-02-232-14/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit also adds the TlsKeyAndCert to the identities so the TLS acceptor can set it up. Signed-off-by: David Goulet <[email protected]>
* | | | relay-crypto: Add gen_tls_cert() helper functionDavid Goulet2026-02-232-1/+18
| | | | | | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | | | relay: Remove unused ephemeral keystoreDavid Goulet2026-02-231-5/+1
| | | | | | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | | | relay: Move try_generate_keys() into crypto taskDavid Goulet2026-02-232-39/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Move rotating keys into a function so we can use it in try_generate_keys() that is used at startup. Signed-off-by: David Goulet <[email protected]>
* | | | relay: Add a crypto task for key rotationDavid Goulet2026-02-233-1/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This task crypto module has a rotate key task that is in charge of rotating keys from our KeyMgr based on the valid until. To do so, we add a RotatableKeySpec trait to help us specify our to rotate a specific key. Allows us to have a generic rotate/generate function for all our keys. Task runs every 60 seconds. Taken from C-tor. Signed-off-by: David Goulet <[email protected]>
* | | | relay-crypto: Add missing helper functionsDavid Goulet2026-02-231-0/+13
| | | | | | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | | | relay-crypto: Add link signing key specifierDavid Goulet2026-02-231-0/+32
| |/ / |/| | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | | Merge branch 'config-migrate-part1' into 'main'gabi-2502026-02-2017-217/+166
|\ \ \ | |/ / |/| | | | | | | | Port several crates to derive_deftly(TorConfig) See merge request tpo/core/arti!3691
| * | hsservice: Port to use derive_deftly(TorConfig)Nick Mathewson2026-02-173-31/+46
| | | | | | | | | | | | | | | Some of the behaviors of the existing types here are nonstandard; I've kept them and documented them, to avoid breaking compatibility.
| * | tor-config: fix and improve ExtendBuilder override.Nick Mathewson2026-02-172-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | 1. When we are told to `extend_with`, we should obey that directive even if we have a sub_builder etc. 2. Provide an `extend_with_replace` function for the common case where we want to just replace one object with another.
| * | tor-config: derive list builders with the visibility of their setters.Nick Mathewson2026-02-171-1/+1
| | |
| * | tor-hsrproxy: migrate to derive_deftly(TorConfig)Nick Mathewson2026-02-172-29/+7
| | |
| * | ptmgr: Migrate to derive_deftly(TorConfig)Nick Mathewson2026-02-172-12/+12
| | |
| * | chanmgr: migrate to derive_deftly(TorConfig)Nick Mathewson2026-02-172-14/+14
| | |
| * | dircommon: Port to use derive_deftly(TorConfig)Nick Mathewson2026-02-175-120/+66
| | | | | | | | | | | | | | | Some of the behaviors of the existing types here are nonstandard; I've kept them and documented them, to avoid breaking compatibility.
| * | guardmgr: Migrate config to derive_deftly.Nick Mathewson2026-02-171-7/+5
| | |
* | | proto: Filter the IP address in the channel's OwnedChanTargetDavid Goulet2026-02-191-23/+35
| | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | | proto: Reuse the RelayIds builder during the handshakeDavid Goulet2026-02-191-18/+11
| | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | | proto: Pass PeerAddr at the channel handshake finish for initiatorsDavid Goulet2026-02-198-72/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Responder relay handshake requires the peer address at the very start as it sends its NETINFO right away. For initiators, we only need it during the finalization process which is when the NETINFO is sent and the Channel is created. Signed-off-by: David Goulet <[email protected]>
* | | chanmgr: Add a TODO() for logging PeerAddr instaed of ChanTargetDavid Goulet2026-02-191-0/+4
| | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
* | | chanmgr: Fix channel builder commentDavid Goulet2026-02-191-6/+1
| | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>