summaryrefslogtreecommitdiff
path: root/tor-netdoc
Commit message (Collapse)AuthorAgeFilesLines
...
* netdir: don't use relays with NoEdConsensus flag set.Nick Mathewson2020-10-191-1/+5
|
* Improvements to Relay type in tor-netdir.Nick Mathewson2020-10-191-4/+3
| | | | | | | | | | | Now, a Relay is always valid. This required some changes to the API: all_relays() has to return a new UncheckedRelay type that might or might not be valid, and the functions on Relay and ChanTarget that return ed25519 identities need to return an Ed25519Identity, not an ed25519::PublicKey. This change required some new encoding/decoding/conversion functions on Ed25519Identity.
* Calculate digest correctly when microdesc ends with base64 object.Nick Mathewson2020-10-193-23/+43
|
* Netdoc: validate objects even on unrecognized items.Nick Mathewson2020-10-194-10/+38
|
* portpolicy: note a spec issueNick Mathewson2020-10-191-1/+2
|
* Mark must-resolve XXXX issues with "XXXXM3".Nick Mathewson2020-10-186-7/+7
| | | | | | | | | | "M3" is for "milestone 3" -- my target to fix the technical debt that I think will be bad if we ship even a pre-alpha with it. These aren't necessarily _all_ must-resolve, but they're all must-look-at. Closes #15
* Update microdesc parsing: ed25519 keys are no longer optional.Nick Mathewson2020-10-181-10/+8
|
* Cleanup from prop315 implementation.Nick Mathewson2020-10-162-15/+10
| | | | | | | | Most of the fixes here are just removing comments that said "this isn't technically required but I'm going to pretend it is". I also made the "protocols" field in microdescs out of its Option<>, since we're now requiring that.
* Implement proposal 315: make various directory fields requiredNick Mathewson2020-10-162-18/+8
|
* Run "cargo upgrade".Nick Mathewson2020-10-151-4/+4
|
* Use Ed25519Identity in microdescriptors.Nick Mathewson2020-10-152-13/+19
|
* Document remaining private members of tor-netdoc.Nick Mathewson2020-10-105-7/+255
|
* Document most private items in tor-netdoc.Nick Mathewson2020-10-0910-8/+114
|
* Add routerdesc examplesNick Mathewson2020-10-077-0/+343
|
* netdoc: more tests for routerdesc parsingNick Mathewson2020-10-072-5/+107
|
* A few more tests in tor-netdocNick Mathewson2020-10-072-3/+90
|
* netdoc: test for signature/key checking funcNick Mathewson2020-10-071-0/+11
|
* mdconsensus: add tests for a few accessorsNick Mathewson2020-10-061-3/+26
|
* tests for some failing cases in mdconsensusNick Mathewson2020-10-0611-6/+780
|
* Tokenize: report accurate positions for more parsing errorsNick Mathewson2020-10-021-2/+18
|
* microdesc parsing: tests for bad microdescsNick Mathewson2020-10-023-0/+66
|
* tests and fixes for md content parsingNick Mathewson2020-10-022-11/+46
|
* netdoc: remove some outdated/unused stuff.Nick Mathewson2020-10-022-12/+6
|
* authcert: test error recovery.Nick Mathewson2020-10-021-10/+36
|
* Netdoc: use a more bulletproof pattern to prevent infinite loopsNick Mathewson2020-10-025-15/+84
| | | | | | | | | | | | | | | | Previously our "read a bunch of this kind of document" functions had a common problem, where they could get into an infinite loop if the underlying "read this kind of document" function failed without consuming any tokens. I _think_ that this error case was unreachable (or else fuzzing would have found it, right?), but proving that it was unreachable was a bit fiddly, and I couldn't follow my own arguments about it. Instead, we just store the position of the reader before we start reading, and make sure that it has consumed at least some data. If it hasn't, then we consume and drop a token before advancing to the next document.
* authcert: add tests for several ways certs can fail.Nick Mathewson2020-10-026-1/+263
|
* authcert: fix an error, and detect mismatched fingerprintsNick Mathewson2020-10-021-4/+14
|
* netdoc: rename BadVersion to BadTorVersion for clarityNick Mathewson2020-10-012-7/+7
|
* improve errors in authcert.rsNick Mathewson2020-10-012-12/+30
|
* Remove redundant signature check in authcert parsing.Nick Mathewson2020-09-301-4/+0
|
* More tests on parsing, plus remove dead code.Nick Mathewson2020-09-302-20/+56
|
* Start on some parser backend testsNick Mathewson2020-09-301-0/+77
|
* tokenize: accept base64 with funny linewraps.Nick Mathewson2020-09-301-3/+3
|
* More tests for tokenize.rs, with some bugfixesNick Mathewson2020-09-302-47/+192
|
* Start on some tests for parse::tokenize.rsNick Mathewson2020-09-294-4/+60
|
* Add tests for macros module in tor-netdoc.Nick Mathewson2020-09-291-4/+57
| | | | Also improve output for multi-keyword tokens.
* Tests and minor debugging in tor_netdoc::types::policyNick Mathewson2020-09-294-23/+250
|
* More tests for tor_netdoc::typesNick Mathewson2020-09-294-4/+264
|
* Move around the modules inside tor-netdoc.Nick Mathewson2020-09-2925-347/+350
| | | | | This change just gives them a more logical breakdown into parsing, documents, and misc other types.
* Rename remaining get_ accessorsNick Mathewson2020-09-287-130/+124
|
* tor_cert: rename accessorsNick Mathewson2020-09-283-4/+4
|
* Rename some identifiers in tor-linkspec.Nick Mathewson2020-09-281-3/+3
| | | | By convention, rust accessor functions don't start with 'get'.
* Fix a few clippy issuesNick Mathewson2020-09-271-2/+2
|
* Run cargo upgrade.Nick Mathewson2020-09-261-1/+1
|
* Give up on suppressing that nightly-only clippy warningNick Mathewson2020-09-181-6/+2
|
* Make consensus documents valid DistDelay seconds earlier.Nick Mathewson2020-09-181-1/+4
| | | | | This will prevent arti from hitting the same issue as https://gitlab.torproject.org/tpo/core/tor/-/issues/25756
* Resolve some nightly-only clippy warningsNick Mathewson2020-09-172-1/+3
|
* Fix a panic bug in microdesc parsing.Nick Mathewson2020-09-172-1/+4
| | | | | | | | Found by fuzzing! The issue was that we were relying on the arguments slice being within the input string, but we were sometimes using a different _empty_ slice when there were no arguments. I've noted a better solution in a comment.
* Add fuzzers for certs, netdoc, and proto.Nick Mathewson2020-09-177-0/+106
| | | | This was remarkably simple.
* use more correct expiration timesNick Mathewson2020-09-171-3/+2
|