| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | | | | |
| | | | |
| | | | |
| | | | | |
Everything that this needs is un-gated now.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
These are complete. Un-gate the RouterStatusMdDigestsVote
implementation, and the export of both.
|
| | | | | |
| | | | |
| | | | |
| | | | | |
As per #2492.
|
| | | | | |
| | | | |
| | | | |
| | | | | |
As per #2492.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This is only used for hsdescs right now. But it doesn't need to be
gated behind encode.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This stabilises the parse2 and encode impls of consensus tyepe:
* {plain, md}::{Preamble, RouterStatus, RouterStatusIntroItem}
It also un-gates the parse2 and encode impls of some vote types.
* VoteAuthorityEntry - this type has been completed.
* RouterStatusMdDigestsVote - whole type still gated with ns-vote
Re the remaining vote types (vote::*): although each_variety.rs
doesn't have a cfg itself, there is a feature gate in the variety
macrology.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This stabilises the parse2 and encode impls of
* Lifetime
* ConsensusMethods
* SharedRandStatus
* ConsensusAuthorityEntry
All of these are complete.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | | |
There are no outstanding TODOs here.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Tidy the imports, and remove some now-unneeded { }.
We'll run rustfmt in a moment to sort and reindent.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This stabilises the parse2 and encode impls of
* NetParams<i32>
* ProtoStatuses
It also stabilises the parse2 impls of the following types which do
not currently have any encode impls:
* RelayWeight
* rs::SoftwareVersion
* IgnoredPublicationTimeSp
As for TODOs and incomplete code: the things we're stabilising here
are very simple, or fully formed.
Implementing encoding for IgnoredPublicationTimeSp looks impossible,
but we can cross that bridge when we come to it.
We un-cfg-gate the parse2 and encode imports too.
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
These are all parse2, and there are no blocking TODOs.
We're leaving `build_docs` alone.
|
| | | | | |
| | | | |
| | | | |
| | | | | |
This is just one cfg, for RelayPlatform.
|
| | | | | |
| | | | |
| | | | |
| | | | | |
There is one irrelevant TODO.
|
| | | | | |
| | | | |
| | | | |
| | | | | |
There is only one TODO in this file and it's not really relevant.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
There is one TODO DIRMIRROR but it's a possible API change.
I think it doesn't mean we can't un-gate this now.
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | | |
These are all parse2, and there are no blocking TODOs.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Remove a now-pointless pair of { }.
We'll reindent this in a moment.
|
| | | |/ /
| |/| |
| | | |
| | | | |
These are all parse2, and there are no blocking TODOs.
|
| |\ \ \ \
| |_|/ /
|/| | |
| | | |
| | | |
| | | |
| | | | |
Implement path inspection for RPC
Closes #2286
See merge request tpo/core/arti!3888
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This will make it possible to tell whether a path has been replaced
in the tunnel.
Since the UniqId type might change its representation in the future,
I've documented that we don't guarantee anything about the strings
used to distinguish paths.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
This enables the rpc client to call "arti:describe_path" and similar
methods on streams constructed via this mechanism.
|
| | | | |
| | | |
| | | |
| | | | |
Additionally, allow inspecting tunnel paths directly from streams.
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
stream-ctrl should have been stable a while ago, since it is a
dependency of arti/rpc, which is itself stable.
|
| |\ \ \ \
| |/ / /
|/| | |
| | | |
| | | | |
tor-llcrypto: Fix a derive to unconditionally Deftly
See merge request tpo/core/arti!3929
|
| | |/ /
| | |
| | |
| | |
| | | |
It is harmless to derive Deftly without doing more. Do that, rather
than cfg'ing the use of derive_deftly::Deftly.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Remove bodge for security-framework, and update it.
Closes #2387
See merge request tpo/core/arti!3928
|
| | | | | |
|
| | |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
Now that we've updated to MACOS_DEPLOYMENT_TARGET 10.15 (see !3920)
we can use more recent versions of the security-framework crate.
Closes #2387.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
geoip: Add an internal-use tool to convert geoip db formats.
See merge request tpo/core/arti!3909
|
| | |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
This should eventually be integrated with Tor's geoip-db-tool,
but for now, we ought to put this somewhere.
(And until the next tor-geoip crate is released, we can't really use
its new functionality.)
|
| |\ \ \
| |/ /
|/| |
| | |
| | |
| | |
| | | |
implement syslog support
Closes #444
See merge request tpo/core/arti!3817
|
| | | | |
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
tor-dirserver: Make sha1 and sha2 mutually exclusive in schema
See merge request tpo/core/arti!3917
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This commit makes use of the presence of only one descriptor hash inside
consensus_router_descriptor_member by adding a respective AND clause to
the select statements of missing descriptors to only select the rows
with a non-null SHA-1 (or SHA-2 for the sake of microdescs) in the
consensus_router_descriptor_member table.
This is defensive programming and should not be required in practice
because the docid as well as the "XOR" CHECK should already ensure that
this value is always non-NULL. However, if it still happens and slips
through, the statement would return NULL rows, which is not what we
want and was previously prevented by ensuring this field was never NULL
in the first place.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This commit modifies the consensus_router_descriptor_member table in the
database schema, removing the NOT NULL constraint on unsigned_sha1 and
unsigned_sha2 by replacing it with a new CHECK constraint that checks
that either one of them is set but not both.
The reason for this is as follows: We are going to use this table to
compute the queue of missing descriptors, which means that we can only
populate this table with the data we know from the consensus. The
consensus however tells us only one of those hashes, namely sha1 in the
case of a consensus-ns and sha2 in the case of a consensus-md.
In other words: This commit can also be seen as an effort to change the
design of the operation in such a way that the queue is obtained
directly from the database and not computed at the start during state
transition.
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
tor-netdoc: Parsing and encoding for netstatus authority sections
See merge request tpo/core/arti!3892
|