| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | 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 | |
| | | ||||||
| * | Add documentation for authcert parsing. | Nick Mathewson | 2020-06-11 | 2 | -2/+22 | |
| | | ||||||
| * | update to use latest rust-crypto traits and modules | Nick Mathewson | 2020-06-10 | 2 | -7/+7 | |
| | | ||||||
| * | Add a couple of commits missing from previous. | Nick Mathewson | 2020-06-09 | 2 | -0/+6 | |
| | | ||||||
| * | netdoc: initial implementation of authority certs. | Nick Mathewson | 2020-06-09 | 1 | -0/+197 | |
| | | ||||||
| * | netdoc: note a forward-compatibility issue with RSA signatures. | Nick Mathewson | 2020-06-09 | 2 | -0/+2 | |
| | | ||||||
| * | netdoc: when parsing from a string, detect extra tokens | Nick Mathewson | 2020-06-09 | 3 | -4/+15 | |
| | | ||||||
| * | Netdoc: allow parsing multiple routerdescs from a string. | Nick Mathewson | 2020-06-09 | 5 | -30/+182 | |
| | | ||||||
| * | netdoc: report microdesc errors at correct offsets. | Nick Mathewson | 2020-06-09 | 1 | -2/+5 | |
| | | ||||||
| * | netdoc: fix microdesc digest calculation at last. | Nick Mathewson | 2020-06-09 | 2 | -13/+21 | |
| | | ||||||
| * | Add a "first_item" entry for Section. | Nick Mathewson | 2020-06-09 | 1 | -2/+19 | |
| | | | | | This will make it simpler to implement digests for sections. | |||||
| * | Add a "last_item" entry for Section. | Nick Mathewson | 2020-06-09 | 1 | -1/+20 | |
| | | | | | This will make it simpler to implement digests for sections. | |||||
| * | netdoc: recover from microdesc parsing errors | Nick Mathewson | 2020-06-08 | 2 | -3/+56 | |
| | | | | | | | | | | On an error, advance to the start of the next microdesc. There's a possible issue with this approach where if we aren't careful, we might wind up in an infinite loop. I've made a comment about the fragility here, but it would probably be good to revisit this design. | |||||
| * | netdoc: add an iterator that can parse annotated microdescs | Nick Mathewson | 2020-06-07 | 1 | -1/+88 | |
| | | ||||||
| * | Implement parsing for microdescriptor annotations | Nick Mathewson | 2020-06-06 | 2 | -4/+53 | |
| | | | | | | This patch also updates the microdescriptor parsing so we can handle a whole bunch of them in a row. | |||||
| * | netdoc: fix behavior when using a fancy closure with PauseAt. | Nick Mathewson | 2020-06-06 | 1 | -14/+54 | |
| | | | | | | | | | | Previously, every call to peek() or next() would call self.pred(). But this would run us into trouble if we were using a closure that had mutable state, since it would stop us from checking for things like "the third occurrence of the foo token". Now we store the value of self.pred(self.peek()). | |||||
| * | netdoc: add annotation fields for microdescriptors | Nick Mathewson | 2020-06-06 | 1 | -1/+8 | |
| | | ||||||
| * | note that microdescriptor sha256 calculation is wrong | Nick Mathewson | 2020-06-03 | 1 | -0/+2 | |
| | | ||||||
| * | Restore a pause_at() method, but for NetDocReader. | Nick Mathewson | 2020-06-03 | 2 | -4/+24 | |
| | | ||||||
| * | Remove the Pausable trait as busted. | Nick Mathewson | 2020-06-03 | 2 | -41/+14 | |
| | | | | | | | We need to have the Peekable be long-lived, so we can't consume it. We _could_ create a second Peekable, which is apparently what we have been doing, but that breaks down when we try to do it again. | |||||
| * | netdoc: Refactor iteration over tokens. | Nick Mathewson | 2020-06-03 | 4 | -22/+52 | |
| | | | | | | I want the "peekable iterator" type to be passed around a lot, and it needs to have some way to get at the string that's used with it. | |||||
| * | Netdoc: tweak definition for keywords to accommodate annotations | Nick Mathewson | 2020-05-27 | 4 | -7/+23 | |
| | | | | | | | The macro can now define annotations that don't count as regular keywords. Additionally, the Keyword trait is now tweaked to take advantage of the fact that every Keyword is Copy. | |||||
| * | netdoc: exit an object if we encounter non-base64. | Nick Mathewson | 2020-05-20 | 1 | -0/+24 | |
| | | | | | | This way, an unterminated base64 object doesn't "eat" the whole rest of something we're trying to parse. | |||||
| * | netdoc: tokenizer should always consume bytes if they exist. | Nick Mathewson | 2020-05-20 | 1 | -7/+14 | |
| | | | | | | | | Also document that it always consumes a positive integer number of lines. This is part of an effort to improve error recovery. | |||||
