summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Clarify and combine PtTargetAddr constructors.Nick Mathewson2022-09-231-16/+23
| | |
* | | Rename various Transport* types to Pt*.Nick Mathewson2022-09-232-43/+42
| | | | | | | | | | | | | | | This clarifies that the types apply to pluggable transports only, and not (typically) to the default plain-old-TCP transport.
* | | Clarify note on "none" transport ID.Ian Jackson2022-09-231-0/+3
| | |
* | | Add the skeleton of a tor-ptmgr crateNick Mathewson2022-09-234-0/+244
| | | | | | | | | | | | | | | When complete, this crate will handle launching and using pluggable transports on demand.
* | | ChanMgr: new (unimplemented) APIs for pluggable transportsNick Mathewson2022-09-236-0/+152
| | |
* | | Add a HasChanMethods trait, with a bunch of open TODO questions.Nick Mathewson2022-09-233-2/+24
| | | | | | | | | | | | We'll need to sort these out as we implement pluggable transports.
* | | New data types to describe transport targets.Nick Mathewson2022-09-232-1/+54
| | | | | | | | | | | | | | | I've tried to name and structure these for consistency, and comment reasonably well. We'll still probably want to make changes.
* | | Add TransportTargetAddr as the target address for a PT-using channelNick Mathewson2022-09-232-1/+118
| | | | | | | | | | | | | | | | | | As with `TransportId`, this type only gets complicated when `pt-client` is enabled: it's meant to stay simple for relays and non-PT-using clients.
* | | Create an API for TransportIdNick Mathewson2022-09-234-0/+168
| | |
* | | Merge branch 'fix-nightly-clippy' into 'main'Ian Jackson2022-09-229-32/+28
|\ \ \ | | | | | | | | | | | | | | | | Fix nightly clippy See merge request tpo/core/arti!729
| * | | Apply 1 suggestion(s) to 1 file(s)Ian Jackson2022-09-221-1/+1
| | | |
| * | | fix clippy::needless_borrowtrinity-1686a2022-09-108-23/+22
| | | |
| * | | fix clippy::unwrap_used and old TODO for msrv 1.56trinity-1686a2022-09-101-9/+6
| | | |
* | | | Merge branch 'channel-usage-doc' into 'main'Ian Jackson2022-09-221-7/+15
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Improve docs for ChannelUsage See merge request tpo/core/arti!737
| * | | | Improve docs for ChannelUsageNick Mathewson2022-09-221-7/+15
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | Try to clarify more that the ChannelUsage is for describing the usage for one particular channel request, not for the channel as a whole. This is a potentially confusing point, so we should spell it out completely.
* | | | Merge branch 'expose-builder' into 'main'Ian Jackson2022-09-221-0/+8
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | CircMgr: Add an accessor for the CircuitBuilder. See merge request tpo/core/arti!738
| * | | CircMgr: Add an accessor for the CircuitBuilder.Nick Mathewson2022-09-221-0/+8
| |/ / | | | | | | | | | | | | | | | | | | Without this, actually building circuits manually is a pain. This API is behind the `experimental-api` feature, and so it does not require a semver.md entry.
* | | Intoduce1: Use a constant-time check for all-zero RsaIdentityNick Mathewson2022-09-201-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As a matter of good crypto practice, we shouldn't use short-circuiting checks to compare keys or key-like objects, since the amount of time taken by those checks can leak information about their inputs. I don't think it's actually _necessary_ to use a constant-time operation in this case, but let's establish the precedent. This is a follow-up to !724.
* | | Add a new constant-time is_zero() check for RsaIdentityNick Mathewson2022-09-203-0/+33
|/ / | | | | | | | | | | | | | | | | | | | | | | | | There are some places in the protocol where we have an all-zero RSA identity that does not truly represent a key, but rather represents an absent or unknown key. For these, it's better to use `RsaIdentity::is_zero` instead of manually checking for a set of zero bytes: it expresses the intent better, and ensures that the operation is constant-time. I am deliberately not introducing a more general IsZero trait here, or implementing is_zero for anything else: This is the only one we seem to need right now. We can generalize it later if we have to.
* | Merge branch 'cell-introduce1' into 'main'Nick Mathewson2022-09-203-6/+130
|\ \ | | | | | | | | | | | | Implement onion service Introduce1 See merge request tpo/core/arti!724
| * | Implement onion service Introduce1Yuan Lyu2022-09-083-6/+130
| | |
* | | enumerate platform with getresuid supporttrinity-1686a2022-09-102-19/+20
| |/ |/|
* | force no inlining on internal_macro_testtrinity-1686a2022-09-091-0/+1
| | | | | | | | it may fix this test when running in release, where the function gets inlined, so its name does not appear in the backtrace
* | Add a dbg!() to diagnose #570.Nick Mathewson2022-09-081-0/+9
| | | | | | | | | | This won't fix anything, but it will let us see what the backtrace looks like when it fails.
* | Merge branch 'fix-async-std' into 'main'eta2022-09-072-2/+5
|\ \ | | | | | | | | | | | | fix compilation error with async-std See merge request tpo/core/arti!723
| * | fix compilation error with async-stdtrinity-1686a2022-09-062-2/+5
| |/
* | `TaskSchedule`: give error on `sleep*()` if last handle is droppedNick Mathewson2022-09-076-9/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes an busy-loop. When the last `TaskHandle` on a `TaskSchedule` is dropped, the schedule is permanently canceled: whatever operation it was scheduling should no longer be performed. But our code was broken: the `sleep()` and `sleep_until_wallclock()` functions don't verify whether the handles are dropped or not. This breakage caused an CPU-eating busy-loop in `sleep_until_wallclock`. With this patch, we now return a `Result<(), SleepError>` from these functions. Fixes #572.
* | Remove semver.md from arti-1.0.0Nick Mathewson2022-09-0716-55/+0
|/
* document TOR_SKIP_CONTROLPORTTEST=1 for no warning on Tor Browsertrinity-1686a2022-09-032-18/+14
|
* READMEs: Drop stability warning re configIan Jackson2022-09-021-9/+0
| | | | | The referenced ticket is closed and I think the top-level caveats remaining after !717 are sufficient.
* READMEs: Run maint/readmes (to update READMEs from lib.rs)Ian Jackson2022-09-022-3/+57
|
* docs: Move Tor Browser part to arti top-level (rustfmt etc.)Ian Jackson2022-09-021-16/+16
|
* arti-client README: Say we intend to provide FFIIan Jackson2022-09-021-1/+2
|
* README: Remove caveats from Tor Browser instructionsIan Jackson2022-09-021-3/+1
|
* README: Fix links to Tor BrowserIan Jackson2022-09-021-3/+4
|
* docs: Move Tor Browser part to arti top-level (syntax fixup)Ian Jackson2022-09-021-6/+16
|
* docs: Move Tor Browser part to arti top-level (code motion)Ian Jackson2022-09-021-0/+44
|
* README: change an NB to NoteIan Jackson2022-09-021-1/+1
| | | | https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/717#note_2834307
* READMEs: arti-client: Remove caveats and add some xrefsIan Jackson2022-09-022-14/+30
|
* READMEs: arti (CLI): Remove several caveats, and tidyingIan Jackson2022-09-022-24/+48
|
* Merge branch 'update-notify' into 'main'Ian Jackson2022-09-013-25/+29
|\ | | | | | | | | | | | | update to notify v5.0.0 Closes #454 See merge request tpo/core/arti!679
| * update to v5.0.0trinity-1686a2022-08-313-25/+29
| |
* | Bump crate versions in preparation for Arti 1.0.0 release.Nick Mathewson2022-09-0128-153/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because we want to work more on ensuring that our semver stability story is solid, we are _not_ bumping arti-client to 1.0.0 right now. Here are the bumps we _are_ doing. Crates with "minor" bumps have had API breaks; crates with "patch" bumps have had new APIs added. Note that `tor-congestion` is not bumped here: it's a new crate, and hasn't been published before. ``` tor-basic-utils minor fs-mistrust minor tor-config minor tor-rtcompat minor tor-rtmock minor tor-llcrypto patch tor-bytes patch tor-linkspec minor tor-cell minor tor-proto minor tor-netdoc patch tor-netdir minor tor-persist patch tor-chanmgr minor tor-guardmgr minor tor-circmgr minor tor-dirmgr minor arti-client minor arti-hyper minor arti major arti-bench minor arti-testing minor ```
* | Update patch-versions on crates without API changes.Nick Mathewson2022-09-0113-13/+13
| | | | | | | | | | | | | | Since our last round of releases, these crates have had either trivial changes, or changes that did not affect their APIs. Therefore we are bumping their versions, but not changing which versions of them other crates depend on.
* | Fix broken build and tests after arti!700.Alexander Færøy2022-08-311-3/+4
|/ | | | | | | | | | | | | This patch fixes a minor build error where we would call `compact_home()` on Windows instead of `anonymize_home()` on our PathBuf instance. Additionally we change how the `arti_conf` path is constructed such that we join the individual path components to ensure that no "/" ends up being present on Windows where path's are separated by "\". See: tpo/core/arti#555. See: tpo/core/arti!700.
* Merge branch 'ahf/563-appveyor-test-fix' into 'main'Nick Mathewson2022-08-311-2/+3
|\ | | | | | | | | Shorten the duration needed in preemptive::test::does_not_predict_old_ports. See merge request tpo/core/arti!708
| * Shorten the duration needed in preemptive::test::does_not_predict_old_ports.Alexander Færøy2022-08-311-2/+3
| | | | | | | | | | | | | | | | | | | | | | This patch shortens the duration of the `does_not_predict_old_ports` test in the preemptive module. AppVeyor spawns its VMs/containers per build, so the `Instant::now()` call returns a value smaller than `60 * 60 + 1` which causes the subtraction to overflow and thus panic. Thanks to @trinity-1686a for the help here. See: tpo/core/arti#563.
* | Merge branch 'rustdoc_fix_20220831' into 'main'Nick Mathewson2022-08-311-1/+1
|\ \ | | | | | | | | | | | | Fix a rustdoc link error. See merge request tpo/core/arti!711
| * | Fix a rustdoc link error.Nick Mathewson2022-08-311-1/+1
| | |
* | | Add test warning exceptions to arti::cfg::testNick Mathewson2022-08-311-0/+7
|/ /