Commit Graph

15 Commits

Author SHA1 Message Date
Brian Smith f1202b34b3 Restore SemVer compatibility for `verify_is_valid_tls_client_cert`. 2023-10-08 18:27:19 -07:00
Brian Smith 87dd910480 Add `verify_is_valid_tls_server_cert_ext`.
Add a public API that allows the caller to distinguish the new DoS
errors.
2023-10-08 10:31:11 -07:00
Tim Düsterhus 911e11c67f Reland Fix typo in Rustdoc for verify_signature().
[`git cherry-pick b481381e914de604df30b1be2fe72d938a5c0e57`.]
2023-09-29 21:50:11 -07:00
Brian Smith d16bafbba4 NFC: Address Clippy `needless_borrow` complaints. 2023-08-30 17:04:56 -07:00
Daniel McCarney 522cecd950 Cherry pick f0259b9588bab116c7dfbc62524b98794c90aaef: verify: break out build_chain recursion.
[`git cherry-pick f0259b9588bab116c7dfbc62524b98794c90aaef`, merged by Brian Smith.]

Crate-internal consumers of `build_chain` always pass `0` as the sub CA
count, only the `verify_cert.rs` internal recursion changes this
parameter.

This commit separates the external interface from the internal
recursion to remove one extra parameter from an already complicated
interface.
2023-08-30 14:08:00 -07:00
Brian Smith 0cd0b31beb Revert main branch crate contents to the 0.22.0 release contents.
Reset the crate contents (sources, tests, etc.)
to what they were at that commit, while retaining the newer CI
configuration.

The changes since the 0.22.0 release were primarily intended to
accomplish two goals:

* Fix and improve the GitHub Actions configuration.
* Prepare a 0.21.5 release that was backward compatible with 0.21.4
  but which also contained the improvements that were in 0.22.0.

0.21.5 was never released and will not be released. Therefore all
of the noise to facilitate the 0.21.5 release can just be deleted,
as long as we leave the CI changes that are necessary for GitHub
Actions to work correctly now.

The exact commands I used were:

```
git checkout \
    6c334a2cf5 \
    -- \
    Cargo.toml \
    LICENSE \
    README.md \
    src \
    tests \
    third-party
git rm src/trust_anchor_util.rs
```

Commit 6c334a2cf5 was the commit from
which 0.22.0 was released. It is confusing because the commit
immediately prior, 0b7cbf2d32, has
commit message "0.22.0". It appears that I merged the "0.22.0"
commit, expecting to `cargo publish` from that commit, but then
`cargo publish` failed. Then I added
6c334a2cf5 to fix `cargo publish`
and did the `cargo publish` from that commit. That's why I added
the `package` CI step at that time, to prevent this confusing
situation from happening again.

`trust_anchor_utils.rs` was not in 0.22.0; the `git checkout` didn't
delete it, so I had to do it separately.

I left the tests added subsequent to 0.22.0 in `tests/` (e.g.
`name_tests.rs`) since those tests pass with the 0.22.0 sources too.

Unfortunately, this requires disabling a bunch of Clippy lints, to
avoid modifying the contents from 0.22.0.

(I know it is confusing. It took me a while to figure it out myself
today.)
2023-08-30 08:31:51 -07:00
Tim Düsterhus b481381e91 Fix typo in Rustdoc for verify_signature() 2021-12-13 22:06:46 -08:00
Brian Smith 97507d40ab Appease the newest stable Clippy. 2021-12-13 21:44:26 -08:00
Brian Smith 17d9189981 Temporarily undo some renaming that can't be alised, to get back webpki 0.21.4 compat.
Make it easier to maintain support for Rustls 0.19.1 by restoring the webpki main branch to a
state compatible with webpki 0.21.4.
2021-05-07 15:12:11 -07:00
Brian Smith 2baa7f8ebc Remove `EndEntityCert::verify_is_valid_for_at_least_one_dns_name`.
This doesn't really do the thing we hoped it would do, and it's dead weight.
2021-04-22 13:19:33 -07:00
Brian Smith 2208a22acd Use `impl Trait` instead of an unnecessarily-named parameter. 2021-04-10 22:05:07 -07:00
Brian Smith cd59614740 Rename internal names to conform to Rust conventions. 2021-04-09 15:58:41 -07:00
Brian Smith bc6893f6ef Use Rust naming conventions for abbreviations. 2021-04-09 15:58:41 -07:00
Brian Smith 69d546c898 Fix the build when the `alloc` feature is enabled. 2021-01-25 22:48:00 -08:00
Brian Smith 13a50e7dfb Move `EndEntityCert` to its own module. 2021-01-25 21:49:15 -08:00