summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
| * Implement Netdoc ItemArgument for Iso8601TimeNoSp and Iso8601TimeSphalcyon2023-10-201-2/+15
| |
| * Implement Display for Iso8601TimeNoSp and Iso8601TimeSphalcyon2023-10-201-0/+38
| |
| * Fix typo in argumentshalcyon2023-10-201-1/+1
| |
| * Fix out of date commenthalcyon2023-10-201-2/+1
| |
* | Merge branch 'rustdoc_link_fix' into 'main'Ian Jackson2023-10-232-2/+2
|\ \ | | | | | | | | | | | | Fix rustdoc link warnings/errors. See merge request tpo/core/arti!1690
| * | Fix rustdoc link warnings/errors.Nick Mathewson2023-10-202-2/+2
| | |
* | | Merge branch 'todo-not-hss' into 'main'Alexander Færøy2023-10-221-1/+1
|\ \ \ | | | | | | | | | | | | | | | | Remove an "HSS" from a "TODO HSS" comment in ptmgr See merge request tpo/core/arti!1676
| * | | Remove an "HSS" from a "TODO HSS" comment in ptmgrNick Mathewson2023-10-161-1/+1
| | | | | | | | | | | | | | | | This isn't actually onion service related, AFAICT.
* | | | Merge branch 'get-or-create4' into 'main'Alexander Færøy2023-10-223-60/+193
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | tor-keymgr: Auto-generate missing keys in descriptor publisher See merge request tpo/core/arti!1688
| * | | | tor-hsservice: Handle None IPT update correctly.Gabriela Moldovan2023-10-191-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | This is not an error, it just means we need to wait until some IPTs are established.
| * | | | tor-hsservice: Generate the blinded keys, if they don't exist.Gabriela Moldovan2023-10-191-12/+32
| | | | |
| * | | | tor-hsservice: Remove unused function.Gabriela Moldovan2023-10-191-36/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't need this helper anymore (we no longer map `None` to `Err(MissingKey)`, because the new get-or-create functions don't return an `Option`). Also, the key lookups are going to look less uniform from now on (because some will be auto-generated with `get_or_generate`, and others with `get_or_generate_with_derived`).
| * | | | tor-keymgr: Add tests for get_or_generate.Gabriela Moldovan2023-10-191-0/+63
| | | | |
| * | | | tor-hsservice: Auto-generate the keys needed for building the descriptor, if ↵Gabriela Moldovan2023-10-191-9/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | necessary. This auto-generates the blinded identity key and the descriptor signing key (if they are missing).
| * | | | tor-hsservice: Remove outdated TODO.Gabriela Moldovan2023-10-191-2/+0
| | | | | | | | | | | | | | | | | | | | We're already fetching the descriptor signing key from the keystore.
| * | | | tor-hscrypto: Add a From<&HsIdKeypair> impl for HsIdKey.Gabriela Moldovan2023-10-192-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes it's useful to have the ability to derive the `HsIdKey` from the keypair (for example, if we've just read the `HsIdKeypair` from the keystore and also need the `HsIdKey`, this `From` impl enables us to derive the public part of the key, instead of having to read it from the keystore).
| * | | | tor-keymgr: Add KeyMgr::get_or_generate.Gabriela Moldovan2023-10-191-0/+23
| | | | |
| * | | | tor-keymgr: Add get_or_create_with_derived.Gabriela Moldovan2023-10-191-0/+34
| | |_|/ | |/| |
* | | | Merge branch 'log-hsid' into 'main'gabi-2502023-10-203-3/+24
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | tor-hsservice: Log newly generated HsIds. See merge request tpo/core/arti!1689
| * | | tor-hsservice: Fix hsid being logged inappropriately.Gabriela Moldovan2023-10-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The condition for logging the "generated a new identity.." message was wrong (`generate_with_derive()` returns `Some(())` if it generated a new key, and `None` if the key was already present).
| * | | tor-hsservice: Log newly generated HsIds.Gabriela Moldovan2023-10-191-2/+16
| | | |
| * | | tor-hscrypto: Add a From<&HsIdKeypair> impl for HsIdKey.Gabriela Moldovan2023-10-192-0/+7
| |/ / | | | | | | | | | | | | | | | | | | | | | Sometimes it's useful to have the ability to derive the `HsIdKey` from the keypair (for example, if we've just read the `HsIdKeypair` from the keystore and also need the `HsIdKey`, this `From` impl enables us to derive the public part of the key, instead of having to read it from the keystore).
* | | Merge branch 'tricky_terminate' into 'main'Nick Mathewson2023-10-195-181/+151
|\ \ \ | |/ / |/| | | | | | | | | | | | | | Refactor the stream-closing logic in tor-proto Closes #1065 See merge request tpo/core/arti!1681
| * | proto: Revise the behavior of IncomingStream::discard().Nick Mathewson2023-10-194-22/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because dropping a `StreamTarget` causes the circuit reactor to send an End, the previous do-nothing implementation of `discard()` wasn't sufficient to cause the request to be ignored without sending an End. This commit modifies our "close pending stream" behavior to only optionally send an End message. To avoid confusion, I'm using a new `CloseStreamBehavior` enum rather than an `Option<End>`, since we had previously used `None` in some cases to indicate a default (misc) end message.
| * | IncomingStream:: flatten IncomingStreamInner.Nick Mathewson2023-10-191-13/+11
| | |
| * | IncomingStream: Remove state.Nick Mathewson2023-10-192-67/+5
| | | | | | | | | | | | | | | | | | Now that every state-change function consumes the IncomingStream, there is no longer any reason to keep track of an internal state enum.
| * | Note a bug in IncomingStream::discard.Nick Mathewson2023-10-191-0/+2
| | |
| * | Remove IncomingStreamInner from its Option.Nick Mathewson2023-10-191-34/+7
| | | | | | | | | | | | | | | Now that IncomingStream doesn't implement Drop, we can just destructure it.
| * | Remove impl Drop from IncomingStreamNick Mathewson2023-10-191-11/+4
| | | | | | | | | | | | | | | Since dropping a StreamTarget will send an End, we don't need to call reject_internal in this case.
| * | proto: Remove TODOs about panics on double-close.Nick Mathewson2023-10-192-31/+2
| | | | | | | | | | | | | | | | | | | | | Now that `StreamMap::terminate` no longer panics, and now that it permits the kind of double-call that we allow, we can close #1065. Closes #1065.
| * | proto: Have EndSent remember if we have dropped the stream target.Nick Mathewson2023-10-192-14/+46
| | | | | | | | | | | | | | | The rule is that we allow up to one explicit `close_pending`, followed by exactly one final `mpsc::Sender` drop.
| * | proto: Give StreamMap::terminate a "why" argumentNick Mathewson2023-10-192-7/+45
| | | | | | | | | | | | | | | We will use this to enforce correct ordering on "close" vs "drop" APIs.
* | | tor-hsservice: Print error sources for descriptor upload errorsIan Jackson2023-10-191-1/+3
| | |
* | | tor-hsservice: Fix downcastIan Jackson2023-10-191-1/+1
| | | | | | | | | | | | | | | | | | | | | Downcasting is tricksy. We need to try the downcast on a type-erased &IptEstablisher, not &Box<dyn Any>, and if we don't dereference nothing tells us it's wrong since &Box<dyn Any> also implements and we end up with &Box<dyn Any> as &dyn Any.
* | | tor-hsservice: Add a TODO for logging HS statusIan Jackson2023-10-191-0/+6
| | |
* | | tor-hsservice: Adjust log level of IPT relay choice failureIan Jackson2023-10-191-6/+15
| | | | | | | | | | | | | | | | | | If it's due to lack of useable netdir, that's normal during startup, so don't log it. Hopefully something else somewhere will log if a consensus can't be obtained.
* | | tor-hsservice: Bump log level of main termination messageIan Jackson2023-10-191-2/+2
| | |
* | | tor-hsservice: impl HasKind for ChooseIptErrorIan Jackson2023-10-191-1/+14
| | | | | | | | | | | | We want to pass one of these to info_report!, which demands HasKind.
* | | tor-hsservice: Declare an IPT that fails during Establishing to be FaultyIan Jackson2023-10-191-1/+5
| | | | | | | | | | | | If we don't do this then the manager won't ever select a replacement.
* | | tor-hsservice: Do not claim a completely broken IPT wants to retireIan Jackson2023-10-191-1/+6
| | |
* | | HSS: Do not drop ProxySet immediately - let HS services continue to run (fmt)Ian Jackson2023-10-191-2/+4
| | |
* | | HSS: Do not drop ProxySet immediately - let HS services continue to runIan Jackson2023-10-191-4/+19
| | | | | | | | | | | | Dropping the ProxySet causes all the services to terminate.
* | | HSS: Add many must_use annotationsIan Jackson2023-10-192-0/+3
| | |
* | | Merge branch 'hs-fixes-2' into 'main'Alexander Færøy2023-10-191-21/+30
|\ \ \ | | | | | | | | | | | | | | | | tor-hsservice: ipt_mgr: Track notional estab started for faulty IPTs See merge request tpo/core/arti!1686
| * | | tor-hsservice: ipt_mgr: Track notional estab started for faulty IPTs (fmt)Ian Jackson2023-10-181-8/+10
| | | |
| * | | tor-hsservice: ipt_mgr: Track notional estab started for faulty IPTsIan Jackson2023-10-181-12/+19
| | | | | | | | | | | | | | | | An IPT can go from Faulty to Good.
| * | | tor-hsservice: ipt_mgr: Prepare for TS::Faulty to contain dataIan Jackson2023-10-181-4/+4
| | | |
* | | | ipt_establish: Try to make note_open work.Nick Mathewson2023-10-191-6/+28
| | | |
* | | | tor-hsservice: Fix cargo doc warnings.Gabriela Moldovan2023-10-191-3/+3
| | | |
* | | | tor-keymgr: Fix broken doc link.Gabriela Moldovan2023-10-191-1/+1
| | | |