| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | fix nighly clippy | trinity-1686a | 2022-07-23 | 2 | -6/+2 |
| | | |||||
| * | change usage of PublicKey to Ed25519 in tor-cert | trinity-1686a | 2022-07-23 | 2 | -9/+11 |
| | | | | | and propagate to other affected crates | ||||
| * | change check_key to take a Option<&_> instead of &Option<_> | trinity-1686a | 2022-07-23 | 1 | -2/+2 |
| | | |||||
| * | Fix clippy needless deref | Ian Jackson | 2022-07-06 | 1 | -3/+3 |
| | | |||||
| * | tor-netdoc: b64 tests: add exhaustive roundtrip test | Ian Jackson | 2022-07-06 | 1 | -0/+42 |
| | | |||||
| * | Bump `base64ct` crate `1.5.0` -> `1.5.1` | Arturo Marquez | 2022-06-27 | 1 | -18/+6 |
| | | | | | | | This new release checks for invalid symbols in non-padded inputs for decoding. Therefore, we can get rid of the logic implemented in `https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/600` | ||||
| * | Merge branch 'clippy' into 'main' | Ian Jackson | 2022-06-24 | 1 | -0/+3 |
| |\ | | | | | | | | | Fix clippy nightly again See merge request tpo/core/arti!603 | ||||
| | * | Run maint/add_warning crates/*/src/{lib,main}.rs | Ian Jackson | 2022-06-23 | 1 | -0/+3 |
| | | | | | | | | | Update all lint blocks | ||||
| * | | Merge branch 'error_cleanup_2' into 'main' | eta | 2022-06-24 | 2 | -5/+18 |
| |\ \ | | | | | | | | | | | | | Error refactoring: bytes, cert, proto. See merge request tpo/core/arti!604 | ||||
| | * | | tor-proto: split and elaborate tor_bytes::Error instances | Nick Mathewson | 2022-06-23 | 2 | -5/+18 |
| | |/ | | | | | | | | | | | | | | | | | Some of these were for decoding particular objects (we now say what kind of objects), and some were unrelated tor_cert errors that for some reason we had shoved into a tor_bytes::Error. There is now a separate tor_cert::CertError type, independent from tor_cert's use of `tor_bytes::Error` for parsing errors. | ||||
| * | | base64: Move some tests into a separate function, placating clippy | Ian Jackson | 2022-06-23 | 1 | -11/+15 |
| | | | |||||
| * | | base64: Add yet more test cases | Ian Jackson | 2022-06-23 | 1 | -0/+17 |
| | | | |||||
| * | | Add some more test cases for base64 | Arturo Marquez | 2022-06-22 | 1 | -0/+17 |
| | | | | | | | | | | | These tests are borrowed from other parts of the `tor-netdoc` crate. | ||||
| * | | Improve base64 tests | Arturo Marquez | 2022-06-22 | 1 | -1/+13 |
| | | | | | | | | | Request for changes: `https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/600#note_2816252` | ||||
| * | | Add link to upstream issue | Arturo Marquez | 2022-06-22 | 1 | -1/+3 |
| | | | | | | | | | As per request, here: `https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/600#note_2816252` | ||||
| * | | Replace `base64` crate with `base64ct` crate | Arturo Marquez | 2022-06-21 | 2 | -7/+24 |
| |/ | | | | | | | Note: the `base64ct` crate rejects invalid characters when the decoding is done on padded strings. However, the `FromStr` impl for `B64` can have both padded **and** unpadded inputs, so all inputs are now padded first, before decoding. | ||||
| * | Add a configuration option for reachable_addrs | Nick Mathewson | 2022-06-17 | 1 | -0/+8 |
| | | | | | (This doesn't do anything yet.) | ||||
| * | NetDoc: Make AddrPortPattern implement serde traits | Nick Mathewson | 2022-06-17 | 1 | -1/+29 |
| | | | | | | | I'm using serde_with here to just re-use the Display and FromStr implementations, since those are what has proven easier to type in the past. | ||||
| * | Make AddrPortPattern and friends implement Eq and PartialEq | Nick Mathewson | 2022-06-17 | 1 | -2/+2 |
| | | |||||
| * | Add one more "allow" to tor_netdoc::parse::macros. | Nick Mathewson | 2022-06-15 | 1 | -0/+1 |
| | | | | | | Without this, clippy is error-free, but `cargo test` somehow gives a warning. | ||||
| * | Netdoc tests: extract decode-base64-ignore-ws code. | Nick Mathewson | 2022-06-07 | 1 | -10/+13 |
| | | |||||
| * | microdesc: make sure we recover from an error in the final md. | Nick Mathewson | 2022-06-07 | 1 | -1/+7 |
| | | | | | | | | | (This is slightly different from recovering from errors in the middle of a list of mds, since in this case we _can't_ advance to the next md.) Also, note that a given branch is probably not reachable. | ||||
| * | netdoc: test case for microdesc with no ed25519 id. | Nick Mathewson | 2022-06-07 | 1 | -0/+1 |
| | | | | | | The "bad-id" microdescriptor is hand-edited based on one from a Chutney network. | ||||
| * | netdoc: test a couple of accessors for AuthCert. | Nick Mathewson | 2022-06-07 | 1 | -1/+11 |
| | | |||||
| * | Netdoc: test enforcement for items that mustn't take objects. | Nick Mathewson | 2022-06-07 | 1 | -0/+6 |
| | | | | | Found via coverage. | ||||
| * | netdoc: remove an unused method. | Nick Mathewson | 2022-06-07 | 1 | -12/+0 |
| | | |||||
| * | netdoc: Test more accessors for tokenized documents. | Nick Mathewson | 2022-06-07 | 2 | -4/+20 |
| | | |||||
| * | Netdoc: add accessor to error for ParseErrorKind | Nick Mathewson | 2022-06-07 | 1 | -0/+5 |
| | | | | | | The kind type was already public, but we didn't give the user any way to get it. | ||||
| * | netdoc: tests for parsing UnvalidatedEdCert. | Nick Mathewson | 2022-06-07 | 1 | -1/+47 |
| | | |||||
| * | Tests for netdoc RsaPublic type. | Nick Mathewson | 2022-06-07 | 1 | -2/+37 |
| | | |||||
| * | Fix a copy-paste error in Ed25519 parsing tests. | Nick Mathewson | 2022-06-01 | 1 | -3/+3 |
| | | | | | | We accidentally tried to validate (invalid) ed25519 keys as curve25519 keys. | ||||
| * | Add test for parsing bad tor version with too many elements. | Nick Mathewson | 2022-06-01 | 1 | -0/+1 |
| | | | | | This is a coverage-driven test. | ||||
| * | Add test for mutability of RelayFamily. | Nick Mathewson | 2022-06-01 | 1 | -0/+9 |
| | | |||||
| * | Tests for tor_netdoc::util::intern | Nick Mathewson | 2022-06-01 | 1 | -0/+33 |
| | | |||||
| * | lints: Add let_unit_value allow to all crates | Ian Jackson | 2022-05-31 | 1 | -0/+1 |
| | | | | | | From running add_warning, with manual picking of the right hunks/lines. | ||||
| * | lints: Add lint block delimiters to every crate | Ian Jackson | 2022-05-31 | 1 | -0/+2 |
| | | | | | | | This was the result of: maint/add_warning crates/*/src/{lib,main}.rs and then manually curating the results. | ||||
| * | lints: Suppress unknown lints in a way that works on nightly too | Ian Jackson | 2022-05-31 | 1 | -2/+4 |
| | | | | | This is ridiculous. | ||||
| * | tor-netdoc: Allow suppressing unknown lints | Ian Jackson | 2022-05-27 | 1 | -0/+2 |
| | | | | | | We want to supress the unused_macro_rules lint in one place but it's new in Nightly and this triggers yet another lint. | ||||
| * | tor-netdoc: Suppress new "unused_macro_rules" lint in one place | Ian Jackson | 2022-05-27 | 1 | -0/+1 |
| | | | | | | | | The compiler can apparently tell that we aren't generating compile errors! Also that we're not yet using a feature provided here. (New lint in currently Nightly.) | ||||
| * | Resolve the new `derive_partial_eq_without_eq` lint. | Nick Mathewson | 2022-05-23 | 4 | -4/+4 |
| | | | | | It's a little overzealous sometimes, but it's mostly to the good. | ||||
| * | Fix typo | Dimitris Apostolou | 2022-05-14 | 1 | -1/+1 |
| | | |||||
| * | tor-netdoc: Add a Lifetime::valid_at method. | Nick Mathewson | 2022-05-11 | 1 | -0/+4 |
| | | |||||
| * | netdoc: add a new type for Nicknames | Nick Mathewson | 2022-05-09 | 5 | -11/+95 |
| | | | | | | | | | | | Relay nicknames are always between 1 and 19 characters long, and they're always ASCII: That means that storing them in a [u8;19] will always be possible, and always use less resources than storing them in a String. Fortunately, the tinystr crate already helps us with this kind of thing. | ||||
| * | NetParams: Document its role as a validated config parameter | Ian Jackson | 2022-05-09 | 1 | -0/+3 |
| | | |||||
| * | Fix grammar and typos | Samanta Navarro | 2022-04-27 | 1 | -2/+2 |
| | | |||||
| * | squash! Bump every crate's edition to 2021. | Nick Mathewson | 2022-04-25 | 3 | -5/+0 |
| | | | | | | Remove all `use` statements for `TryFrom` and `TryInto`. These are now redundant in Rust 2021. | ||||
| * | Re-order attributes so that we can build with Rust 1.53. | Nick Mathewson | 2022-03-31 | 5 | -15/+15 |
| | | |||||
| * | tor-netdoc: Conditionally expose document fields. | Nick Mathewson | 2022-03-31 | 6 | -0/+83 |
| | | | | | | | | | This commit uses the `visibility` and `visible` crates to conditionally make certain structs and their fields public (respectively). This is incredibly dangerous to use for anything besides testing, and I've tried to write the documentation for the feature accordingly. | ||||
| * | Remove allow(clippy::disallowed_methods) lint. | Nick Mathewson | 2022-03-30 | 2 | -3/+0 |
| | | |||||
| * | Merge branch 'no-system-time' into 'main' | eta | 2022-03-30 | 2 | -0/+3 |
| |\ | | | | | | | | | | | | | Don't use SystemTime::now() Closes #306 See merge request tpo/core/arti!365 | ||||
