summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | hs connect: Clarify clientness of ContextIan Jackson2023-04-111-1/+1
| | | |
| * | | hs connect tests: check that we asked exactly one relayIan Jackson2023-04-111-6/+6
| | | |
| * | | hs connect tests: derive Default for MocksGlobal, and use itIan Jackson2023-04-111-2/+2
| | | |
| * | | hs connect: Test descriptor downloadIan Jackson2023-04-112-0/+123
| | | |
| * | | hs connect: Do circuitry etc. via mocks traitIan Jackson2023-04-111-7/+59
| | | | | | | | | | | | | | | | | | | | This doesn't change the text of the functional code, but now the methods are indirected via the Mock* traits.
| * | | hs dirs: Initial cut at descriptor downloadingIan Jackson2023-04-114-11/+315
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are many TODOs here. Some are questions; some are straightforward and can be done in followups. With this code, I am able to reach the eprintln! and todo! with curl --socks5-hostname localhost:9150 https://duckduckgogg42xjoc72x3sjasowoarfbgcmvfimaftt6twagswzczad.onion/
| * | | hs desc: Record a Timebound<HsDesc> (but not really for now)Ian Jackson2023-04-112-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have a local alias of `HsDesc = String` which needs to be got rid of. But, right now the alternative would be to implement all the code for signature checking and decryption of an `HsDesc`, before we can make a test case for the downloader part.
| * | | hs connect: Introduce ContextIan Jackson2023-04-111-13/+91
| | | | | | | | | | | | | | | | | | | | This will be convenient as the common context for the descriptor download work, and also for testing.
| * | | hs dirs: Note a thing we don't implement yetIan Jackson2023-04-111-0/+11
| | | | | | | | | | | | | | | | We'll add this later, about here.
| * | | hs dirs: Implement spread_fetch (fmt)Ian Jackson2023-04-111-1/+4
| | | |
| * | | hs dirs: Implement spread_fetchIan Jackson2023-04-112-4/+10
| | | |
| * | | hs dirs: Fix wrong ignored variable nameIan Jackson2023-04-111-1/+1
| | | | | | | | | | | | | | | | This is the HsDirIndex, not the Hs[Blind]Id.
| * | | hs dirs: Replicas are 1-indexedIan Jackson2023-04-111-2/+2
| | | |
| * | | tor-netdir: Make an import more preciseIan Jackson2023-04-111-1/+3
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this cargo +stable clippy --locked --offline -p tor-netdir --features=hs-client --all-targets I got this: 64 | use {hsdir_params::HsDirParams, hsdir_ring::HsDirRing, itertools::chain, std::iter}; | ^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
* | | tor-netdoc: Tidy up and fix some broken intra-doc linksIan Jackson2023-04-112-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Abbreviate the link text, and don't have it contain `crate` which is not really great in docs. 2. Use `super::` for the link target, to find the right thing. (`crate` doesn't seem to work in rustdoc, perhaps deliberately, although the error messages are ridiculous and claim the nonexistence of intermediate modules.) 3. Wrap the lines a bit more.
* | | tor-netdir: Fix capitalisation of a doc linkIan Jackson2023-04-111-1/+1
| | | | | | | | | | | | Fixes a rustdoc warning.
* | | tor-netdir: Fix link to hs_time_period functionIan Jackson2023-04-111-1/+1
| | | | | | | | | | | | Fixes a rustdoc warning.
* | | impl_debug_hex: Fix syntax error in usage templateIan Jackson2023-04-111-1/+1
|/ / | | | | | | Corrects the doc and fixes a rustdoc warning.
* | Merge branch 'correct_osx_config' into 'main'Ian Jackson2023-04-111-1/+1
|\ \ | | | | | | | | | | | | arti: Explain correct location of OSX config. See merge request tpo/core/arti!1125
| * | arti: Explain correct location of OSX config.Nick Mathewson2023-04-101-1/+1
| |/
* | 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
| | |