Commit Graph

14 Commits

Author SHA1 Message Date
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
Brian Smith 16a2638bd0 Upgrade to *ring* 0.17 and untrusted 0.9.
untrusted 0.9 is used by *ring*. untrusted stopped providing a `PartialEq`
for `Input` in 0.9; this was the driver for all the code changes.
2023-10-02 14:24:17 -07:00
Brian Smith 7793842de1 NFC: Encapsulate `Budget` internals.
Make it clear that nothing is reaching into the internals of `Budget`.
In particular, clarify that the tests are not messing around with the
defaults.
2023-09-30 11:31:21 -07:00
Brian Smith ad1fe9288e Documentation: Stop hard-coding briansmith.org paths.
Let people find the docs on docs.rs.
2023-08-30 17:04:56 -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
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 5d5c71095c Add more backward-compatibility aliases. 2021-05-07 15:12:11 -07:00
Brian Smith 81bd1e3fbf Add missing docs and check for missing docs during build. 2021-04-20 18:32:56 -07:00
Brian Smith 279933295a Move clippy configuration out of `lib.rs` and into clippy.sh.
Reduce sensitivity to the set of clippy lints over time.
2021-04-20 18:18:12 -07:00
Brian Smith bc6893f6ef Use Rust naming conventions for abbreviations. 2021-04-09 15:58:41 -07:00
Brian Smith 5fd730eb18 Disable some clippy pedantic lints. 2021-02-18 15:58:12 -08:00
Brian Smith 1d5f4bd649 Avoid using `as` to convert `u8` to `usize`.
Enable the clippy lint for this.
2021-02-18 12:30:28 -08:00
Brian Smith 082a74427e Remove `trust_anchor_util::generate_code_for_trust_anchors`.
This was intended to be used by things like webpki-roots, but
webpki-roots is not using it and the implementation was not good, and
not tested.
2021-02-04 13:37:55 -08:00
Brian Smith 5d6f260215 Rename main module file to `lib.rs` from `webpki.rs`. 2021-01-25 21:49:15 -08:00