summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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.
* | | tor-keymgr: Suppress a confused clippy warning.Gabriela Moldovan2023-11-201-0/+2
| | | | | | | | | | | | | | | | | | | | | Clippy is wrong here: it's complaining about us not using `$crate`, when we _are_ using `$crate`. See https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1733#note_2965924
* | | tor-keymgr: Remove unused macro.Gabriela Moldovan2023-11-201-241/+0
| | |
* | | tor-hsservice: Remove unused macro.Gabriela Moldovan2023-11-201-83/+1
| | | | | | | | | | | | We don't need this macro now that we adhoc-derive the implementation.
* | | tor-hsservice: Derive the service key specifier implementations (fmt).Gabriela Moldovan2023-11-201-54/+54
| | |
* | | tor-hsservice: Derive the service key specifier implementations.Gabriela Moldovan2023-11-201-24/+43
| | |
* | | tor-keymgr: Rewrite define_key_specifier using derive-adhoc (fmt).Gabriela Moldovan2023-11-201-37/+36
| | |
* | | tor-keymgr: Rewrite define_key_specifier using derive-adhoc.Gabriela Moldovan2023-11-203-18/+151
| | | | | | | | | | | | | | | | | | | | | | | | For the most part, this is just code movement. The implementation was copied over to `define_derive_adhoc` from `define_key_specifier`, with some minor adjustments that were needed to make it compile. Closes #1093
* | | tor-keymgr: Add tests for arti_prefix().Gabriela Moldovan2023-11-201-0/+11
| | |
* | | tor-keymgr: Add tests for arti_pattern().Gabriela Moldovan2023-11-201-0/+15
|/ / | | | | | | | | | | | | | | | | `T::arti_pattern()` returns an `ArtiPath` pattern that can can match any key of type `T`, regardless of the values of its denotators (the denotators are replaced by wildcards in the pattern). These tests will allow us to check we're not breaking pattern matching when we transition to derive-adhoc.
* | Merge branch 'publisher-todo' into 'main'Ian Jackson2023-11-203-5/+3
|\ \ | |/ |/| | | | | tor-hsservice: Remove and downgrade several TODO HSS See merge request tpo/core/arti!1742
| * tor-hsservice: Downgrade a couple of TODO HSS to TODO.Gabriela Moldovan2023-11-162-2/+2
| | | | | | | | These are definitely blockers.
| * tor-hsservice: Remove TODO HSS that does not make sense.Gabriela Moldovan2023-11-151-2/+0
| | | | | | | | I don't understand what this TODO is about, so let's remove it.
| * tor-hsservice: Downgrade TODO HSS to TODO.Gabriela Moldovan2023-11-151-1/+1
| |
* | Merge branch 'tracing-ratelim-redux' into 'main'Nick Mathewson2023-11-186-0/+939
|\ \ | | | | | | | | | | | | New tor-log-ratelim crate (improved varsion) See merge request tpo/core/arti!1734
| * | Fix a broken doc linkNick Mathewson2023-11-161-1/+1
| | |
| * | ratelim: simplify LogState::reset.Nick Mathewson2023-11-161-4/+1
| | |
| * | ratelim: switch time list to start very short.Nick Mathewson2023-11-161-4/+20
| | | | | | | | | | | | | | | | | | | | | Since we batch up even the earliest events, it's important that the first interval be quite short: otherwise, the user might wait minutes between when a problem first occurs and when it is first reported.
| * | ratelim: Add a note about summary accuracyNick Mathewson2023-11-161-0/+6
| | |
| * | ratelim: Add a comment about behavior on reactor shutdownNick Mathewson2023-11-161-0/+5
| | |
| * | Ratelim: use now() to see how long we have been dormantNick Mathewson2023-11-161-9/+22
| | | | | | | | | | | | Also avoid infinite recursion in implementation of RuntimeSupport.
| * | ratelim: Note that timeouts are in minutes.Nick Mathewson2023-11-162-11/+2
| | |
| * | ratelim: refactor to avoid unreachable codeNick Mathewson2023-11-163-43/+22
| | | | | | | | | | | | Add a note that this uglifies a hidden API slightly.
| * | ratelim: rename limiter.rs to ratelim.rsNick Mathewson2023-11-162-5/+5
| | |
| * | log_ratelim: Use a real error type for install_runtime()Nick Mathewson2023-11-163-5/+16
| | |
| * | log_ratelim: Make final semicolon optional.Nick Mathewson2023-11-161-4/+6
| | |
| * | New tor-log-ratelim crateNick Mathewson2023-11-166-0/+919
| | | | | | | | | | | | | | | | | | | | | | | | | | | This crate is meant to provide rate-limited log messages to tell users about problems that can happen too frequently to log individually. This version is based off an earlier design, and off of conversations with @diziet. It still needs tests.
* | | Merge branch 'main' into 'main'gabi-2502023-11-171-13/+15
|\ \ \ | | | | | | | | | | | | | | | | Added macro for StorageConfig expand dir See merge request tpo/core/arti!1728
| * | | Added macro for StorageConfig expand dirrdbo2023-11-171-13/+15
| | | |
* | | | arti-client test: add clippy exceptionJim Newsome2023-11-161-0/+1
| | | | | | | | | | | | | | | | This clippy rule appears to be enabled by default in Rust 1.74.0