Ian Jackson
9c92022663
channel padding timer: document state invariants
...
There aren't very many.
2022-06-09 16:31:11 +01:00
Ian Jackson
be04c05cce
Fix more typos in comments, from a spellchecker
2022-06-09 16:31:08 +01:00
Nick Mathewson
e8999d0b57
Merge branch 'clippy' into 'main'
...
clippy: Allow dbg in tests *again*
See merge request tpo/core/arti!575
2022-06-09 15:17:09 +00:00
Nick Mathewson
2a53460d4e
Merge branch 'topo' into 'main'
...
Fix topo sorting of Cargo.toml and reorganise CI jobs a bit
Closes #495
See merge request tpo/core/arti!576
2022-06-09 15:16:15 +00:00
Nick Mathewson
b9db07fea9
Fix typo in comment
2022-06-09 15:01:56 +00:00
Nick Mathewson
1adc65ab53
Fix erroneous comment
2022-06-09 14:58:30 +00:00
Nick Mathewson
5815e14b94
Fix typos in comments
2022-06-09 14:58:17 +00:00
Nick Mathewson
38fcca7847
Fix typo in clippy-nightly.toml
2022-06-09 14:08:48 +00:00
Ian Jackson
eb7bcc963b
dirclient: Replace four very similar "ids in request"
...
In reviewing !553 I noticed that the empty digest list error had to be
handled in two places. I filed #492 about the duplication.
In fact it turns out to have been quadruplication.
The new code also avoids cloning the underlying objects, instead
sorting a Vec of references.
2022-06-09 15:05:32 +01:00
Ian Jackson
361e1ba21b
dirclient: Test consensus request based on empty ConsensusRequest
...
I'm not sure this is right. But providing a test case for it before
my next change ensures that my refactoring doesn't change the
behaviour.
2022-06-09 15:03:44 +01:00
Ian Jackson
7e7cda1656
Merge branch 'less-servfail' into 'main'
...
return nodata instead of servfail in some instances
See merge request tpo/core/arti!564
2022-06-09 11:12:58 +00:00
Ian Jackson
86c4f42c49
CI: Break out maint/via-cargo-install
2022-06-08 19:32:59 +01:00
Ian Jackson
d65c0023c5
CI: Break out some fastish Rust checks into new "build" step
2022-06-08 19:32:59 +01:00
Ian Jackson
9a8d75b844
CI: Break out some fast checks using debian image
2022-06-08 19:30:16 +01:00
Ian Jackson
84d5845eb6
maint/check_toposort: Run in CI
2022-06-08 18:35:56 +01:00
Ian Jackson
7c1f0e15b1
Revert toplevel part of "Lexically sort Cargo.toml dependencies"
...
This reverts one file from commit bfd41ddb5f
.
2022-06-08 18:27:45 +01:00
Ian Jackson
d00ba995be
maint/cargo_sort: Tolerate toplevel Cargo.toml not being sorted
2022-06-08 18:27:45 +01:00
Ian Jackson
ba016053de
maint/toposort: Make shebang be python3, not python
...
Otherwise it doesn't work on sane systems where /usr/bin/python is
never an incompatible version from previously.
2022-06-08 17:17:20 +01:00
Ian Jackson
73c65d4c1a
clippy: Allow dbg in tests *again*
...
*sigh*
2022-06-08 17:08:40 +01:00
Ian Jackson
3f2e164bc5
tor-proto: padding: Test padding timer distribution
2022-06-08 16:04:58 +01:00
Ian Jackson
bbcdf9dd8b
tor-proto: channel: Use padding::Timer
2022-06-08 16:04:58 +01:00
Ian Jackson
0027b2371f
tor-proto: channel: Provide padding::Timer
2022-06-08 16:04:58 +01:00
Ian Jackson
af92d72b39
Change to exhaustive match.
2022-06-08 16:02:22 +01:00
trinity-1686a
e3c9152977
update semver.md
2022-06-08 16:02:22 +01:00
trinity-1686a
6c6998a65b
try to differentiate transient from nontransient error
2022-06-08 16:02:01 +01:00
trinity-1686a
515a96a46e
return nodata instead of servfail in some instances
2022-06-08 16:02:01 +01:00
Nick Mathewson
35fc0f444b
Merge branch 'doc' into 'main'
...
Fix a doc link
See merge request tpo/core/arti!573
2022-06-08 14:34:09 +00:00
Ian Jackson
3260a9b720
Fix a second docs link
2022-06-08 14:41:22 +01:00
Ian Jackson
35664c33e2
Fix a doc link
2022-06-08 14:39:18 +01:00
Ian Jackson
d202c3e9ca
Merge branch 'sleep' into 'main'
...
Plumb a SleepProvider (now Clone + ....) into Channel
See merge request tpo/core/arti!569
2022-06-08 10:46:37 +00:00
Ian Jackson
8eb215bf81
Document semver changes
2022-06-08 11:24:26 +01:00
Ian Jackson
e8fc1036d3
Plumb a SleepProvider into the channel reactor
...
The channel reactor is going to want to be able to sleep so that it
can do padding, so it needs a SleepProvider.
2022-06-08 11:24:26 +01:00
Ian Jackson
3ba3b26842
rt-compat: Make all the individual runtime traits Clone+Send etc.
...
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).
2022-06-08 11:24:26 +01:00
Nick Mathewson
47a8c05ff3
Fix a rustdoc link.
2022-06-07 19:19:53 -04:00
Nick Mathewson
5854e4bbd9
Merge branch 'use-testing-rng'
2022-06-07 19:02:12 -04:00
Nick Mathewson
b1b7f30de0
Merge branch 'netdir_provider_in_guardmgr_v2' into 'main'
...
Use NetDirProvider in GuardMgr
Closes #93
See merge request tpo/core/arti!568
2022-06-07 20:46:27 +00:00
Nick Mathewson
68942f0c40
Merge branch 'tor-netdoc-tests' into 'main'
...
Scattered tests throughout tor-netdoc
See merge request tpo/core/arti!562
2022-06-07 18:31:40 +00:00
Ian Jackson
cc91252f9d
Merge branch 'ticket463_01-cell' into 'main'
...
cell: Implement UDP cell ABI
See merge request tpo/core/arti!542
2022-06-07 18:03:27 +00:00
Nick Mathewson
126bf7dace
Netdoc tests: extract decode-base64-ignore-ws code.
2022-06-07 12:45:59 -04:00
Nick Mathewson
d30899d387
microdesc: make sure we recover from an error in the final md.
...
(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.
2022-06-07 12:45:59 -04:00
Nick Mathewson
42d6d02fbe
netdoc: test case for microdesc with no ed25519 id.
...
The "bad-id" microdescriptor is hand-edited based on one from a
Chutney network.
2022-06-07 12:45:57 -04:00
Nick Mathewson
48fff1d735
netdoc: test a couple of accessors for AuthCert.
2022-06-07 12:45:57 -04:00
Nick Mathewson
97c8c27514
Netdoc: test enforcement for items that mustn't take objects.
...
Found via coverage.
2022-06-07 12:45:57 -04:00
Nick Mathewson
c5e56c734d
netdoc: remove an unused method.
2022-06-07 12:45:57 -04:00
Nick Mathewson
41be108b51
netdoc: Test more accessors for tokenized documents.
2022-06-07 12:45:57 -04:00
Nick Mathewson
102600e1c7
Netdoc: add accessor to error for ParseErrorKind
...
The kind type was already public, but we didn't give the user any
way to get it.
2022-06-07 12:45:57 -04:00
Nick Mathewson
171aa5ea00
netdoc: tests for parsing UnvalidatedEdCert.
2022-06-07 12:45:57 -04:00
Nick Mathewson
086ad51f82
tor-cert: Make more types Clone and Debug.
...
(Not sure how we missed this before. This is part of making more of
tor-netdoc tested.)
2022-06-07 12:45:57 -04:00
Nick Mathewson
9641d5ff59
Tests for netdoc RsaPublic type.
2022-06-07 12:45:57 -04:00
David Goulet
3da4b95434
udp: New AddressPort used in cells
...
Signed-off-by: David Goulet <dgoulet@torproject.org>
2022-06-07 12:29:51 -04:00