aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-cert/tests/invalid_certs.rs
Commit message (Collapse)AuthorAgeFilesLines
* tor-checkable: Rename `TimeBound::check_valid_*` to `if_valid_*`Ian Jackson2026-07-231-1/+1
| | | | | | | I find these names confusing. To my mind "check" implies a function returning `Result<(), _>`. Some other APIs use `unwrap` here but I think `if` is good.
* Use new TimeBound name throughout the treeIan Jackson2026-07-161-2/+2
|
* test: provide a test for expired certificatesEmil Engler2023-08-101-0/+37
| | | | | This commit implements a test for an expired Ed25519 certificate within the `tor_cert` crate.
* Replace usage of KeyUnknownCert::check_key.Nick Mathewson2023-05-161-2/+2
|
* Change tor_bytes::Error::BadMessage to a Cow.Nick Mathewson2023-02-091-4/+4
| | | | | | | | | | Actually, to avoid making a breaking change, I'm deprecating BadMessage and creating a new InvalidMessage variant that takes a Cow. This way I don't need to track every crate that re-exposes tor_bytes::Error and call this a breaking change in those. Making this change will allow tor_bytes errors to be much more helpful.
* change usage of PublicKey to Ed25519 in tor-certtrinity-1686a2022-07-231-1/+1
| | | | and propagate to other affected crates
* change check_key to take a Option<&_> instead of &Option<_>trinity-1686a2022-07-231-2/+2
|
* tor-proto: split and elaborate tor_bytes::Error instancesNick Mathewson2022-06-231-2/+3
| | | | | | | | | 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.
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-271-0/+91
This will cause some pain for now, but now is really the best time to do this kind of thing.