aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-netdoc/src/doc/authcert
Commit message (Collapse)AuthorAgeFilesLines
* tor-netdoc: embedded auth certs: Use real vote type, not poc (fmt)Ian Jackson2026-06-221-3/+1
|
* tor-netdoc: embedded auth certs: Use real vote type, not pocIan Jackson2026-06-221-3/+1
|
* tor-netdoc: fix EncodedAuthCert parsingIan Jackson2026-06-151-1/+2
| | | | | | | | | It would swallow the whole rest of the document, leading to bizarre output on re-encoding. There is no test case for this in-tree (which is why this is cfg "incomplete"), but I have a full roundtrip test of a vote (which contains an authcert) in a wip branch, which detected this problem.
* maint: Run maint/add_warning to deny string slicesClara Engler2026-06-092-0/+2
| | | | | | | | | | | | This commit executes maint/add_warning with the just added change to deny string slices except in tests. I recommend auditing this by checking out the previous commit followed by running the script yourself and then verifying that the diff is identical to this commit. This commit makes cargo clippy fail. We will add exceptions in the next commit.
* tor-netdoc: Gate vote-related incomplete code with "incomplete" (fmt)Ian Jackson2026-04-281-4/+1
|
* tor-netdoc: Gate vote-related incomplete code with "incomplete" (tidy)Ian Jackson2026-04-281-4/+5
|
* tor-netdoc: Gate vote-related incomplete code with "incomplete"Ian Jackson2026-04-281-1/+1
| | | | | | | | | | | Change "ns-vote" gates to "incomplete": * `vote` modules, and in the variety macro. (And make a TODO more likely to be found.) Change "parse2" gates to "incomplete": * VoteAuthoritySection
* tor-netdoc: EncodedAuthCert: implement NetdocEncodableIan Jackson2026-04-271-0/+13
|
* tor-netdoc: Port to web-time-compatNick Mathewson2026-03-261-2/+3
|
* tor-netdoc: parse2: Don't impl NetdocParseable for bodies of signed docsIan Jackson2026-03-191-3/+7
| | | | Such an impl is a footgun. Explain this in docs & comments.
* tor-netdoc: parse2: Don't impl NetdocParseable for bodies of signed docs ↵Ian Jackson2026-03-191-3/+7
| | | | (pre-fmt)
* tor-netdoc: Remove remaining use of EP::OtherClara Engler2026-01-151-8/+16
| | | | | | This commit replaces the last remaining uses of `EP::Other` in `tor-netdoc`, which got removed in arti!3561 but was still made use of in arti!3592 without causing a merge conflict.
* tor-netdoc: EncodedAuthCert: docs grammarIan Jackson2026-01-151-1/+1
|
* tor-netdoc: EncodedAuthCert: remove another bit of leftover debugIan Jackson2026-01-151-1/+0
|
* tor-netdoc: EncodedAuthCert: remove a hard tab in a commentIan Jackson2026-01-151-1/+1
|
* tor-netdoc: EncodedAuthCert: remove a bit of leftover debugIan Jackson2026-01-151-1/+1
|
* tor-netdoc: EncodedAuthCert: move future plans to a commentIan Jackson2026-01-151-0/+22
| | | | This probably isn't going to happen, but let's keep the idea in-tree.
* tor-netdoc: EncodedAuthCert: move/tidy rationale informationIan Jackson2026-01-151-0/+20
| | | | | Move the information which still seems relevant out of the plan document.
* tor-netdoc: EncodedAuthCert: unit testsIan Jackson2026-01-151-0/+197
|
* tor-netdoc: EncodedAuthCert: implementIan Jackson2026-01-151-0/+208
| | | | As per doc/dev/notes/authcert-in-consensus.md.
* tor-netdoc: constructors: Use manual non exhaustiveIan Jackson2026-01-141-0/+1
| | | | With `#[non_exhaustive]`, you're not allowed to write even `Thing { ..base }`.
* tor-netdoc: Deprecate AuthCertBuilderIan Jackson2026-01-131-0/+2
|
* tor-netdoc: authcert: Add CrossCert to AuthCertIan Jackson2026-01-061-1/+7
| | | | This will enable parse2 to process it.
* tor-netdoc: authcert: Move AuthCertVersion out of tmpIan Jackson2026-01-061-1/+2
| | | | | Let's keep the existing name `AuthCert` in authcert.rs, so we want to rename this from DirKeyCertificateVersion, while we move it.
* tor-netdoc: authcert: Use Iso8601TimeSp for time fieldsIan Jackson2026-01-061-2/+4
| | | | This will let the parse2 derive work properly.
* tor-netdoc: authcert: Shuffle fingerprint values aboutIan Jackson2026-01-061-8/+2
| | | | | | | | | Make AuthCert look like the network document. This means removing its stored copy of H(KP_auth_sign_rsa), which it previously had via the embedded AuthCertKeyIds. We reculculate it as needed in AuthCert::key_ids().
* tor-netdoc: authcert: Rename fields in AuthCert to match the specIan Jackson2026-01-061-14/+14
|
* Fix name of clippy lint to unchecked_time_subtraction (2)Ian Jackson2025-11-061-1/+1
| | | | Run maint/add_warning
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-071-2/+6
| | | | | | | | | | | | | | First, run ``` git grep -l "^edition =" | xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;' ``` Second, manually verify that all Cargo.toml files have changed, and nothing else has changed. Third, run cargo fmt again.
* Run maint/add_warning.Nick Mathewson2024-03-131-0/+1
|
* Run maint/add_warning to add lint block everywhereIan Jackson2023-08-231-0/+1
|
* Run maint/add_warning to actually apply new lint allowsIan Jackson2023-07-101-0/+1
|
* Allow clippy::unchecked_duration_subtraction in testsNick Mathewson2023-01-271-0/+1
| | | | | This panics on error, and we're fine with a panic on misbehavior in tests.
* test lint blocks: Add many many automaticallyIan Jackson2022-12-121-0/+8
| | | | | This is precisely the result of running the rune in maint/adhoc-add-lint-blocks.
* add feature annotation not added by doc_auto_cfgtrinity-1686a2022-08-241-0/+1
|
* Remove allow(clippy::disallowed_methods) lint.Nick Mathewson2022-03-301-2/+0
|
* use wallclock where possible in teststrinity-1686a2022-02-261-0/+2
|
* netdoc: Make doc-build errors a separate typeNick Mathewson2022-02-141-2/+2
| | | | | Every other case of tor_netdoc::Error means a parse failure. This one, though, means a failure to construct a document.
* fix/silence clippy lints in test modulesDaniel Eades2021-09-081-0/+1
|
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-271-0/+205
This will cause some pain for now, but now is really the best time to do this kind of thing.