summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | tor-hsclient: Expire old IPT dataIan Jackson2023-06-231-0/+9
| |/ / | | | | | | | | | | | | | | | | | | | | | If we don't use it for a whole, the whole of `Data` will be expired by the new machinery in !1290. However, we also need to expire individual IPTs. This bug doesn't seem to have had a relevant TODO.
* | | Merge commit '3105f99a'.Nick Mathewson2023-06-232-6/+8
|\ \ \ | | | | | | | | | | | | (This is !1294, minus a redundant merge.)
| * | | Corrected the order of imports in order to make the 'rust-checks' job ↵Andy2023-06-231-1/+1
| | | | | | | | | | | | | | | | complete successfully.
| * | | Provided a fix for #831 - 'Unused import' warnings on WindowsAndy2023-06-232-6/+8
| | |/ | |/|
* | | Merge branch 'expire' into 'main'Ian Jackson2023-06-233-21/+215
|\ \ \ | |/ / |/| | | | | | | | tor-hsclient: Expire circuits when they get too old See merge request tpo/core/arti!1287
| * | tor-hsclient: Add a note about circuit expiry uncertainty, ticketIan Jackson2023-06-221-0/+3
| | |
| * | tor-hsclient: Expand explanation of `last_used` (for Open)Ian Jackson2023-06-221-1/+20
| | |
| * | tor-hsclient: Make comment about circuit expiry more accurateNick Mathewson2023-06-221-1/+2
| | |
| * | tor-hsclient: linkify a URL in a doc commentIan Jackson2023-06-221-1/+1
| | |
| * | tor-hsclient: Apply broken formatting as demanded by rustfmtIan Jackson2023-06-221-1/+1
| | |
| * | tor-hsclient: Test circuit expiryIan Jackson2023-06-221-1/+46
| | |
| * | tor-hsclient: Expire HS circuits that we don't want to reuseIan Jackson2023-06-221-4/+128
| | |
| * | tor-hsclient: Introduce helper function for locking services tableIan Jackson2023-06-222-14/+17
| | |
| * | tor-hsclient: Abolish an obsolete commentIan Jackson2023-06-221-1/+0
| |/ | | | | | | | | | | We don't now handle inability to store by panicking. Like the previous comment says, such situations end up with Err in stored, and that's handled by logging, below.
* | Merge branch 'desc-error' into 'main'Nick Mathewson2023-06-228-129/+141
|\ \ | | | | | | | | | | | | Clean up HsDesc error types and stabilize onion-service ErrorKinds See merge request tpo/core/arti!1289
| * | hsdescerror: Add paragraph breaks to docs.Nick Mathewson2023-06-221-3/+11
| | |
| * | netdoc: Use a dev-dependency on anyhow to fix a doc exampleNick Mathewson2023-06-222-1/+2
| | |
| * | tor-error: Stabilize OnionService error kindsNick Mathewson2023-06-221-7/+0
| | |
| * | tor-error: typo fix in a comment.Nick Mathewson2023-06-221-1/+1
| | |
| * | Remove onion service descriptor-related errorkinds.Nick Mathewson2023-06-223-52/+2
| | | | | | | | | | | | | | | | | | | | | | | | These have been subsumed by other errorkinds, mostly OnionServiceProtocolViolation and TorProtocolViolation. In particular please review the change in tor-hsclient closely; I am not sure about the new errorkinds for the error there.
| * | netdoc: Introduce HsDescErrorNick Mathewson2023-06-225-68/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For higher-level HsDesc-related functions, this type indicates where exactly an error occurred. It lets us distinguish decryption errors from parsing errors, and attribute responsibility to the hsdir, the onion service, or the user's lack of encryption. This lets us remove some just-introduced complexity in tor-hsclient.
* | | Merge branch 'circmgr-timeout-est' into 'main'Nick Mathewson2023-06-224-7/+35
|\ \ \ | | | | | | | | | | | | | | | | circmgr: New API to expose estimate-based timeouts. See merge request tpo/core/arti!1281
| * | | circmgr: Now that Action is public, clean it up a little.Nick Mathewson2023-06-221-3/+2
| | | |
| * | | circmgr: New API to expose estimate-based timeouts.Nick Mathewson2023-06-224-4/+33
| | | | | | | | | | | | | | | | | | | | This will help create good timeout values for various onion-service operations.
* | | | Merge branch 'move-dummy-keymgr-impl' into 'main'gabi-2502023-06-2213-146/+159
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | keymgr: Move dummy keymgr impl from arti-client to tor-keymgr See merge request tpo/core/arti!1269
| * | | | keymgr: Remove blank line to satisfy maint/cargo_sort.Gabriela Moldovan2023-06-221-1/+0
| | | | |
| * | | | keymgr: Make the dummy types non_exhaustive.Gabriela Moldovan2023-06-221-0/+3
| | | | |
| * | | | keymgr: Add a TODO regarding missing dummy impls.Gabriela Moldovan2023-06-221-1/+3
| | | | |
| * | | | keymgr: Update outdated docs.Gabriela Moldovan2023-06-221-23/+10
| | | | |
| * | | | keymgr: Remove outdated TODOs.Gabriela Moldovan2023-06-221-9/+0
| | | | |
| * | | | keymgr: Remove unnecessary dummy types.Gabriela Moldovan2023-06-222-19/+4
| | | | | | | | | | | | | | | | | | | | We don't need dummy impls for `Error` and `Result`.
| * | | | keymgr: Move dummy implementation to tor-keymgr.Gabriela Moldovan2023-06-2210-39/+58
| | | | |
| * | | | arti-client: Make all dummy APIs pub.Gabriela Moldovan2023-06-221-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | | `dummy.rs` will be moved to `tor-keymgr`, which will export everything from the module.
| * | | | arti-client: Add a dummy KeyType.Gabriela Moldovan2023-06-221-0/+3
| | | | |
| * | | | keymgr: Remove unnecessary pub(crate).Gabriela Moldovan2023-06-221-5/+5
| | | | |
| * | | | keymgr: Define a `keymgr` feature.Gabriela Moldovan2023-06-222-0/+22
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | The dummy key manager impl from `arti-client` will be moved to `tor-keymgr` soon. This commit adds a `keymgr` feature flag to `tor-keymgr` which will eventually be used to choose between the real key manager API and the dummy one.
* | | | Merge branch 'proto-better-path' into 'main'Nick Mathewson2023-06-224-86/+218
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Better API for getting circuit paths Closes #787 See merge request tpo/core/arti!1286
| * | | | hspool: Use let-else pattern; our MSRV permits it.Nick Mathewson2023-06-221-6/+2
| | | | |
| * | | | proto: Resolve/downgrade some path-related "TODO HS" itemsNick Mathewson2023-06-222-4/+6
| | | | |
| * | | | proto: Implement Redactable and Display for PathEntry.Nick Mathewson2023-06-221-0/+23
| | | | |
| * | | | circmgr: Use path_ref() instead of path().Nick Mathewson2023-06-221-24/+45
| | | | |
| * | | | proto: Add ClientCirc::path_ref(), deprecate path().Nick Mathewson2023-06-221-13/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new path_ref() method returns an Arc<Path>, which gives a much better API for reasons discussed in the new documentation of path(). (We could just replace path() if we'd prefer, but IMO having path_ref() here isn't so bad.)
| * | | | proto: Make Path and PathEntry at least minimally usefulNick Mathewson2023-06-221-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | (I'm not 100% sure about having both hops() and iter(). Should I remove one?)
| * | | | proto: Expose an opaque PathEntry.Nick Mathewson2023-06-223-20/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new PathEntry struct wraps the old PathEntry enum, which has been renamed to HopDetail. It's an opaque struct because we want to be able to put new information in the enum as we think best.
| * | | | proto: Make Path publicNick Mathewson2023-06-222-4/+9
| | | | | | | | | | | | | | | | | | | | (You can't get one yet or do much with it.)
| * | | | proto: Remove Mutex from Path.Nick Mathewson2023-06-223-17/+13
| | | | | | | | | | | | | | | | | | | | | | | | | Now Path is a regular struct with no interior mutability, and we use Arc::make_mut() for the case when we need to add a hop.
| * | | | proto: Move Path into a separate shared mutable structureNick Mathewson2023-06-222-14/+44
| | |_|/ | |/| | | | | | | | | | (We're about to remove the interior mutability from Path.)
* | | | Merge branch 'proto-todos' into 'main'Nick Mathewson2023-06-225-30/+43
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | tor-proto: resolve or defer the easier TODO HS items. See merge request tpo/core/arti!1282
| * | | proto: Downgrade a comment about unauthenticated SENDMEsNick Mathewson2023-06-211-5/+9
| | | | | | | | | | | | | | | | We never actually need to allow these again; see #914
| * | | proto::circuit::handshake: downgrade a "TODO HS".Nick Mathewson2023-06-211-2/+2
| | | |