aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | llcrypto: upgrade x25519-dalek.Nick Mathewson2023-05-132-8/+51
|/ / | | | | | | | | | | | | | | This upgrades us to 2.0.0-rc.2, which is the latest in the not-quite-done-yet 2.0 series. The only code change that's absolutely needed is opting into the static_secrets feature.
* | Merge branch 'connect-hsdesc-bounds' into 'main'gabi-2502023-05-136-47/+398
|\ \ | | | | | | | | | | | | hsclient: Build cached descriptor TimerangeBounds from descriptor lifetime. See merge request tpo/core/arti!1154
| * | tor-basic-utils: Add unbounded range (..) test.Gabriela Moldovan2023-05-131-0/+31
| | | | | | | | | | | | Signed-off-by: Gabriela Moldovan <[email protected]>
| * | tor-basic-utils: Update combinatorial test to randomly choose an open or ↵Gabriela Moldovan2023-05-131-2/+12
| | | | | | | | | | | | | | | | | | closed bound. Signed-off-by: Gabriela Moldovan <[email protected]>
| * | tor-basic-utils: Add rangebounds test with time ranges.Gabriela Moldovan2023-05-131-0/+35
| | | | | | | | | | | | Signed-off-by: Gabriela Moldovan <[email protected]>
| * | tor-basic-utils: Assert witness is not part of the intersection.Gabriela Moldovan2023-05-131-0/+4
| | | | | | | | | | | | Signed-off-by: Gabriela Moldovan <[email protected]>
| * | tor-basic-utils: Log the ranges/intersection on assertion failure.Gabriela Moldovan2023-05-131-1/+13
| | | | | | | | | | | | Signed-off-by: Gabriela Moldovan <[email protected]>
| * | netdoc: Use the RangeBoundsExt impl of TimerangeBound.Gabriela Moldovan2023-05-133-82/+25
| | | | | | | | | | | | | | | | | | We can now get rid of the standalone `intersect_bounds` function. Signed-off-by: Gabriela Moldovan <[email protected]>
| * | tor-checkable: Implement RangeBounds for TimerangeBound.Gabriela Moldovan2023-05-132-6/+19
| | | | | | | | | | | | | | | | | | | | | | | | By implementing `RangeBounds` for `TimerangeBound`, we get `RangeBoundsExt` for free. This will enable `parse_decrypt_validate` to easily compute the intersection of the `TimerangeBound`s its layers. Signed-off-by: Gabriela Moldovan <[email protected]>
| * | tor-basic-utils: Add a helper function to deduplicate test code.Gabriela Moldovan2023-05-131-19/+29
| | | | | | | | | | | | Signed-off-by: Gabriela Moldovan <[email protected]>
| * | tor-basic-utils: Add RangeBoundsExt trait.Gabriela Moldovan2023-05-132-0/+201
| | | | | | | | | | | | Signed-off-by: Gabriela Moldovan <[email protected]>
| * | hsclient: descriptor_ensure no longer wraps the descriptor in TimerangeBound.Gabriela Moldovan2023-05-131-2/+5
| | | | | | | | | | | | | | | | | | | | | `descriptor_fetch_attempt` now returns a `TimerangeBound<HsDesc>` (and so does `parse_descript_validate`). Signed-off-by: Gabriela Moldovan <[email protected]>
| * | netdoc: Do not consume EncryptedHsDesc when decrypting.Gabriela Moldovan2023-05-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | `parse_decrypt_validate` will need to "peek" inside an encrypted descriptor (before validating it) to extract the `TimerangeBound` of the inner layer. This is needed to compute the intersection of the `TimerangeBound`s of both layers. Signed-off-by: Gabriela Moldovan <[email protected]>
| * | hsclient: Compute HsDesc validity time from the TimerangeBounds of its layers.Gabriela Moldovan2023-05-132-38/+29
| | | | | | | | | | | | | | | | | | | | | This makes `descriptor_ensure` refetch the descriptor if either of its layers (inner or outer) expires. Signed-off-by: Gabriela Moldovan <[email protected]>
| * | tor-checkable: Add a way to compute the intersection of 2 RangeBounds.Gabriela Moldovan2023-05-131-0/+71
| | | | | | | | | | | | | | | | | | | | | This will be used for computing the final `TimerangeBound` of a `HsDesc` from the `TimerangeBound`s of its inner and outer layers. Signed-off-by: Gabriela Moldovan <[email protected]>
| * | hsclient: Build cached descriptor TimerangeBounds from descriptor lifetime.Gabriela Moldovan2023-05-133-24/+51
|/ / | | | | | | | | | | | | This makes `descriptor_ensure` refetch the descriptor if it has been cached for longer than `descriptor-lifetime` minutes. Signed-off-by: Gabriela Moldovan <[email protected]>
* | Merge branch 'rename-netdoc-err-method' into 'main'Nick Mathewson2023-05-114-8/+8
|\ \ | | | | | | | | | | | | netdoc: Rename parse_error_kind() to netdoc_error_kind(). See merge request tpo/core/arti!1179
| * | hsclient: Rename import alias to reflect new name.Gabriela Moldovan2023-05-111-2/+2
| | | | | | | | | | | | | | | | | | A `NetdocErrorKind` is a `NEK` rather than a `PEK`. Signed-off-by: Gabriela Moldovan <[email protected]>
| * | netdoc: Rename parse_error_kind() to netdoc_error_kind().Gabriela Moldovan2023-05-114-6/+6
|/ / | | | | | | | | | | | | `ParseErrorKind` was renamed to `NetdocErrorKind`, so we need to rename this acccessor too. Signed-off-by: Gabriela Moldovan <[email protected]>
* | Merge branch 'nightly-warnings-20230511' into 'main'gabi-2502023-05-113-9/+8
|\ \ | | | | | | | | | | | | Fix a few warnings from rust nightly See merge request tpo/core/arti!1178
| * | arti-testing: remove some needless ::default()sNick Mathewson2023-05-111-4/+4
| | | | | | | | | | | | | | | | | | This fixes a warning from nightly clippy. I don't care for this warning, but fixing it is easier than adding a version-conditional warning exception.
| * | dirmgr: remove a needless .borrow()Nick Mathewson2023-05-111-4/+3
| | | | | | | | | | | | This fixes a warning from nightly clippy.
| * | chanmgr: remove a needless mut.Nick Mathewson2023-05-111-1/+1
| |/ | | | | | | This fixes a warning from nightly clippy.
* | Merge branch 'hs-linkspec-work-v2' into 'main'Nick Mathewson2023-05-1117-126/+521
|\ \ | |/ |/| | | | | | | | | Second take on linkspec manipulation code needed by onion services Closes #794 See merge request tpo/core/arti!1177
| * linkspec::verbatim: wrapper to give a CircTarget a new set of LinkSpecsNick Mathewson2023-05-113-1/+113
| |
| * Add linkspec::decode to convert linkspecs to an OwnedChanTargetNick Mathewson2023-05-113-1/+189
| | | | | | | | | | | | | | Relays and onion service services/clients will both need this. I'm marking this experimental for now; we should stabilize it before we release onion services.
| * Change CircTarget::linkspecs() to return an encoded list.Nick Mathewson2023-05-107-15/+34
| | | | | | | | | | | | | | | | If we didn't do this, we would need to transfrom `EncodedLinkSpec`s into a `LinkSpec::Unrecognized`, which is not semantically right. What's more, every user of this API wants to consume encoded link specifiers, so encoding them early saves a little effort.
| * linkspec: Make LinkSpecType public.Nick Mathewson2023-05-106-35/+51
| | | | | | | | | | This lets us check the type of an `EncodedLinkSpec` as well, and lets us remove an interface that took a raw u8.
| * linkspec: define conversion functions for EncodedLinkSpecNick Mathewson2023-05-101-48/+79
| | | | | | | | | | | | This commit adds functions to convert between LinkSpec and EncodedLinkSpec, and refactors their read/write implementations a bit to avoid code duplication.
| * Rename UnparsedLinkSpec => EncodedLinkSpecNick Mathewson2023-05-106-22/+23
| |
| * hspool: Accept any T:CircTarget.Nick Mathewson2023-05-102-9/+28
| | | | | | | | | | | | Previously, we only accepted an OwnedCircTarget, which would have kept us from getting a circuit that was aimed at a specialized CircTarget that gave us LinkSpecs in a raw order.
| * test_linkspecs: tidy order of linkspecsNick Mathewson2023-05-101-11/+11
| | | | | | | | This is pure code movement.
| * Move responsibility for linkspec sorting to CircTarget.Nick Mathewson2023-05-102-5/+14
| | | | | | | | | | | | This change is necessary so that we can build Extend2 messages that have their LinkSpecs appear in a verbatim order as provided in an INTRODUCE2 message or in a HS descriptor.
* | Merge branch 'netdoc-error-rename' into 'main'Nick Mathewson2023-05-1018-48/+43
|\ \ | |/ |/| | | | | netdoc: Rename `ParseError{Kind, Source}` to `NetdocError{Kind, Source}`. See merge request tpo/core/arti!1176
| * netdoc: Remove experimental-api gate from parse_decrypt_validate.Gabriela Moldovan2023-05-102-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | `parse_decrypt_validate` was marked as experimental because it was unclear if the newly added `BadTimeBound` error kind belongs in `ParseErrorKind`. However, we have since renamed `ParseErrorKind` to `NetdocErrorKind` and decided to keep the new variant, so this API doesn't need to be experimental anymore. Closes arti #852 Signed-off-by: Gabriela Moldovan <[email protected]>
| * netdoc: Rename `ParseError{Kind, Source}` to `NetdocError{Kind, Source}`.Gabriela Moldovan2023-05-1018-44/+43
|/ | | | | | | | | | | `ParseErrorSource` was originally meant to represent a parsing error, this enum has since gained some variants that aren't really parsing related (`Signature`, `CertSignature`, `UntimelyDescriptor`). Since this error type is now used for general-purpose netdoc errors, let's rename `ParseError{Kind, Source}` to `NetdocError{Kind, Source}`. Signed-off-by: Gabriela Moldovan <[email protected]>
* Merge branch 'upgrade-bumpalo' into 'main'Nick Mathewson2023-05-091-2/+2
|\ | | | | | | | | bump to latest version of bumpalo to appease cargo_audit. See merge request tpo/core/arti!1175
| * bump to latest version of bumpalo to appease cargo_audit.Nick Mathewson2023-05-091-2/+2
|/
* Merge branch 'ticket_839' into 'main'Alexander Færøy2023-05-091-8/+12
|\ | | | | | | | | | | | | Downgrade and clarify message about dir replacment time. Closes #839 See merge request tpo/core/arti!1171
| * Downgrade and clarify message about dir replacment time.Nick Mathewson2023-05-081-8/+12
| | | | | | | | Closes #839
* | Merge branch 'print-stati-feature' into 'main'Alexander Færøy2023-05-091-2/+2
|\ \ | |/ |/| | | | | print both static sqlite/tls when 'static' feature is used See merge request tpo/core/arti!1169
| * print both static sqlite/tls when 'static' feature is usedtrinity-1686a2023-05-081-2/+2
| |
* | Merge branch 'update-deps' into 'main'Nick Mathewson2023-05-088-47/+52
|\ \ | |/ |/| | | | | | | | | Update deps Closes #844 and #841 See merge request tpo/core/arti!1170
| * allow rustls-webpki licensetrinity-1686a2023-05-081-0/+1
| |
| * fix a couple clippy lintstrinity-1686a2023-05-082-4/+4
| |
| * update rustls to 0.21trinity-1686a2023-05-083-24/+28
| |
| * update rsa to 0.9.xtrinity-1686a2023-05-083-19/+19
|/
* Merge branch 'shuffle-hsdirs' into 'main'gabi-2502023-05-045-18/+52
|\ | | | | | | | | tor-netdir: Shuffle the list of HS dirs used for downloading descriptors. See merge request tpo/core/arti!1155
| * tor-netdir: Shuffle the list of HS dirs used for downloading descriptors.Gabriela Moldovan2023-05-045-18/+52
|/ | | | | | | | We'll probably need the hsdir list to be shuffled deterministically for testing purposes (this might be desirable, for example, when we write a test for HS descriptor download retries). Signed-off-by: Gabriela Moldovan <[email protected]>
* Merge branch 'rpc_mgr' into 'main'Nick Mathewson2023-05-0418-172/+1110
|\ | | | | | | | | | | | | Refactor RPC once more; institute capabilities-style authentication; expose a Client. Closes #820 See merge request tpo/core/arti!1160