summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge branch 'persist-lock' into 'main'Alexander Færøy2023-11-222-0/+2
|\ \ | | | | | | | | | | | | tor-persist: Make LockStatus #[must_use] See merge request tpo/core/arti!1753
| * | tor-persist: Make LockStatus #[must_use]Ian Jackson2023-11-222-0/+2
| | | | | | | | | | | | | | | I see other problems with this API, see #1136. but we can at least easily do this.
* | | Merge branch 'ratelim-dep' into 'main'Nick Mathewson2023-11-221-1/+1
|\ \ \ | | | | | | | | | | | | | | | | Deps and lockfile: Don't use tor-error and retry-error from crates.io See merge request tpo/core/arti!1752
| * | | Deps and lockfile: Don't use tor-error and retry-error from crates.ioIan Jackson2023-11-211-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | tor-log-ratelim mistakenly had a non-path dependency. Changing this, and running `cargo fetch --offline` to update the lockfile, causes the build to prefer in-tree for many entries in the lockfile.
* | | tor-rtmock: get rid of unwrap()Saksham Mittal2023-11-211-1/+1
| | |
* | | tor-circmgr: panic instead in order to return ErrorSaksham Mittal2023-11-211-1/+1
| | |
* | | tor-rtmock: handle Receiver result inside spawn_join()Saksham Mittal2023-11-212-3/+3
| | |
* | | tor-rtmock: use expect() insteadSaksham Mittal2023-11-211-1/+2
| | |
* | | tor-rtmock: change return types to be less concreteSaksham Mittal2023-11-212-2/+2
| | |
* | | tor-circmgr: port run_builder_test() to use spawn_join()Saksham Mittal2023-11-211-10/+4
| | |
* | | tor-rtmock: change return type of spawn_join()Saksham Mittal2023-11-212-6/+6
| | | | | | | | | | | | | | | This makes it synchronous. The trait bounds on the return type have also been relaxed to not require Clone
* | | tor-rtmock: introduce spawn_join() for MockRuntime & MockExecutorSaksham Mittal2023-11-212-0/+30
|/ / | | | | | | | | | | | | This helps abstract away the need to create a oneshot channel in order to get the return value out of an async function when using MockRuntime. ref: https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1727#note_2965352
* | HSS publisher error: lack of netdir: clarify messagegabi-2502023-11-201-1/+1
| |
* | tor-error: fmt_ending_ok: Permit messages ending in ascii ellipsisIan Jackson2023-11-201-0/+1
| | | | | | | | | | | | | | | | | | Tbis will result in "some message ...: the error" which I think is OK. We don't use a Unicode single-character ellipsis because that character can be hard to read at font sizes which are otherwise OK for text, and because use of non-ascii in logfiles and error messages is unecessary and might cause unnecessary trouble (for example, if the log messages end up going somewhere which isn't 100% valid UTF-8).
* | tor-error: fmt_ending_ok: Implement with a direct matchIan Jackson2023-11-201-1/+5
| | | | | | | | | | Possibly at some point in the past, matching a slice directly wasn't possible. But it is now.
* | Merge branch 'reactor-error-3' into 'main'Ian Jackson2023-11-205-14/+58
|\ \ | |/ |/| | | | | HSS publisher, do some work on ReactorErrors See merge request tpo/core/arti!1724
| * HSS publisher: do not crash reactor if netdir unavailableIan Jackson2023-11-201-7/+19
| | | | | | | | | | | | | | It might come back. This introduces a new bug relating to logging, but it does abolish one of the variants of ReactorError.
| * HSS errors: expose and sort out NetdirProviderShutdown error type (fmt)Ian Jackson2023-11-201-1/+1
| | | | | | | | IHNI why rustfmt wants to do this *now*
| * HSS errors: expose and sort out NetdirProviderShutdown error typeIan Jackson2023-11-204-3/+16
| | | | | | | | | | | | We're going have it in an variant in FatalError. Also make it impl HasKind and have IptError delegate to that.
| * HSS publisher errors: Declare that we want to abolish ReactorErrorIan Jackson2023-11-201-2/+23
| | | | | | | | And explain why this isn't just a question of merging it with FatalError.
| * HSS publisher: Remove a redundant debug messageIan Jackson2023-11-201-2/+0
| | | | | | | | The call to reactor.run() in publish.rs, launch(), calls warn_report.
* | Merge branch 'more-denotators' into 'main'gabi-2502023-11-201-14/+83
|\ \ | |/ |/| | | | | | | | | tor-keymgr: Support encoding more than one denotator in an ArtiPath. Closes #1093 and #1112 See merge request tpo/core/arti!1747
| * tor-keymgr: Update ArtiPath docs.Gabriela Moldovan2023-11-201-5/+9
| |
| * tor-keymgr: Remove now-outdated TODO HSSs.Gabriela Moldovan2023-11-201-6/+0
| |
| * tor-keymgr: Support encoding more than one denotator in an ArtiPath.Gabriela Moldovan2023-11-201-3/+74
| | | | | | | | Closes arti#1112
* | Merge branch 'deprecate-hs-client-intro-auth' into 'main'gabi-2502023-11-207-37/+34
|\ \ | |/ |/| | | | | | | | | tor-hscrypto: Deprecate HsClientIntroAuth{Key, Keypair}. Closes #1037 See merge request tpo/core/arti!1749
| * tor-keymgr: Remove the ToEncodableKey impl of HsClientIntroAuthKeypair.Gabriela Moldovan2023-11-201-15/+0
| | | | | | | | | | `HsClientIntroAuthKeypair` is deprecated and no longer used as an "encodable key".
| * arti-client: Stop using HsClientIntroAuthKeypair for client auth.Gabriela Moldovan2023-11-201-15/+1
| | | | | | | | Closes #1037
| * tor-hsclient: Deprecate HsClientSecretKeysBuilder::ks_hsc_intro_auth().Gabriela Moldovan2023-11-203-1/+8
| |
| * tor-keymgr: Allow the use of the newly deprecated HsClientIntroAuthKeypair ↵Gabriela Moldovan2023-11-201-4/+4
| | | | | | | | (fmt).
| * tor-keymgr: Allow the use of the newly deprecated HsClientIntroAuthKeypair.Gabriela Moldovan2023-11-201-1/+4
| |
| * tor-hscrypto: Move HsClientIntroAuthKey to a separate module (fmt).Gabriela Moldovan2023-11-201-16/+15
| |
| * tor-hscrypto: Move HsClientIntroAuthKey to a separate module.Gabriela Moldovan2023-11-201-0/+13
| | | | | | | | | | | | | | | | | | We need to add a module-global `#[allow(deprecated)]` to silence the deprecation warnings coming from the derived `derive_more` impls of the 2 newly deprecated structs. Since we don't want the `allow` to apply to the entire `pk` module, let's put `HsClientIntroAuthKey` and `HsClientIntroAuthKeypair` in a separate module and apply the `#[allow(deprecated)]` there.
| * tor-hscrypto: Deprecate HsClientIntroAuth{Key, Keypair}.Gabriela Moldovan2023-11-202-1/+5
| | | | | | | | Part of #1037
* | Merge branch 'send_dos_params' into 'main'Nick Mathewson2023-11-206-26/+115
|\ \ | | | | | | | | | | | | | | | | | | HSS: Send DosParams extension to introduction points. Closes #723 See merge request tpo/core/arti!1740
| * | Add more reference links.Nick Mathewson2023-11-201-1/+5
| | |
| * | Send DosParams conditionally on HsIntro support.Nick Mathewson2023-11-202-4/+12
| | | | | | | | | | | | It's available when the HsIntro=5 subprotocol version is present.
| * | Improve documentation in/around DosParams extensionNick Mathewson2023-11-203-8/+32
| | | | | | | | | | | | | | | | | | It does not help that C tor has a set of parameters and a set of configuration options with exactly the same names which configure the same thing in two slightly different ways.
| * | hss: Take intro_dos extension from configuration and send it.Nick Mathewson2023-11-202-4/+44
| | | | | | | | | | | | Closes #723.
| * | hss: pipe config watchers into ipt_establish.Nick Mathewson2023-11-202-9/+22
| | | | | | | | | | | | | | | | | | We want the configuration, at least, so that we can see our DoS settings. I expect we'll also want the watcher so that we can see _changes_ in the DoS settings.
* | | tor-keymgr: Add TODO about possibly abolishing arti_pattern.Gabriela Moldovan2023-11-201-0/+3
| | |
* | | tor-keymgr: Make the arti_path_prefix() helper private.Gabriela Moldovan2023-11-201-1/+1
| | |
* | | tor-keymgr: Abolish the `role()` public key specifier function.Gabriela Moldovan2023-11-201-9/+0
| | | | | | | | | | | | We don't use this anymore.
* | | tor-hsservice: Update MissingHsIdKey docs, remove outdated TODO HSS.Gabriela Moldovan2023-11-202-32/+2
| | |
* | | tor-hsservice: Rename MissingKey to MissingHsIdKeypair.Gabriela Moldovan2023-11-204-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | We only return this error if the identity key is missing from the keystore. This change will also help us abolish the `.role()` method on `KeySpecifier`s (it was only needed for populating the string of a `MissingKey` error).
* | | tor-keymgr: Use ${for fields} to count the number of denotators (fmt).Gabriela Moldovan2023-11-201-5/+4
| | |
* | | tor-keymgr: Use ${for fields} to count the number of denotators.Gabriela Moldovan2023-11-201-8/+3
| | |
* | | tor-keymgr: Refactor a commonly used condition into a defcond.Gabriela Moldovan2023-11-201-5/+8
| | |
* | | tor-keymgr: Apply review suggestions to various doc comments.Gabriela Moldovan2023-11-202-6/+13
| | |
* | | tor-keymgr: Do not require owned types in arti_pattern().Gabriela Moldovan2023-11-201-3/+3
| | | | | | | | | | | | This also fixes a clippy warning about a needless borrow.