| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | 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 | 1 | -0/+45 | |
| | | ||||||
| * | tests and fixes for md content parsing | Nick Mathewson | 2020-10-02 | 1 | -11/+43 | |
| | | ||||||
| * | 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 | 1 | -1/+38 | |
| | | ||||||
| * | 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 | 20 | -337/+346 | |
| | | | | | | 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 | |
| | | ||||||
| * | 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. | |||||
| * | use more correct expiration times | Nick Mathewson | 2020-09-17 | 1 | -3/+2 | |
| | | ||||||
| * | New "linkspec" module to encapsulate info needed to connect/extend. | Nick Mathewson | 2020-09-08 | 1 | -0/+8 | |
| | | ||||||
| * | Start on accessors for relay weight. | Nick Mathewson | 2020-09-08 | 1 | -1/+25 | |
| | | ||||||
| * | Refactor timerangebound to unwrap bounds earlier. | Nick Mathewson | 2020-09-08 | 3 | -6/+3 | |
| | | | | | This will make them easier to adjust | |||||
| * | Bugfix: parse ed25519 ids right in mds | Nick Mathewson | 2020-09-08 | 1 | -2/+2 | |
| | | ||||||
| * | Netdir: a few more accessors | Nick Mathewson | 2020-09-08 | 1 | -1/+1 | |
| | | ||||||
| * | netdoc: add a few accessors | Nick Mathewson | 2020-09-07 | 2 | -2/+42 | |
| | | ||||||
| * | Fix clippy warnings; improve key type for consensus. | Nick Mathewson | 2020-09-07 | 2 | -2/+2 | |
| | | ||||||
| * | netdoc: ignore bad entries in families. | Nick Mathewson | 2020-09-07 | 1 | -0/+4 | |
| | | | | | Some of these are nicknames, which we can safely ignore. | |||||
| * | Start on a 'netdir' crate to wrap netdoc. | Nick Mathewson | 2020-09-07 | 2 | -2/+19 | |
| | | | | | For now, this assumes an existing Tor cache directory. | |||||
| * | Make MDConsensus also follow the checkable pattern. | Nick Mathewson | 2020-09-03 | 1 | -14/+92 | |
| | | ||||||
| * | Port authcert to use tor_checkable. | Nick Mathewson | 2020-09-03 | 4 | -28/+55 | |
| | | ||||||
| * | Migrate certificate and routerdesc checking to tor-checkable | Nick Mathewson | 2020-09-03 | 3 | -80/+104 | |
| | | | | | | Now these types are parsed and returned wrapped inside a checkable object. | |||||
| * | netdoc: Parser for microdesc consensus documents | Nick Mathewson | 2020-08-27 | 5 | -0/+1143 | |
| | | | | | | There's more to do here, and things to refactor, but this ought to be enough to get a rudimentary client working. | |||||
| * | netdoc: parse multiple authcerts from a string. | Nick Mathewson | 2020-08-27 | 2 | -0/+42 | |
| | | ||||||
| * | netdoc: add a check_len method for B64 | Nick Mathewson | 2020-08-26 | 1 | -0/+11 | |
| | | ||||||
| * | Add a B16 argument type, to mirror B64. | Nick Mathewson | 2020-07-20 | 1 | -0/+29 | |
| | | ||||||
| * | More parsing for fingerprints, including non-spaced fingerprints. | Nick Mathewson | 2020-07-20 | 1 | -4/+22 | |
| | | ||||||
| * | tor-netdoc: Make SectionRules derive Clone. | Nick Mathewson | 2020-07-20 | 1 | -0/+1 | |
| | | | | | | | This is going to come in handy for the networkstatus stuff, where I need to define different variants of SectionRules for votes and consensuses. | |||||
| * | Update to latest packages; ed25519 now needs signature crate traits. | Nick Mathewson | 2020-07-20 | 1 | -0/+1 | |
| | | ||||||
| * | Run cargo fix --edition-idioms | Nick Mathewson | 2020-06-26 | 1 | -1/+1 | |
| | | ||||||
| * | Mark a variable unused | Nick Mathewson | 2020-06-12 | 1 | -1/+1 | |
| | | ||||||
