summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add a semver entry for !1112.Nick Mathewson2023-04-101-0/+1
| |
* | Use an Enum for the description requesttranna2023-04-102-38/+55
|/
* linkspec: Add a missing ; in tests.Nick Mathewson2023-04-061-1/+1
|
* dirclient: fix an "unused import" warning.Nick Mathewson2023-04-061-1/+1
|
* guardmgr: update feature behavior wrt testing and pts.Nick Mathewson2023-04-062-3/+3
|
* circmgr: make "testing" depend on guardmgr/testingNick Mathewson2023-04-061-1/+1
|
* circmgr: Mark a number of internal APIs as hs-only.Nick Mathewson2023-04-063-0/+8
| | | | | | This resolves a few dead-code warnings. Closes #801.
* circmgr: Expand an incomplete comment in exitpath.rsNick Mathewson2023-04-061-2/+6
|
* Merge branch 'rw' into 'main'Nick Mathewson2023-04-063-1/+99
|\ | | | | | | | | tor-async-utils: Introduce JoinReadWrite See merge request tpo/core/arti!1115
| * JoinReadWrite: Minor docs improvements.Ian Jackson2023-04-061-3/+2
| |
| * JoinReadWrite: Move the example to the structIan Jackson2023-04-061-23/+25
| | | | | | | | This makes it more prominent on the rustdoc page.
| * JoinReadWrite: Discuss using .reunite() or .unsplit()Ian Jackson2023-04-061-3/+5
| | | | | | | | | | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1115#note_2894238 And move the "This is the converse" comment to somewhere it actually appears in public docs. The module-level docs only appear with --document-private-items because the modules themselves are private.
| * tor-async-utils: Introduce JoinReadWriteIan Jackson2023-04-053-1/+96
| | | | | | | | | | I wanted one of these for a test stream. Unaccountably neither the futures crate, nor tokio, seem to have one!
* | Merge branch 'error' into 'main'Ian Jackson2023-04-061-0/+16
|\ \ | | | | | | | | | | | | tor-error: Introduce ErrorKind::TorDirectoryBroken See merge request tpo/core/arti!1117
| * | tor-error: Rename ErrorKind::TorDirectoryUsable (from ...Broken)Ian Jackson2023-04-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1117#note_2893986 (Not going to squash this as it has a semantic conflict with !1118, so needs a little special handling there.)
| * | tor-error: Introduce ErrorKind::TorDirectoryBrokenIan Jackson2023-04-051-0/+16
| | | | | | | | | | | | | | | | | | We will use this for a lack of HS directories. (These aren't chosen according to any local restrictions, so the problems with EK::NoPath and EK::NoExit don't arise.)
* | | tor-netdir: testnet: Make all non-guard non-exits be hsdirsIan Jackson2023-04-051-1/+1
| | |
* | | tor-circmgr: HsCircKind: derive EqIan Jackson2023-04-051-1/+1
|/ /
* | Merge branch 'netdoc' into 'main'Ian Jackson2023-04-057-30/+47
|\ \ | |/ |/| | | | | tor-netdoc: Expose some test data (and fix feature builds) See merge request tpo/core/arti!1106
| * tor-netdoc: Expose test data under new "testing" feature flagIan Jackson2023-04-056-25/+39
| |
| * tor-netdoc: Fix feature buildsIan Jackson2023-04-054-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | Fixes cargo +stable test --locked --offline F -p tor-netdoc cargo +stable clippy -p tor-netdoc F --all-targets for values of F including --all-features --features=hs-client --features=hs-common --features=hs-service (nothing)
* | Merge branch 'req' into 'main'Ian Jackson2023-04-042-0/+67
|\ \ | |/ |/| | | | | tor-dirclient: Provide HsDescDownloadRequest See merge request tpo/core/arti!1097
| * tor-dirclient: Add a comment about 50 x 1024gabi-2502023-04-031-0/+1
| |
| * tor-dirclient: Add test case for HsDescDownloadRequestIan Jackson2023-04-031-1/+21
| | | | | | | | | | | | | | | | I couldn't find a test vector in C Tor. This test case was generated from the code here. I'm fairly sure it's right since I managed to get my descriptor downloader to work. (That's not an MR yet, but uses this code.)
| * tor-dirclient: Provide HsDescDownloadRequestIan Jackson2023-04-032-0/+46
| | | | | | | | | | In my tests this seems to do the right thing, but I'm getting 404s. I'm not sure if actually this URL is wrong.
* | Merge branch 'x25519' into 'main'Nick Mathewson2023-04-041-2/+2
|\ \ | | | | | | | | | | | | | | | | | | tor-llcrypto: Pin x25519-dalek version, bump our crate version Closes #807 See merge request tpo/core/arti!1108
| * | tor-llcrypto: Pin x25519-dalek version, bump our crate versiontor-llcrypto-v0.4.4Ian Jackson2023-04-041-2/+2
| | | | | | | | | | | | Fixes #807
* | | Merge branch 'timerange' into 'main'gabi-2502023-04-031-1/+35
|\ \ \ | |_|/ |/| | | | | | | | Ergonomic improvements to TimerangeBound See merge request tpo/core/arti!1105
| * | TimerangeBound: Provide .as_ref() and .as_deref()Ian Jackson2023-04-031-1/+33
| | |
| * | TimerangeBound: derive Debug and Clone, and Eq/PartialEq in testsIan Jackson2023-04-031-0/+2
| | |
* | | Merge branch 'debug-hex' into 'main'Nick Mathewson2023-04-034-5/+92
|\ \ \ | |/ / |/| | | | | | | | Debug two types as compact hex strings See merge request tpo/core/arti!1104
| * | Debug as hex strings for HsBlindId and HsDirIndexIan Jackson2023-03-313-5/+10
| | |
| * | tor-basic-utils: Provide impl_debug_hexIan Jackson2023-03-311-0/+82
| | |
* | | Merge branch 'hserror' into 'main'Ian Jackson2023-03-313-0/+52
|\ \ \ | | | | | | | | | | | | | | | | tor-error: Errors for hidden services See merge request tpo/core/arti!1099
| * | | tor-error: Add missing footnoteIan Jackson2023-03-311-0/+4
| | | | | | | | | | | | | | | | I C&P this from tor-dirmgr, and missed this part.
| * | | Fix duplicated licence in Cargo.tomlgabi-2502023-03-311-1/+0
| | | |
| * | | tor-error: Add OnionServiceNotRunning errorIan Jackson2023-03-311-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | We'll want this later. Define it now, though, since we've discussed it here https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1099#note_2892020
| * | | tor-error: Put OnionService errors behind a new experimental-api featureIan Jackson2023-03-313-0/+14
| | | |
| * | | tor-error: Document cargo featureIan Jackson2023-03-311-0/+4
| | | |
| * | | tor-error: Errors for hidden servicesIan Jackson2023-03-311-0/+18
| |/ / | | | | | | | | | | | | | | | | | | So far these are just the errors that occur during descriptor fetch. There will be more later as we have more code in tor-hsconn. This is very user-facing; use the "onion service" terminology.
* | | Merge branch 'netdir' into 'main'Ian Jackson2023-03-312-29/+90
|\ \ \ | |/ / |/| | | | | | | | tor-netdir: API changes to support hsconn hsdir fetch See merge request tpo/core/arti!1094
| * | tor-netdir: iter_filter_secondary: Make it less of a messIan Jackson2023-03-301-13/+10
| | | | | | | | | | | | | | | Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1094#note_2891857
| * | tor-netdir: Expand on comment for HsRingRings::itergabi-2502023-03-301-1/+1
| | |
| * | tor-netdir: Minor docs fixesgabi-2502023-03-301-2/+3
| | |
| * | tor-netdir: Provide accessor for params field of HsDirParamsIan Jackson2023-03-301-0/+5
| | |
| * | tor-netdir: Implement hs_dirs accessorIan Jackson2023-03-301-2/+16
| | |
| * | tor-netdir: hs_dirs accessor: change semantics, type, and nameIan Jackson2023-03-301-7/+9
| | | | | | | | | | | | | | | Don't have it take the TP, so that the caller must call it multiple times. Instead, have it return all the relevant relays.
| * | tor-netdir: Provide hs_all_time_periods instead of ..._secondary_...Ian Jackson2023-03-301-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | I don't think the server-side support will want to explicitly call current and then secondary. Rather, it will want to iterate over all the relevant ones. And fix the name, and add another comment about whether we need this.
| * | tor-netdir: Rename hs_time_periodIan Jackson2023-03-301-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | Change its name to hs_* like we do with things at this layer. But, it turns out, that at least for hs client connections to fetch the descriptor, I don't seem to need to call it yet ? Maybe it's not needed.
| * | tor-netdir: Sort out HsDirOpIan Jackson2023-03-301-2/+3
| | | | | | | | | | | | | | | * Change its name to Hs* like we do with things at this layer * Make the Upload variant cfg-conditional