summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | CI: Break out some fast checks using debian imageIan Jackson2022-06-081-3/+8
| | | | |
| * | | | maint/check_toposort: Run in CIIan Jackson2022-06-081-0/+2
| | | | |
| * | | | Revert toplevel part of "Lexically sort Cargo.toml dependencies"Ian Jackson2022-06-081-26/+26
| | | | | | | | | | | | | | | | | | | | This reverts one file from commit bfd41ddb5fefe8808c33669c508dde4325808e35.
| * | | | maint/cargo_sort: Tolerate toplevel Cargo.toml not being sortedIan Jackson2022-06-081-2/+25
| | | | |
| * | | | maint/toposort: Make shebang be python3, not pythonIan Jackson2022-06-081-1/+1
| |/ / / | | | | | | | | | | | | | | | | Otherwise it doesn't work on sane systems where /usr/bin/python is never an incompatible version from previously.
* | | | Merge branch 'less-servfail' into 'main'Ian Jackson2022-06-097-15/+46
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | return nodata instead of servfail in some instances See merge request tpo/core/arti!564
| * | | | Change to exhaustive match.Ian Jackson2022-06-081-1/+2
| | | | |
| * | | | update semver.mdtrinity-1686a2022-06-081-0/+1
| | | | |
| * | | | try to differentiate transient from nontransient errortrinity-1686a2022-06-086-14/+33
| | | | |
| * | | | return nodata instead of servfail in some instancestrinity-1686a2022-06-081-3/+13
| |/ / /
* | | | Merge branch 'doc' into 'main'Nick Mathewson2022-06-081-2/+2
|\ \ \ \ | |/ / / |/| | | | | | | | | | | Fix a doc link See merge request tpo/core/arti!573
| * | | Fix a second docs linkIan Jackson2022-06-081-1/+1
| | | |
| * | | Fix a doc linkIan Jackson2022-06-081-1/+1
|/ / /
* | | Merge branch 'sleep' into 'main'Ian Jackson2022-06-0813-64/+143
|\ \ \ | | | | | | | | | | | | | | | | Plumb a SleepProvider (now Clone + ....) into Channel See merge request tpo/core/arti!569
| * | | Document semver changesIan Jackson2022-06-082-0/+2
| | | |
| * | | Plumb a SleepProvider into the channel reactorIan Jackson2022-06-086-58/+122
| | | | | | | | | | | | | | | | | | | | The channel reactor is going to want to be able to sleep so that it can do padding, so it needs a SleepProvider.
| * | | rt-compat: Make all the individual runtime traits Clone+Send etc.Ian Jackson2022-06-085-6/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will make it much more convenient for code that only wants one of these traits (or a subset of them). This is a good thing to support because it will allow us to use a ZST in places that do not need an actual async runtime handle (typically, the runtime handle is needed only for spawn).
* | | | Fix a rustdoc link.Nick Mathewson2022-06-071-1/+1
| | | |
* | | | Merge branch 'use-testing-rng'Nick Mathewson2022-06-0730-126/+141
|\ \ \ \
| * | | | Sort tor-rtmock dependencies.Nick Mathewson2022-06-071-1/+1
| | | | |
| * | | | Rewrite tests in tor-netdir to use testing_rng()Nick Mathewson2022-06-024-76/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The randomized tests in this crate take a lot of iterations to converge, so they default to using a deterministic PRNG seed with few iterations and higher tolerance, and they only randomize the tests (with more iterations and tighter tolerances) when you explicitly opt in to randomization. (If you specify a seed explicitly, you're doing that to reproduce a randomized case, so we use the same behavior.)
| * | | | Refactor fallback-set tests to work with deterministic PRNG.Nick Mathewson2022-06-021-10/+29
| | | | | | | | | | | | | | | | | | | | | | | | | The trouble was that one of the helper functions they used did not take a PRNG as an argument.
| * | | | Use testing_rng() in tests throughout our crates.Nick Mathewson2022-06-0229-41/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This only affects uses of thread_rng(), and affects them all more or less indiscriminately. One test does not work with ARTI_TEST_PRNG=deterministic; the next commit will fix it.
* | | | | Merge branch 'netdir_provider_in_guardmgr_v2' into 'main'Nick Mathewson2022-06-077-66/+190
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use NetDirProvider in GuardMgr Closes #93 See merge request tpo/core/arti!568
| * | | | | GuardMgr: Use installed netdir provider when we want a netdirNick Mathewson2022-06-071-20/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of our existing code optionally takes a netdir from the caller. When it doesn't give us one, use the netdir from the installed NetDirProvider. (Possibly someday we should remove the NetDir arguments entirely. I'm deferring that because there are only two APIs affected, and because making this change would force us to rewrite a pretty large mess of unit tests.)
| * | | | | Move responsibility for GuardMgr NetDir updates to GuardMgr.Nick Mathewson2022-06-074-39/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously it was the job of a task in CircMgr to do this; but we're going to want to give GuardMgr full access to the latest NetDir for this, and for other code-simplification reasons. With this change I'm deprecating a couple of functions in tor-circmgr. It's no longer necessary for us to have an artificial external way for you to feed new NetDirs to a circmgr. (I could just remove them, but I want practice deprecating.)
| * | | | | Remove now-redundant Send+Sync constraints alongside NetDirProviderNick Mathewson2022-06-073-8/+8
| | | | | |
| * | | | | Make NetDirProvider require Send and Sync.Nick Mathewson2022-06-072-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Our own code is the only stuff that consumes NetDirProvider, and all the code that consumes it wants it to be Send and Sync. Making this change avoids our having to define a new function to upcast Arc<dyn Foo> to Arc<dyn NetDirProvider + Send + Sync>.
| * | | | | Add an upcast_arc function to NetDirProvider.Nick Mathewson2022-06-021-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This uses some apparently-standard trickery to implement a function that lets us upcast from Arc<dyn Subtrait> to Arc<dyn Supertrait>. I considered as alternatives `as_dyn_trait` and `cast_dyn_object`. Both were nice, but generated a far larger interface than this.
* | | | | | Merge branch 'tor-netdoc-tests' into 'main'Nick Mathewson2022-06-0712-24/+199
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Scattered tests throughout tor-netdoc See merge request tpo/core/arti!562
| * | | | | | Netdoc tests: extract decode-base64-ignore-ws code.Nick Mathewson2022-06-071-10/+13
| | | | | | |
| * | | | | | microdesc: make sure we recover from an error in the final md.Nick Mathewson2022-06-071-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (This is slightly different from recovering from errors in the middle of a list of mds, since in this case we _can't_ advance to the next md.) Also, note that a given branch is probably not reachable.
| * | | | | | netdoc: test case for microdesc with no ed25519 id.Nick Mathewson2022-06-072-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "bad-id" microdescriptor is hand-edited based on one from a Chutney network.
| * | | | | | netdoc: test a couple of accessors for AuthCert.Nick Mathewson2022-06-071-1/+11
| | | | | | |
| * | | | | | Netdoc: test enforcement for items that mustn't take objects.Nick Mathewson2022-06-071-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Found via coverage.
| * | | | | | netdoc: remove an unused method.Nick Mathewson2022-06-071-12/+0
| | | | | | |
| * | | | | | netdoc: Test more accessors for tokenized documents.Nick Mathewson2022-06-072-4/+20
| | | | | | |
| * | | | | | Netdoc: add accessor to error for ParseErrorKindNick Mathewson2022-06-071-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The kind type was already public, but we didn't give the user any way to get it.
| * | | | | | netdoc: tests for parsing UnvalidatedEdCert.Nick Mathewson2022-06-071-1/+47
| | | | | | |
| * | | | | | tor-cert: Make more types Clone and Debug.Nick Mathewson2022-06-071-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Not sure how we missed this before. This is part of making more of tor-netdoc tested.)
| * | | | | | Tests for netdoc RsaPublic type.Nick Mathewson2022-06-071-2/+37
| | | | | | |
| * | | | | | Fix a copy-paste error in Ed25519 parsing tests.Nick Mathewson2022-06-011-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We accidentally tried to validate (invalid) ed25519 keys as curve25519 keys.
| * | | | | | Add test for parsing bad tor version with too many elements.Nick Mathewson2022-06-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a coverage-driven test.
| * | | | | | Add test for mutability of RelayFamily.Nick Mathewson2022-06-011-0/+9
| | | | | | |
| * | | | | | Tests for tor_netdoc::util::internNick Mathewson2022-06-011-0/+33
| | |_|/ / / | |/| | | |
* | | | | | Merge branch 'ticket463_01-cell' into 'main'Ian Jackson2022-06-076-1/+599
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | cell: Implement UDP cell ABI See merge request tpo/core/arti!542
| * | | | | | udp: New AddressPort used in cellsDavid Goulet2022-06-072-42/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
| * | | | | | udp: Allow empty hostname and no nul byteIan Jackson2022-06-073-34/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After changes to the prop339, the domain name in an Address can only be 255 bytes max and can NOT contain nul byte(s). Unit tests had to be modified to accept this change: - Centralise msg_ip_address - Add currently-passing tests for address length - Test counted address length longer than type wants Related to #463 Signed-off-by: David Goulet <[email protected]>
| * | | | | | cell: Don't use NUL terminated string in CONNECT_UDPDavid Goulet2022-06-073-43/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: David Goulet <[email protected]>
| * | | | | | cell: Move UDP to its own module and feature gate itDavid Goulet2022-06-076-314/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Related to #463 Signed-off-by: David Goulet <[email protected]>