| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | | netdoc: implement onion service descryptor encryption | Nick Mathewson | 2023-02-07 | 2 | -9/+221 | |
| | | | | | | | | | | | This is tested via a round-trip check, and via a successful decryption of our example descriptor's outer layer. | |||||
| * | | netdoc: Parser for outer layer of onion service descriptors. | Nick Mathewson | 2023-02-07 | 2 | -0/+255 | |
| | | | ||||||
| * | | netdoc: Derive Debug and Clone on HsDesc and its kin. | Nick Mathewson | 2023-02-07 | 1 | -0/+3 | |
| |/ | ||||||
| * | Use derive_more on SharedRandVal | Nick Mathewson | 2023-01-28 | 1 | -13/+4 | |
| | | | | | | This may be temporary if we wind up converting to CtByteArray, but for now it's good to be terse. | |||||
| * | Several suggestions on gitlab. | Ian Jackson | 2023-01-28 | 1 | -3/+3 | |
| | | ||||||
| * | netdoc: Add Eq and a note to SharedRandVal. | Nick Mathewson | 2023-01-28 | 1 | -1/+3 | |
| | | ||||||
| * | netdoc: Add SRV accessors. | Nick Mathewson | 2023-01-28 | 1 | -2/+34 | |
| | | | | | | | | These are deliberately unsophisticated accessors, in that they return Option<> rather than filling in missing values with the documented fallbacks. It seems better to leave a way to distinguish the absent case in the API. | |||||
| * | netdoc: Add a timestamp to SRVs per prop#342. | Nick Mathewson | 2023-01-28 | 2 | -7/+54 | |
| | | | | | | This breaks some experimental APIs, but since they are experimental no semver note is needed. | |||||
| * | Allow clippy::unchecked_duration_subtraction in tests | Nick Mathewson | 2023-01-27 | 7 | -0/+7 | |
| | | | | | | This panics on error, and we're fine with a panic on misbehavior in tests. | |||||
| * | tor-netdoc: Make AuthCertKwd pub(crate) | Ian Jackson | 2023-01-24 | 1 | -1/+1 | |
| | | | | | For now, this will be useful in a test. | |||||
| * | Netdoc: Refactor SharedRandVal. | Nick Mathewson | 2023-01-11 | 2 | -27/+28 | |
| | | | | | | | | | SharedRandVal now holds only the 32-byte random value itself; the "number of commits" field is in SharedRandStatus. This commit also makes the SharedRandVal be exactly 32 bytes, since we've set it to that value in the spec. | |||||
| * | netdoc: Outline some basic types for encoding HsDescs. | Nick Mathewson | 2023-01-06 | 2 | -0/+233 | |
| | | ||||||
| * | netdoc: note some changes we will have to make to srv | Nick Mathewson | 2023-01-06 | 1 | -0/+6 | |
| | | ||||||
| * | Merge branch 'test-lints' into 'main' | eta | 2023-01-06 | 7 | -0/+56 | |
| |\ | | | | | | | | | Add test lint blocks to all "mod test" See merge request tpo/core/arti!937 | |||||
| | * | test lint blocks: Add many many automatically | Ian Jackson | 2022-12-12 | 7 | -0/+56 | |
| | | | | | | | | | | | This is precisely the result of running the rune in maint/adhoc-add-lint-blocks. | |||||
| * | | Use parse_rfc3339() in the tor-netdoc crate | Neel Chauhan | 2022-12-16 | 1 | -2/+2 | |
| | | | ||||||
| * | | Tackling issue #663 (Use humantime in tests) | coral | 2022-12-12 | 1 | -1/+1 | |
| |/ | ||||||
| * | netdoc: Add a test for routerdesc family parsing. | Nick Mathewson | 2022-11-17 | 1 | -0/+9 | |
| | | ||||||
| * | netdoc: Correct and test some tricky routerdesc errors | Nick Mathewson | 2022-11-17 | 1 | -2/+31 | |
| | | | | | These required hex-editing identity certificates :P | |||||
| * | netdoc: Add tests for routerdesc accessors. | Nick Mathewson | 2022-11-17 | 1 | -1/+31 | |
| | | ||||||
| * | Netdoc: use a different desc in tests. | Nick Mathewson | 2022-11-17 | 1 | -4/+3 | |
| | | | | | This is from Akka, which ahf runs. | |||||
| * | Remove a `TODO pt-client` in netdoc. | Nick Mathewson | 2022-11-15 | 1 | -2/+0 | |
| | | | | | This issue is now torspec!94. | |||||
| * | netdoc: Allow empty lines at the end of a router descriptor. | Nick Mathewson | 2022-11-15 | 1 | -3/+10 | |
| | | ||||||
| * | RouterDesc: Add an or_ports method. | Nick Mathewson | 2022-11-10 | 1 | -0/+9 | |
| | | ||||||
| * | Merge branch 'store-yak-misc' into 'main' | eta | 2022-11-08 | 1 | -0/+5 | |
| |\ | | | | | | | | | Small misc yaks for bridge descriptor persistence See merge request tpo/core/arti!828 | |||||
| | * | tor-netdoc: RouterDesc: Add published accessor | Ian Jackson | 2022-11-04 | 1 | -0/+5 | |
| | | | | | | | | | The bridge descriptor manager is going to want this. | |||||
| * | | Fix typos | Dimitris Apostolou | 2022-11-06 | 1 | -1/+1 | |
| |/ | ||||||
| * | netdoc: Add accessors for protocols and ntor key. | Nick Mathewson | 2022-10-04 | 1 | -0/+11 | |
| | | | | | | These are needed to actually be able to build circuits through a bridge. | |||||
| * | tor-netdoc: Add relay ID accessors for RouterDesc. | Nick Mathewson | 2022-10-04 | 1 | -7/+26 | |
| | | | | | | | | | | To implement a reasonable RsaIdentity accessor, we have to store the RsaIdentity in the RouterDesc, or else we'd have to recalculate it using SHA1 and DER every time. The Ed25519 identity is hidden inside the identity cert, but it's safe to get a reference to it. | |||||
| * | Work around a new nightly clippy warning | Nick Mathewson | 2022-09-30 | 3 | -17/+22 | |
| | | | | | | | | | | | | | | | The warning `clippy::bool_to_int_with_if` is meant to shout at you when you say `if x { 1 } else { 0 }` and instead suggest that you say `inttype::from(x)`. I agreed with this for the case in tor-cert, where we are literally converting a boolean into a flag. I don't agree with this in tor-netdoc, where we are using a boolean to decide how many fields to skip in a given document format. So for this case, I decided to clean up the code a little by renaming "skip" to "n_skip", and changing the boolean to use an enum instead. | |||||
| * | Make RouterDesc implement Clone and Debug. | Nick Mathewson | 2022-09-26 | 1 | -0/+1 | |
| | | | | | Their omission was an oversight. | |||||
| * | add feature annotation to fields made visible through visible::StructFields | trinity-1686a | 2022-08-24 | 5 | -0/+69 | |
| | | ||||||
| * | add feature annotation not added by doc_auto_cfg | trinity-1686a | 2022-08-24 | 5 | -0/+6 | |
| | | ||||||
| * | tor-netdoc: NetParams: impl FromIterator | Ian Jackson | 2022-08-16 | 1 | -0/+8 | |
| | | | | | | Otherwise a caller who has a set of parameters must open-code the loop. | |||||
| * | fix nighly clippy | trinity-1686a | 2022-07-23 | 1 | -6/+1 | |
| | | ||||||
| * | change usage of PublicKey to Ed25519 in tor-cert | trinity-1686a | 2022-07-23 | 1 | -4/+8 | |
| | | | | | and propagate to other affected crates | |||||
| * | change check_key to take a Option<&_> instead of &Option<_> | trinity-1686a | 2022-07-23 | 1 | -2/+2 | |
| | | ||||||
| * | tor-proto: split and elaborate tor_bytes::Error instances | Nick Mathewson | 2022-06-23 | 1 | -5/+15 | |
| | | | | | | | | | | 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. | |||||
| * | 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 | |
| | | ||||||
| * | Resolve the new `derive_partial_eq_without_eq` lint. | Nick Mathewson | 2022-05-23 | 1 | -1/+1 | |
| | | | | | 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 | 3 | -11/+8 | |
| | | | | | | | | | | | 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 | |
| | | ||||||
| * | squash! Bump every crate's edition to 2021. | Nick Mathewson | 2022-04-25 | 2 | -3/+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 | |
| | | ||||||
