| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | | | | | | tor-netdoc: Paramterise RelayFlagsParser for varying omitted/implied bits | Ian Jackson | 2025-11-18 | 1 | -5/+28 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | Which bits are implied/omitted depends on the document! | |||||
| * | | | | | | tor-netdoc: Introduce a RelayFlagsBits type alias | Ian Jackson | 2025-11-18 | 1 | -1/+4 | |
| | | | | | | | ||||||
| * | | | | | | tor-netdoc: Test RelayFlags coherence and encoding | Ian Jackson | 2025-11-18 | 1 | -0/+41 | |
| | | | | | | | ||||||
| * | | | | | | tor-netdoc: Provide for encoding RelayFlags | Ian Jackson | 2025-11-18 | 1 | -1/+22 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | The API is a bit clumsy, but we're mostly going to use it internally. | |||||
| * | | | | | | tor-netdoc: RelayFlags: add a macro for keyword parsing | Ian Jackson | 2025-11-18 | 1 | -19/+43 | |
| | | | | | | | ||||||
| * | | | | | | tor-netdoc: Rename RelayFlags elements for regularity vs spec | Ian Jackson | 2025-11-18 | 6 | -12/+12 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add underscores so that the spec keywords and the flag constants correspond (according to `paste`'s case-changing rules). | |||||
| * | | | | | | tor-netdoc: Improve docs for RelayFlags | Ian Jackson | 2025-11-18 | 1 | -1/+10 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Document the bizarre FromStr impl. That isn't in my way, so I don't intend to fix it. So I've documented it instead. * Mention the naming discrepancy. | |||||
| * | | | | | | tor-netdoc: Move RelayFlags into its own module | Ian Jackson | 2025-11-18 | 3 | -161/+185 | |
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | We're going to do a lot more with this and it's less confusing to have it all together. | |||||
| * | | | | | proto: Fix up doc links post-refactoring | Gabriela Moldovan | 2025-11-17 | 2 | -9/+9 | |
| | | | | | | ||||||
| * | | | | | proto: Temporarily silence a few warnings | Gabriela Moldovan | 2025-11-17 | 1 | -0/+3 | |
| | | | | | | ||||||
| * | | | | | proto: Use CircHopInbound in the ForwardReactor (fmt) | Gabriela Moldovan | 2025-11-17 | 3 | -6/+4 | |
| | | | | | | ||||||
| * | | | | | proto: Use CircHopInbound in the ForwardReactor | Gabriela Moldovan | 2025-11-17 | 2 | -19/+15 | |
| | | | | | | ||||||
| * | | | | | proto: Use CircHopOutbound in BackwardReactor | Gabriela Moldovan | 2025-11-17 | 2 | -34/+24 | |
| | | | | | | ||||||
| * | | | | | proto: Make cc state shared between CircHop{Inbound,Outbound} | Gabriela Moldovan | 2025-11-17 | 3 | -27/+30 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The relay reactor needs the cc state to be shared between the inbound and outbound components (i.e. the forward and backward reactors), so we need to put the cc state behind a mutex. There will never be any contention on this mutex in the client impl, because the client reactor doesn't split the `CircHop` into `CircHopInbound` and `CircHopOutbound`. In the future, we should work on trying to reduce the number of locks in the `CircHop` states. | |||||
| * | | | | | proto: Make CongestionWindow Copy | Gabriela Moldovan | 2025-11-17 | 3 | -8/+8 | |
| | | | | | | ||||||
| * | | | | | proto: Move CircHop{Inbound,Outbound} out of the client module. | Gabriela Moldovan | 2025-11-17 | 2 | -575/+599 | |
| | | | | | | | | | | | | | | | | | | | | | These will be soon used by relays too. | |||||
| * | | | | | proto: Add constructors for CircHop{Inbound,Outbound} | Gabriela Moldovan | 2025-11-17 | 1 | -19/+46 | |
| | | | | | | ||||||
| * | | | | | proto: Move some of CircHop's impl to CircHop{Inbound,Outbound} | Gabriela Moldovan | 2025-11-17 | 1 | -141/+340 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | The Inbound/Outbound CircHop states will be used in the relay reactor, so it's helpful to move some of the `CircHop` impl there. | |||||
| * | | | | | proto: Make the hop in SendRelayCell optional (fmt) | Gabriela Moldovan | 2025-11-17 | 1 | -1/+5 | |
| | | | | | | ||||||
| * | | | | | proto: Make the hop in SendRelayCell optional | Gabriela Moldovan | 2025-11-17 | 7 | -20/+22 | |
| | | | | | | ||||||
| * | | | | | proto: Update SendRelayCell docs | Gabriela Moldovan | 2025-11-17 | 1 | -2/+3 | |
| | | | | | | ||||||
| * | | | | | proto: Move SendRelayCell to circhop (fmt) | Gabriela Moldovan | 2025-11-17 | 4 | -5/+5 | |
| | | | | | | ||||||
| * | | | | | proto: Move SendRelayCell to circhop | Gabriela Moldovan | 2025-11-17 | 5 | -20/+23 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | This will be used by relays too, once we modify it to make the `HopNum` optional. | |||||
| * | | | | | proto: Split CircHop into inbound and outbound components (fmt) | Gabriela Moldovan | 2025-11-17 | 1 | -7/+13 | |
| | | | | | | ||||||
| * | | | | | proto: Split CircHop into inbound and outbound components | Gabriela Moldovan | 2025-11-17 | 1 | -52/+76 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unlike the client reactor, the relay reactor uses these components in separate tasks. Splitting `CircHop` this way enables us to reuse its parts instead of duplicating them in the relay impl. Eventually, I'd like us to rewrite the client reactor to follow a similar pattern. | |||||
| * | | | | | proto: Rename cell decoder field for clarity | Gabriela Moldovan | 2025-11-14 | 1 | -3/+3 | |
| | | | | | | ||||||
| * | | | | | proto: Avoid exposing stream map field (fmt) | Gabriela Moldovan | 2025-11-14 | 1 | -8/+11 | |
| | | | | | | ||||||
| * | | | | | proto: Avoid exposing stream map field | Gabriela Moldovan | 2025-11-14 | 1 | -3/+3 | |
| | | | | | | ||||||
| * | | | | | proto: Import StreamMap to reduce cognitive complexity | Gabriela Moldovan | 2025-11-14 | 1 | -6/+6 | |
| | | | | | | ||||||
| * | | | | | proto: Move CloseStreamBehavior to top-level stream module | Gabriela Moldovan | 2025-11-14 | 5 | -26/+29 | |
| | | | | | | ||||||
| * | | | | | proto: Remove extraneous backtick in CloseStreamBehavior docs | Gabriela Moldovan | 2025-11-14 | 1 | -1/+1 | |
| | |_|_|/ |/| | | | ||||||
| * | | | | http_connect: Add AsyncReadExt to fix compilation. | Nick Mathewson | 2025-11-13 | 1 | -2/+2 | |
| | | | | | ||||||
| * | | | | Merge branch 'opentelemetry-options-without-feature-warning' into 'main' | Nick Mathewson | 2025-11-13 | 1 | -1/+17 | |
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | arti: Warning when opentelemetry config is set but not build with feature Closes #2247 See merge request tpo/core/arti!3458 | |||||
| | * | | | | arti: Boyscout fix | nield | 2025-11-13 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | It seems this config is for tokio-console and not the RPC. | |||||
| | * | | | | arti: Warning when opentelemetry config is set but not build with feature | nield | 2025-11-13 | 1 | -0/+16 | |
| | | | | | | ||||||
| * | | | | | Merge branch 'http_xsprobe' into 'main' | Nick Mathewson | 2025-11-13 | 1 | -1/+142 | |
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Validate Host header for non-CONNECT requests to HTTP CONNECT port See merge request tpo/core/arti!3429 | |||||
| | * | | | | | http_connect: prevent tests from colliding on directories | Nick Mathewson | 2025-11-13 | 1 | -5/+16 | |
| | | | | | | | ||||||
| | * | | | | | http_connect: fix to conform to MSRV | Nick Mathewson | 2025-11-13 | 1 | -1/+1 | |
| | | | | | | | ||||||
| | * | | | | | http_connect: add a test for Host validation. | Nick Mathewson | 2025-11-13 | 1 | -0/+73 | |
| | | | | | | | ||||||
| | * | | | | | Validate Host header for non-CONNECT requests to HTTP CONNECT port | Nick Mathewson | 2025-11-03 | 1 | -1/+58 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This validation makes it harder for an adversarial webpage to probe for the version of arti and its capabilities. See torspec!437. | |||||
| * | | | | | | Merge branch 'x509-tls-cert' into 'main' | Nick Mathewson | 2025-11-13 | 2 | -40/+221 | |
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | x509: Support generating the keys and certs that relays need for TLS Closes #2205 See merge request tpo/core/arti!3349 | |||||
| | * | | | | | | tor-cert: x509 requires tor-llcrypto/rng-compat. | Nick Mathewson | 2025-11-12 | 1 | -1/+1 | |
| | | | | | | | | ||||||
| | * | | | | | | Rename TlsCertifiedKey to TlsKeyAndCert. | Nick Mathewson | 2025-11-12 | 1 | -4/+4 | |
| | | | | | | | | ||||||
| | * | | | | | | x509: Correct single instance of misnamed cert | Nick Mathewson | 2025-11-12 | 1 | -1/+1 | |
| | | | | | | | | ||||||
| | * | | | | | | x509: Support generating the keys and certs that relays need. | Nick Mathewson | 2025-11-12 | 2 | -9/+191 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Although we never need to actually check the signature on the other party's x509 certificate, A relay does need a certificate and a private key in order to be a proper TLS server. In this function, I've added support for making an ersatz P-256 certificate certifying a P-256 key. See the code for info about the rationale here. (Tor supports this, since it doesn't look at the key at all: only the TLS layer cares about that.) native_tls and rustls expect to get their keys and certs in different forms, so this code provides them. (Note that we don't expect to use native_tls with relays in the first place, but it might be useful for lower-level interop testing.) Closes #2205. | |||||
| | * | | | | | | x509: Extract serial-number generation into its own function. | Nick Mathewson | 2025-11-12 | 1 | -6/+9 | |
| | | | | | | | | ||||||
| | * | | | | | | x509: Fix an unfinished comment. | Nick Mathewson | 2025-11-12 | 1 | -1/+1 | |
| | | | | | | | | ||||||
| | * | | | | | | x509: refactor lifetime calculation | Nick Mathewson | 2025-11-12 | 1 | -27/+23 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This doesn't give precisely the same results as before for leap years, but that should be okay. | |||||
| * | | | | | | | Merge branch 'config-error' into 'main' | opara | 2025-11-13 | 3 | -13/+30 | |
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | retry-error: Stop trying to dedup error messages See merge request tpo/core/arti!3465 | |||||
| | * | | | | | | | tor-config: fix error source for `ConfigLoadError` | Steven Engler | 2025-11-13 | 1 | -1/+7 | |
| | | | | | | | | | ||||||
