| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | | | |
| | | |
| | | |
| | | |
| | | | |
This lets us keep the service-side hs-ntor handshake experiemental
for now.
|
| | | | | |
|
| | |/ /
| | |
| | |
| | |
| | | |
These are all related to issues that will come up for the service
side of the onion service implementation.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Generate correct-ish socks5 errors for onion service errors.
Closes #736
See merge request tpo/core/arti!1279
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This takes an approach discussed in #736: Instead of trying to
distinguish INTRO/REND failures perfectly, we instead map our
existing ErrorKinds as best we can, in respect to the fact that
this distinction is not super important in practice.
Closes #736
|
| | | | |
| | | |
| | | |
| | | | |
Use this to emit HS_BAD_ADDRESS as appropriate.
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
These errors are orthogonal to our actual error kinds. See
discussion on #736.
|
| | | | |
| | | |
| | | |
| | | | |
Part of #736
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
tor-hsclient: Delete/rewrite out-of-date commentary
See merge request tpo/core/arti!1288
|
| | | |/ /
| |/| | |
|
| | | | | |
|
| |/ / /
| | |
| | |
| | | |
This TODO talks about a change we've decided not to implement.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
lints: Promote clippy::print_stderr and clippy::print_stdout
See merge request tpo/core/arti!1271
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
I prepared 161b9844d against an earlier version of main without the
geoip crate. Run maint/add_warning again.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
This TODO was addressed in #899
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This also updates `ArtiNativeKeyStore`'s `KeyStore::remove`
implementation to build the absolute path of the file being removed, by
joining `self.keystore_dir` and the relpath returned by
`ArtiNativeKeyStore::key_path()`.
This addresses #908
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
Sometimes we need the underlying String (for example to create a
PathBuf).
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
keymgr: Remove Error::NotFound, update KeyMgr, KeyStore APIs.
See merge request tpo/core/arti!1280
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This removes the `NotFound` `tor_keymgr::Error` variant. Since `KeyMgr`
and `KeyStore` users will need to be able to distinguish between "not
found" errors and other I/O errors, this also changes the return types
of the `get()` and `remove()` functions of `KeyStore` and `KeyMgr`,
which now return `Ok(None)` instead of `Error::NotFound`.
This makes the `KeyStore` API consistent with `KeyMgr::get`, which
already has a return type of `Result<Option<K>>` (rather than
`Result<K>`).
This also prepares us for #901, which will make key store errors
opaque. Without this change:
* we'd have to create a `struct NotFoundError;` error type. Its
`HasKind` impl would need to return a new
`ErrorKind::KeyStoreErrorNotFound` `ErrorKind` variant
* callers would have to match the `error_kind()` of the error to
figure out whether the key simply can't be found
(`ErrorKind::KeyStoreErrorNotFound`), or if something went wrong
(any other `ErrorKind`).
Given the above, I think `Result<Option<()>>` makes for a more ergonomic
API.
Part of #901
|
| |\| | | |
| | | | |
| | | | |
| | | | |
| | | | | |
keymgr: Remove unnecessary condition.
See merge request tpo/core/arti!1277
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
We don't need to special-case `NotFound` errors because
`ssh_key::PrivateKey::from_openssh` doesn't read from disk (so it
shouldn't be returning `NotFound` errors in the first place).
Previously, this condition made sense because we were using
`ssh_key::PrivateKey::read_openssh_file` instead of
`ssh_key::PrivateKey::from_openssh`, which _does_ read from disk. This
condition should have been removed in !1263 (the refactoring where we
switched to `from_openssh`).
(Also, after #901 is implemented, we probably won't have an
`Error::NotFound` error anymore).
|
| |\ \ \ \ \
| |_|_|_|/
|/| | | |
| | | | |
| | | | | |
keymgr: Remove outdated TODO.
See merge request tpo/core/arti!1278
|
| | | |_|/
| |/| |
| | | |
| | | |
| | | | |
This TODO describes something we're not planning to implement, so let's
just remove it.
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
Downgrade every "TODO HS" in tor-hsservice
See merge request tpo/core/arti!1265
|
| | | | | |
| | | | |
| | | | |
| | | | | |
These are all service-specific, and not client-specific.
|
| |\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
netdoc: Use derive amplify::Getters for HsDesc accessors.
Closes #909
See merge request tpo/core/arti!1266
|
| | | | | | | |
|
| | |/ / / /
| | | | |
| | | | |
| | | | | |
Closes #909.
|
| |\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Fix a rustdoc link.
See merge request tpo/core/arti!1274
|
| | | | | | | |
|
| |\ \ \ \ \ \
| |_|_|/ / /
|/| | | | |
| | | | | |
| | | | | | |
Upgrade a couple of dependencies
See merge request tpo/core/arti!1276
|
| | | | | | | |
|
| | | |_|/ /
| |/| | | |
|
| |\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
arti: return prop304 extended socks5 reply codes for onion services
See merge request tpo/core/arti!1248
|
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
We don't yet return all of them; this commit adds some todo notes
about changes we may need to our ErrorKinds.
Part of #736
|
| | | |/ / /
| |/| | | |
|
| | | | | | |
|
| | |/ / /
|/| | | |
|
| |\ \ \ \
| |/ / /
|/| | |
| | | |
| | | | |
tor-hsclient: Dispose of easy todos and remove many allows
See merge request tpo/core/arti!1272
|
| | | | |
| | | |
| | | |
| | | | |
rustfmt *introduced* this clippy warning.
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
For the debug!, we can use the unredacted form. For error!, we use
Sensitive.
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
Empirically, this does not cause the descriptor to be spat out in
normal operation. And it seems right.
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
These were added as part of a debugging #885, and are no longer
needed.
|