| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | netdir: don't use relays with NoEdConsensus flag set. | Nick Mathewson | 2020-10-19 | 1 | -1/+5 | |
| | | ||||||
| * | Improvements to Relay type in tor-netdir. | Nick Mathewson | 2020-10-19 | 1 | -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 Mathewson | 2020-10-19 | 3 | -23/+43 | |
| | | ||||||
| * | Netdoc: validate objects even on unrecognized items. | Nick Mathewson | 2020-10-19 | 4 | -10/+38 | |
| | | ||||||
| * | portpolicy: note a spec issue | Nick Mathewson | 2020-10-19 | 1 | -1/+2 | |
| | | ||||||
| * | Mark must-resolve XXXX issues with "XXXXM3". | Nick Mathewson | 2020-10-18 | 6 | -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 Mathewson | 2020-10-18 | 1 | -10/+8 | |
| | | ||||||
| * | Cleanup from prop315 implementation. | Nick Mathewson | 2020-10-16 | 2 | -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 required | Nick Mathewson | 2020-10-16 | 2 | -18/+8 | |
| | | ||||||
| * | Run "cargo upgrade". | Nick Mathewson | 2020-10-15 | 1 | -4/+4 | |
| | | ||||||
| * | Use Ed25519Identity in microdescriptors. | Nick Mathewson | 2020-10-15 | 2 | -13/+19 | |
| | | ||||||
| * | Document remaining private members of tor-netdoc. | Nick Mathewson | 2020-10-10 | 5 | -7/+255 | |
| | | ||||||
| * | Document most private items in tor-netdoc. | Nick Mathewson | 2020-10-09 | 10 | -8/+114 | |
| | | ||||||
| * | Add routerdesc examples | Nick Mathewson | 2020-10-07 | 7 | -0/+343 | |
| | | ||||||
| * | netdoc: more tests for routerdesc parsing | Nick Mathewson | 2020-10-07 | 2 | -5/+107 | |
| | | ||||||
| * | A few more tests in tor-netdoc | Nick Mathewson | 2020-10-07 | 2 | -3/+90 | |
| | | ||||||
| * | netdoc: test for signature/key checking func | Nick Mathewson | 2020-10-07 | 1 | -0/+11 | |
| | | ||||||
| * | mdconsensus: add tests for a few accessors | Nick Mathewson | 2020-10-06 | 1 | -3/+26 | |
| | | ||||||
| * | tests for some failing cases in mdconsensus | Nick Mathewson | 2020-10-06 | 11 | -6/+780 | |
| | | ||||||
| * | Tokenize: report accurate positions for more parsing errors | Nick Mathewson | 2020-10-02 | 1 | -2/+18 | |
| | | ||||||
| * | microdesc parsing: tests for bad microdescs | Nick Mathewson | 2020-10-02 | 3 | -0/+66 | |
| | | ||||||
| * | tests and fixes for md content parsing | Nick Mathewson | 2020-10-02 | 2 | -11/+46 | |
| | | ||||||
| * | netdoc: remove some outdated/unused stuff. | Nick Mathewson | 2020-10-02 | 2 | -12/+6 | |
| | | ||||||
| * | authcert: test error recovery. | Nick Mathewson | 2020-10-02 | 1 | -10/+36 | |
| | | ||||||
| * | Netdoc: use a more bulletproof pattern to prevent infinite loops | Nick Mathewson | 2020-10-02 | 5 | -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 Mathewson | 2020-10-02 | 6 | -1/+263 | |
| | | ||||||
| * | authcert: fix an error, and detect mismatched fingerprints | Nick Mathewson | 2020-10-02 | 1 | -4/+14 | |
| | | ||||||
| * | netdoc: rename BadVersion to BadTorVersion for clarity | Nick Mathewson | 2020-10-01 | 2 | -7/+7 | |
| | | ||||||
| * | improve errors in authcert.rs | Nick Mathewson | 2020-10-01 | 2 | -12/+30 | |
| | | ||||||
| * | Remove redundant signature check in authcert parsing. | Nick Mathewson | 2020-09-30 | 1 | -4/+0 | |
| | | ||||||
| * | More tests on parsing, plus remove dead code. | Nick Mathewson | 2020-09-30 | 2 | -20/+56 | |
| | | ||||||
| * | Start on some parser backend tests | Nick Mathewson | 2020-09-30 | 1 | -0/+77 | |
| | | ||||||
| * | tokenize: accept base64 with funny linewraps. | Nick Mathewson | 2020-09-30 | 1 | -3/+3 | |
| | | ||||||
| * | More tests for tokenize.rs, with some bugfixes | Nick Mathewson | 2020-09-30 | 2 | -47/+192 | |
| | | ||||||
| * | Start on some tests for parse::tokenize.rs | Nick Mathewson | 2020-09-29 | 4 | -4/+60 | |
| | | ||||||
| * | Add tests for macros module in tor-netdoc. | Nick Mathewson | 2020-09-29 | 1 | -4/+57 | |
| | | | | | Also improve output for multi-keyword tokens. | |||||
| * | Tests and minor debugging in tor_netdoc::types::policy | Nick Mathewson | 2020-09-29 | 4 | -23/+250 | |
| | | ||||||
| * | More tests for tor_netdoc::types | Nick Mathewson | 2020-09-29 | 4 | -4/+264 | |
| | | ||||||
| * | Move around the modules inside tor-netdoc. | Nick Mathewson | 2020-09-29 | 25 | -347/+350 | |
| | | | | | | This change just gives them a more logical breakdown into parsing, documents, and misc other types. | |||||
| * | Rename remaining get_ accessors | Nick Mathewson | 2020-09-28 | 7 | -130/+124 | |
| | | ||||||
| * | tor_cert: rename accessors | Nick Mathewson | 2020-09-28 | 3 | -4/+4 | |
| | | ||||||
| * | Rename some identifiers in tor-linkspec. | Nick Mathewson | 2020-09-28 | 1 | -3/+3 | |
| | | | | | By convention, rust accessor functions don't start with 'get'. | |||||
| * | Fix a few clippy issues | Nick Mathewson | 2020-09-27 | 1 | -2/+2 | |
| | | ||||||
| * | Run cargo upgrade. | Nick Mathewson | 2020-09-26 | 1 | -1/+1 | |
| | | ||||||
| * | Give up on suppressing that nightly-only clippy warning | Nick Mathewson | 2020-09-18 | 1 | -6/+2 | |
| | | ||||||
| * | Make consensus documents valid DistDelay seconds earlier. | Nick Mathewson | 2020-09-18 | 1 | -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 warnings | Nick Mathewson | 2020-09-17 | 2 | -1/+3 | |
| | | ||||||
| * | Fix a panic bug in microdesc parsing. | Nick Mathewson | 2020-09-17 | 2 | -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 Mathewson | 2020-09-17 | 7 | -0/+106 | |
| | | | | | This was remarkably simple. | |||||
| * | use more correct expiration times | Nick Mathewson | 2020-09-17 | 1 | -3/+2 | |
| | | ||||||
