| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Add an authcert builder, for testing. | Nick Mathewson | 2021-05-05 | 1 | -0/+13 |
| | | |||||
| * | Enforce (and obey) clippy lints about exhaustive enums, structs. | Nick Mathewson | 2021-04-27 | 1 | -0/+1 |
| | | | | | | | | | These lints force us to declare our exported enums and exhaustive-looking structs as non-exhaustive (so that we can add to them in the future without breaking our API) or to explicitly disable the warning for a given enum/struct (to say that we _intend_ for additions to be a breaking change). | ||||
| * | DirMgr: add text() and texts() functions to ask for document text | Nick Mathewson | 2021-03-31 | 1 | -1/+1 |
| | | | | | | Also, start on a larger refactoring where we ask for documents by their ID. | ||||
| * | Fix a bunch more new clippy lints in Rust 1.51 | Nick Mathewson | 2021-03-29 | 1 | -3/+2 |
| | | | | | | | | | The major types are: * You implemented Into when you should have implemented From. * You sliced a slice when you didn't have to. * You said Ok(x?) when you could have said x. * You said Vec::new(); push(); push(); when you could have said vec![]. | ||||
| * | Fix Rust-1.51 clippy warnings about acronyms in camel case. | Nick Mathewson | 2021-03-29 | 1 | -13/+13 |
| | | | | | This is painful, but we shouldn't have to do it again. | ||||
| * | Rename Rsa{Identity,Signature} to fix clippy warning. | Nick Mathewson | 2021-03-29 | 1 | -10/+10 |
| | | |||||
| * | Migrate from lazy_static to once_cell. | Nick Mathewson | 2020-12-22 | 1 | -24/+24 |
| | | |||||
| * | authcert: move location into UncheckedAuthCert. | Nick Mathewson | 2020-12-04 | 1 | -22/+39 |
| | | | | | This lets us make AuthCert Send and Sync. | ||||
| * | Initial pass on directory-manager code. | Nick Mathewson | 2020-11-19 | 1 | -1/+1 |
| | | | | | | | | | This code can now bootstrap from the network, cache the results, and reload from cache. There's lots more work to do here, including a big pile of tidying and refactoring and testing and documentation. | ||||
| * | Refactor AuthCertKeyIds::cmp(). | Nick Mathewson | 2020-11-19 | 1 | -5/+3 |
| | | |||||
| * | Make AuthCertKeyIds sortable. | Nick Mathewson | 2020-11-16 | 1 | -0/+16 |
| | | |||||
| * | Type and functions for key ID inspection of AuthCert. | Nick Mathewson | 2020-11-16 | 1 | -8/+34 |
| | | |||||
| * | Remember the position of authcert and microdescs | Nick Mathewson | 2020-11-14 | 1 | -4/+37 |
| | | | | | | We'll need this to save them to disk after parsing them from an upstream source. | ||||
| * | Remove a bunch of dbg! calls. | Nick Mathewson | 2020-10-26 | 1 | -2/+2 |
| | | |||||
| * | Document remaining private members of tor-netdoc. | Nick Mathewson | 2020-10-10 | 1 | -3/+15 |
| | | |||||
| * | A few more tests in tor-netdoc | Nick Mathewson | 2020-10-07 | 1 | -0/+1 |
| | | |||||
| * | 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 | 1 | -2/+14 |
| | | | | | | | | | | | | | | | | | 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 |
| | | |||||
| * | improve errors in authcert.rs | Nick Mathewson | 2020-10-01 | 1 | -12/+22 |
| | | |||||
| * | Remove redundant signature check in authcert parsing. | Nick Mathewson | 2020-09-30 | 1 | -4/+0 |
| | | |||||
| * | Move around the modules inside tor-netdoc. | Nick Mathewson | 2020-09-29 | 1 | -0/+294 |
| This change just gives them a more logical breakdown into parsing, documents, and misc other types. | |||||
