| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| | * | tor-hsclient: state tests: Introduce connect_called | Ian Jackson | 2023-06-23 | 1 | -5/+11 | |
| | | | | | | | | | This will allow us to track when `Data` is discarded. | |||||
| | * | tor-hsclient: Expire old data eventually | Ian Jackson | 2023-06-23 | 1 | -2/+37 | |
| | | | | | | | | | Otherwise we'll fill up our RAM with junk. | |||||
| * | | tor-hsclient: Add a TODO SPEC re circuit dirtiness | Ian Jackson | 2023-06-23 | 1 | -0/+2 | |
| |/ | ||||||
| * | tor-hsclient: Add a note about circuit expiry uncertainty, ticket | Ian Jackson | 2023-06-22 | 1 | -0/+3 | |
| | | ||||||
| * | tor-hsclient: Expand explanation of `last_used` (for Open) | Ian Jackson | 2023-06-22 | 1 | -1/+20 | |
| | | ||||||
| * | tor-hsclient: Make comment about circuit expiry more accurate | Nick Mathewson | 2023-06-22 | 1 | -1/+2 | |
| | | ||||||
| * | tor-hsclient: Apply broken formatting as demanded by rustfmt | Ian Jackson | 2023-06-22 | 1 | -1/+1 | |
| | | ||||||
| * | tor-hsclient: Test circuit expiry | Ian Jackson | 2023-06-22 | 1 | -1/+46 | |
| | | ||||||
| * | tor-hsclient: Expire HS circuits that we don't want to reuse | Ian Jackson | 2023-06-22 | 1 | -4/+128 | |
| | | ||||||
| * | tor-hsclient: Introduce helper function for locking services table | Ian Jackson | 2023-06-22 | 1 | -12/+3 | |
| | | ||||||
| * | tor-hsclient: Abolish an obsolete comment | Ian Jackson | 2023-06-22 | 1 | -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. | |||||
| * | tor-hsclient: Apply deferred clippy churn needed by fmt churn | Ian Jackson | 2023-06-21 | 1 | -1/+1 | |
| | | | | | rustfmt *introduced* this clippy warning. | |||||
| * | tor-hsclient: Apply deferred rustfmt churn | Ian Jackson | 2023-06-21 | 1 | -5/+3 | |
| | | ||||||
| * | tor-hsclient: Add HSID to some log messages | Ian Jackson | 2023-06-21 | 1 | -6/+7 | |
| | | | | | | For the debug!, we can use the unredacted form. For error!, we use Sensitive. | |||||
| * | netdoc, hsclient: Update remaining ed25519::SecretKey users | Nick Mathewson | 2023-05-18 | 1 | -2/+4 | |
| | | | | | | | Fortunately, these are all in experimental code. Closes #798 | |||||
| * | Refactor ClientCirc APIs to use Arc<ClientCirc>. | Nick Mathewson | 2023-05-16 | 1 | -8/+8 | |
| | | | | | | | | | | | | | Now ClientCirc is no longer `Clone`, and the things that need it to be `Clone` instead return and use an Arc<ClientCirc> We're doing this so that ClientCirc can participate in the RPC system, and so that its semantics are more obvious. Closes #846. Thanks to the type system, this was a much simpler refactoring than I had feared it would be. | |||||
| * | Run rustfmt | Ian Jackson | 2023-03-30 | 1 | -13/+14 | |
| | | | | | Apply this churn, which I deferred for ease of review. | |||||
| * | tor-hsconn: Rename ConnError (from HsClientConnError) | Ian Jackson | 2023-03-30 | 1 | -11/+11 | |
| | | | | | | The old name was unwieldy and other crates can just as well name it by the crate scope. | |||||
| * | tor-client: Pass a netdir for each request | Ian Jackson | 2023-03-30 | 1 | -5/+12 | |
| | | | | | | This will be more convenient inside tor-hsclient. In arti-client, this mirrors the way TorClient::get_or_launch_exit_circ works. | |||||
| * | Pass HS identity to hsclient connection function | Ian Jackson | 2023-03-28 | 1 | -1/+6 | |
| | | | | | Obviously it will need this! | |||||
| * | Pass HsCircPool to hsclient connect function, not CircMgr | Ian Jackson | 2023-03-28 | 1 | -1/+2 | |
| | | | | | | We separated this out in the circmgr API. This is what the HS client needs. It doesn't want to participate in the general circuit pool. | |||||
| * | Fix typos | Dimitris Apostolou | 2023-03-03 | 1 | -3/+3 | |
| | | ||||||
| * | hsclient state: Rename rechecks (from attempts) and add clarifying docs | Ian Jackson | 2023-03-01 | 1 | -9/+22 | |
| | | | | | | Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1034#note_2882079 | |||||
| * | hsclient state: Implement and test MultikeyIsolatedMap::retain | Ian Jackson | 2023-03-01 | 1 | -2/+3 | |
| | | ||||||
| * | hsclient state: Split off MultikeyIsolatedMap | Ian Jackson | 2023-03-01 | 1 | -82/+16 | |
| | | ||||||
| * | hsclient state: Move all the data fields into the table | Ian Jackson | 2023-03-01 | 1 | -28/+37 | |
| | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1034#note_2881576 This is a singificant simplification, in fact. | |||||
| * | hsclient: Document sharing rules | Ian Jackson | 2023-03-01 | 1 | -0/+11 | |
| | | | | | | Text largely from https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1034#note_2881638 | |||||
| * | hsclient state: rustfmt | Ian Jackson | 2023-03-01 | 1 | -241/+244 | |
| | | | | | | | Autogenerated with rustfmt; no code changes. This tidies up the bizarre formatting. | |||||
| * | hsclient state: Lots more doc comments about barriers, structure, etc. | Ian Jackson | 2023-03-01 | 1 | -2/+74 | |
| | | ||||||
| * | hsclient state: Break `obtain` out into a fn | Ian Jackson | 2023-03-01 | 1 | -61/+82 | |
| | | | | | | | | | | | This is getting rather confusing; simply reformtting it won't do, I think. Also there would be much rightward drift. So move the meat out into the new function. (And introduce a convenience alias for its captures.) Docs and reformatting will follow in a moment. | |||||
| * | hsclient state: Restructure using a scope to drop the mutex guard | Ian Jackson | 2023-03-01 | 1 | -20/+44 | |
| | | | | | | | | | | | | | Explicit drops don't work. Instead, introduce a scope. We need two scopes, actually: one where we do the initial table wrangling, and one for the retries after relock. So we must put the meat in a closure so we can reuse it. And we must return the flow control as an enum. Bah, etc. Avoid reformatting this for the moment. This makes the delta legible... | |||||
| * | hsclient state: Break out ServiceState::blank | Ian Jackson | 2023-03-01 | 1 | -5/+12 | |
| | | | | | | We're going to have another function which will want this. Leave a convenience closure to capture the runtime. | |||||
| * | hsclient state: Move error inspection before guard re-lock. | Ian Jackson | 2023-03-01 | 1 | -4/+5 | |
| | | | | | | | This is still correct from a lock hierarchy pov. It moves the guard relock to the end, which is going to be necessary since it is going to have to move right outside the loop. | |||||
| * | hsclient keys: Fix non-equal keys test to provide a (dummy) key (fmt) | Ian Jackson | 2023-03-01 | 1 | -1/+4 | |
| | | ||||||
| * | hsclient keys: Fix non-equal keys test to provide a (dummy) key | Ian Jackson | 2023-03-01 | 1 | -4/+10 | |
| | | | | | | We're about to fix the comparison to treat all empty key sets as equal. | |||||
| * | hsclient state: Test most important code paths | Ian Jackson | 2023-03-01 | 1 | -16/+139 | |
| | | ||||||
| * | hsclient: Provide some missing debug impls and trace messages | Ian Jackson | 2023-03-01 | 1 | -2/+13 | |
| | | ||||||
| * | Apply rustfmt | Ian Jackson | 2023-03-01 | 1 | -39/+70 | |
| | | ||||||
| * | hsclient state: Provide one test | Ian Jackson | 2023-03-01 | 1 | -0/+100 | |
| | | ||||||
| * | hsclient: Use a generic to provide a mock for connect() | Ian Jackson | 2023-03-01 | 1 | -16/+43 | |
| | | | | | This will allow us to test state.rs. | |||||
| * | hsclient: Move dead code allows to specific locations | Ian Jackson | 2023-03-01 | 1 | -0/+1 | |
| | | ||||||
| * | hsclient: Add vacuous comments as demanded by clippy | Ian Jackson | 2023-03-01 | 1 | -0/+5 | |
| | | ||||||
| * | hsclient state: Bind a variable to stop rustfmt doing a terrible thing | Ian Jackson | 2023-03-01 | 1 | -5/+7 | |
| | | ||||||
| * | hsclient: Implement connection attempt tracking state machine | Ian Jackson | 2023-03-01 | 1 | -25/+291 | |
| | | | | | This compiles, but it cannot work yet. Nor can it conveniently be tested. | |||||
| * | tor-hscrypto: Rename key types to correspond to new spec names. | Nick Mathewson | 2023-02-08 | 1 | -2/+2 | |
| | | ||||||
| * | Add a new stub hsclient module to connect to onion services. | Nick Mathewson | 2023-01-24 | 1 | -0/+39 | |
