| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | | Merge branch 'exit-selection-mainlineable' into 'main' | eta | 2023-09-18 | 14 | -12/+244 | |
| |\ \ | | | | | | | | | | | | | arti-client: add exit selection with GeoIP country codes See merge request tpo/core/arti!1537 | |||||
| | * | | arti-client: add exit selection with GeoIP country codes | eta | 2023-09-18 | 14 | -12/+244 | |
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This threads the country codes work through the rest of the codebase: - `tor-dirmgr` will now enable GeoIP with the embedded database when the `geoip` future is enabled - This can be extended later using the `DirMgrConfig` to allow specifying a custom database; this is not done here, though - `tor-circmgr`'s `SupportedCircUsage` and `TargetCircUsage` fields gain new `country_code` members to allow filtering circuits by country - These are `()` in builds where the `geoip` feature is not enabled -- doing it this way means we don't have to copy and paste huge swathes of code, since we can't use `#[cfg]` in patterns - `ExitPathBuilder` gains (hacked-in) support for choosing a relay with the correct country code - Due to the lack of conjuction, we just copy and paste a small bit, pending further refactoring - `StreamPrefs` now lets you specify a country code, letting embedders make use of the feature | |||||
| * | | Merge branch 'ipt-set-2' into 'main' | Ian Jackson | 2023-09-18 | 4 | -44/+285 | |
| |\ \ | |/ |/| | | | | | tor-hsservice: Implement ipt_set See merge request tpo/core/arti!1577 | |||||
| | * | tor-hsservice: ipt_set: Add some tests | Ian Jackson | 2023-09-18 | 2 | -0/+118 | |
| | | | ||||||
| | * | tor-netdoc: "testing" feature: Provide test_parsed_hsdesc | Ian Jackson | 2023-09-18 | 1 | -12/+20 | |
| | | | | | | | | | | | | | This is actually just the start of an existing test case. tor-hsservice tests will want this in a moment. | |||||
| | * | tor-netdoc: tests: Hoist out TEST_DATA_HS_BLIND_ID (fmt) | Ian Jackson | 2023-09-18 | 1 | -4/+1 | |
| | | | ||||||
| | * | tor-netdoc: tests: Hoist out TEST_DATA_HS_BLIND_ID | Ian Jackson | 2023-09-18 | 1 | -3/+9 | |
| | | | ||||||
| | * | tor-hsservice: ipt_set: note_publication_attempt: fmt bodge | Ian Jackson | 2023-09-18 | 1 | -0/+1 | |
| | | | | | | | | | Defend against rustfmt worsifying this by adding an empty comment. | |||||
| | * | tor-hsservice: ipt_set: note_publication_attempt: rename | Ian Jackson | 2023-09-18 | 1 | -3/+3 | |
| | | | | | | | | | | | | | From ..._start. The old name is confusing when you see a call site, because the actual time passed isn't the start time, but the call site looks like it ought to be. | |||||
| | * | tor-hsservice: ipt_set: note_publication_attempt_start: implement | Ian Jackson | 2023-09-18 | 1 | -2/+28 | |
| | | | | | | | | | This gains an almost impossible error case. | |||||
| | * | tor-hsservice: ipt_set: principal implementation | Ian Jackson | 2023-09-18 | 1 | -14/+91 | |
| | | | ||||||
| | * | tor-hsservice: ipt_set: make await_update take &mut self | Ian Jackson | 2023-09-18 | 1 | -1/+1 | |
| | | | | | | | | | This is needed since the notification channel will be an mpsc. | |||||
| | * | tor-hsservice: Add a block to run_once | Ian Jackson | 2023-09-18 | 1 | -9/+16 | |
| | | | ||||||
| | * | tor-hsservice: Make IptSet be Debug | Ian Jackson | 2023-09-18 | 1 | -0/+1 | |
| | | | ||||||
| * | | Merge branch 'make_hss_ntor_key' into 'main' | Nick Mathewson | 2023-09-18 | 3 | -23/+43 | |
| |\ \ | |/ |/| | | | | | | | | | Define a keypair type for HsSvcNtor{,Secret}Key, and use it in ipt_mgr. Closes #1030 See merge request tpo/core/arti!1590 | |||||
| | * | Add a note about how the K_hss_ntor is passed. | Nick Mathewson | 2023-09-17 | 1 | -0/+4 | |
| | | | ||||||
| | * | ipt_mgr: use HsSvcNtorKeypair. | Nick Mathewson | 2023-09-17 | 1 | -23/+4 | |
| | | | | | | | | | Closes #1030. | |||||
| | * | hscrypto: Define a keypair type for HsSvcNtor{,Secret}Key | Nick Mathewson | 2023-09-17 | 2 | -0/+35 | |
| | | | | | | | | | | | (Also, extend our macro so that we can wrap other curve25519 keys in this way, if we want.) | |||||
| * | | Merge branch 'desc-publisher-retries' into 'main' | gabi-250 | 2023-09-14 | 3 | -56/+587 | |
| |\ \ | | | | | | | | | | | | | tor-hsservice: Implement upload_descriptor_with_retries. See merge request tpo/core/arti!1592 | |||||
| | * | | tor-hsservice: Use Either to simplify timeout logic (fmt). | Gabriela Moldovan | 2023-09-13 | 1 | -1/+2 | |
| | | | | ||||||
| | * | | tor-hsservice: Use Either to simplify timeout logic. | Gabriela Moldovan | 2023-09-13 | 1 | -48/+16 | |
| | | | | | | | | | | | | | | | | | | | We don't really need a separate task for handling timeouts, we can just create an `Either` future (one of the variants represents the timeout future, while the other is the forever pending, "no timeout" option). | |||||
| | * | | tor-hsservice: Remove extraneous whitespace. | Gabriela Moldovan | 2023-09-13 | 1 | -1/+1 | |
| | | | | ||||||
| | * | | tor-hsservice: Use warn_report! instead of error!. | Gabriela Moldovan | 2023-09-13 | 1 | -4/+6 | |
| | | | | ||||||
| | * | | tor-hsservice: Add more details to the backoff runner docs. | Nick Mathewson | 2023-09-13 | 1 | -0/+4 | |
| | | | | ||||||
| | * | | tor-hsservice: Implement upload_descriptor_with_retries. | Gabriela Moldovan | 2023-09-13 | 1 | -7/+43 | |
| | | | | ||||||
| | * | | tor-hsservice: Share the immutable reactor state with ↵ | Gabriela Moldovan | 2023-09-13 | 1 | -1/+8 | |
| | | | | | | | | | | | | | upload_descriptor_with_retries. | |||||
| | * | | tor-hsservice: Put the shared reactor state in a new struct. | Gabriela Moldovan | 2023-09-13 | 1 | -29/+40 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This state will be shared with the task spawned by `Reactor::upload_descriptor_with_retries()`. We need this refactoring because `upload_with_descriptor_with_retries` is not a `&self` method but requires several fields from `Reactor` (currently just `runtime`, `mockable`, `hsid`). | |||||
| | * | | tor-hsservice: Implement a BackoffSchedule for the descriptor publisher. | Gabriela Moldovan | 2023-09-13 | 1 | -0/+35 | |
| | | | | ||||||
| | * | | tor-hsservice: Split UploadError out of ReactorError. | Gabriela Moldovan | 2023-09-13 | 1 | -9/+36 | |
| | | | | ||||||
| | * | | tor-hsservice: Remove stray must_use. | Gabriela Moldovan | 2023-09-13 | 1 | -1/+0 | |
| | | | | ||||||
| | * | | tor-hsservice: Remove unused type parameter. | Gabriela Moldovan | 2023-09-13 | 1 | -4/+4 | |
| | | | | ||||||
| | * | | tor-hsservice: Introduce helpers for implementing a backoff schedule. | Gabriela Moldovan | 2023-09-13 | 2 | -0/+424 | |
| | | | | ||||||
| | * | | tor-hsservice: Log an error! if the descriptor upload fails (fmt). | Gabriela Moldovan | 2023-09-13 | 1 | -2/+1 | |
| | | | | ||||||
| | * | | tor-hsservice: Log an error! if the descriptor upload fails. | Gabriela Moldovan | 2023-09-13 | 1 | -6/+24 | |
| | | | | ||||||
| | * | | tor-hsservice: Make Reactor::upload_descriptor take a netdir reference. | Gabriela Moldovan | 2023-09-13 | 1 | -2/+2 | |
| | | | | ||||||
| * | | | Merge branch 'pt-server-redux' into 'main' | Ian Jackson | 2023-09-14 | 3 | -143/+165 | |
| |\ \ \ | | | | | | | | | | | | | | | | | tor-ptmgr: refactor Pluggable Transport code See merge request tpo/core/arti!1581 | |||||
| | * | | | Add semver.md to document error renaming | Saksham Mittal | 2023-09-14 | 1 | -0/+1 | |
| | | | | | ||||||
| | * | | | Resolve ClientTransportLaunched and ServerTransportLaunched in different arms | Saksham Mittal | 2023-09-13 | 1 | -24/+26 | |
| | | | | | ||||||
| | * | | | Rename ClientTransportGaveError to TransportGaveError | Saksham Mittal | 2023-09-13 | 2 | -4/+4 | |
| | | | | | ||||||
| | * | | | Deduplicate ClientTransportLaunched and ServerTransportLaunched | Saksham Mittal | 2023-09-11 | 1 | -106/+135 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note: this isn't perfect, though it moves both match arms to try_match_common_messages, it does end up resolving them separately using a helper function, and also necessitated creating another function in the PluggableTransportPrivate trait | |||||
| | * | | | Deduplicate ClientTransportFailed and ServerTransportFailed | Saksham Mittal | 2023-09-11 | 1 | -22/+11 | |
| | | | | | ||||||
| | * | | | Import sealed module to avoid syntactic vinegar | Saksham Mittal | 2023-09-11 | 1 | -14/+15 | |
| | | | | | ||||||
| * | | | | Merge branch 'desc-publisher-uploads' into 'main' | Ian Jackson | 2023-09-14 | 4 | -102/+329 | |
| |\ \ \ \ | | |/ / | |/| | | | | | | | | | | tor-hsservice: Don't block the reactor on the descriptor uploads. See merge request tpo/core/arti!1580 | |||||
| | * | | | tor-hsservice: Add some TODOs for the publisher. | Gabriela Moldovan | 2023-09-12 | 1 | -0/+17 | |
| | | | | | ||||||
| | * | | | tor-hsservice: Set the size for the upload_task_complete channel to 0. | Gabriela Moldovan | 2023-09-12 | 1 | -3/+5 | |
| | | | | | ||||||
| | * | | | tor-hsservice: Use mpsc channels instead of async-broadcast (fmt). | Gabriela Moldovan | 2023-09-12 | 1 | -15/+19 | |
| | | | | | ||||||
| | * | | | tor-hsservice: Use mpsc channels instead of async-broadcast. | Gabriela Moldovan | 2023-09-12 | 3 | -31/+39 | |
| | | | | | ||||||
| | * | | | tor-hsservice: Make schedule_pending_upload take &mut self. | Gabriela Moldovan | 2023-09-12 | 1 | -16/+18 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | We're going to need this when we switch from async-broadcast channels to mpsc channels, because the sending/receiving from the channel will require mutably borrowing the senders/receivers. | |||||
| | * | | | tor-hsservice: Require Mockable to impl Clone. | Gabriela Moldovan | 2023-09-12 | 1 | -1/+2 | |
| | | | | | ||||||
| | * | | | tor-hsservice: Reformat handle_upload_results docs. | Gabriela Moldovan | 2023-09-12 | 1 | -1/+2 | |
| | | | | | ||||||
