summaryrefslogtreecommitdiff
path: root/crates/tor-hsservice/src/err.rs
Commit message (Collapse)AuthorAgeFilesLines
* tor-keymgr: Add a top-level error type.Gabriela Moldovan2023-11-211-3/+2
| | | | | | | | | | | | | Previously, the `tor_keymgr::Error` type was `Box<dyn KeystoreError>`. This forced us to impl `KeystoreError` for any error returned by the keymgr (including those that were not coming from a `Keystore` impl). Now, `tor_keymgr::Error` is an non-exhaustive enum and the `Box<dyn KeystoreError>` opaque error type is only returned from `Keystore` impls The reason we're keeping the `dyn KeystoreError` error type is because it enables `Keystore` implementors to use their own error types. Without it, they would have to choose from our (closed) set of error variants, which may not be suitable for their keystore. See #901.
* tor-hsservice: Update MissingHsIdKey docs, remove outdated TODO HSS.Gabriela Moldovan2023-11-201-6/+1
|
* tor-hsservice: Rename MissingKey to MissingHsIdKeypair.Gabriela Moldovan2023-11-201-3/+4
| | | | | | | | | 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).
* HSS: impl HasKind for FatalErrorIan Jackson2023-11-011-0/+13
|
* tor-hsservice: Add some TODOs about error handling.Gabriela Moldovan2023-10-191-0/+5
|
* tor-hsservice: Replace placeholder subcredentials with values from the keystore.Gabriela Moldovan2023-10-191-0/+8
|
* tor-hsservice: Make OnionServices auto-generate the hs_id, if it's missing.Gabriela Moldovan2023-10-091-0/+17
|
* hss: implement HasKind for several errors.Nick Mathewson2023-09-271-0/+19
|
* tor-hsservice: Make Publisher::launch return a StartupError.Gabriela Moldovan2023-09-271-11/+0
| | | | | | This simplifies error handling in `OnionService`. Closes #1052
* hss: Implement HasKind for StartupErrorNick Mathewson2023-09-261-1/+15
|
* hss: fix error return from OnionService::launch()Nick Mathewson2023-09-211-0/+8
|
* hss: start filling in a "launch" function for OnionService.Nick Mathewson2023-09-211-0/+4
|
* HSS: Enable RendRequests to be answered.Nick Mathewson2023-09-201-2/+12
| | | | | This requires yet more plumbing—this time, of HsCircPool and NetDirProvider.
* tor-hsservice: About half of an IPT ManagerIan Jackson2023-08-231-1/+20
| | | | There are many TODOs and no tests, but it does compile.
* tor-hsservice errors: Distinguish operational errors by contextIan Jackson2023-08-171-2/+46
| | | | | | | | | | At the very least, I need FatalError to be distinct: IptEstablisher::new ought not to fail unless everything is terrible. Add a the Spawn variant to FatalError (that we'll need soon) and the Bug variant (which it seems likely we might need). This also gets rid of the crate-level Result alias.
* Sketch an API for onion services.Nick Mathewson2023-01-241-0/+8