Commit Graph

48 Commits

Author SHA1 Message Date
Joseph Birr-Pixton 82b1e3f1db aws-lc-rs: enable FIPS mode 2023-12-07 11:59:09 +00:00
Daniel McCarney b2cd88697f Cargo: version 0.22 -> 0.23-alpha.0
We're starting to land semver incompatible changes into `main`. This
commit bumps the crate version so that the semver detection job won't
cause spurious failures.
2023-12-06 18:40:20 +00:00
Jorge Aparicio be41a034a9 introduce a "std" Cargo feature 2023-12-05 20:28:54 +00:00
Dirkjan Ochtman 74321cfbb1 Update semver-compatible dependencies 2023-12-04 09:46:53 +00:00
Joseph Birr-Pixton 4d1b762b53 Bump version to 0.22.0 2023-12-01 19:10:46 +00:00
Joseph Birr-Pixton 381dcf99ee Update dependencies 2023-12-01 19:10:46 +00:00
Daniel McCarney 74bd185f6e Cargo: 0.22.0-alpha.5 -> 0.22.0-alpha.6 2023-11-29 21:41:52 +00:00
Daniel McCarney aef3381dea update rustls-webpki to alpha.8, pki-types to 2.2.3
Requires accommodating the new `Debug` bound requirement in the provider
example, and fixing some expected output in a webpki verify test.
2023-11-29 21:41:52 +00:00
Dirkjan Ochtman af80fa35f6 Update semver-compatible dependencies 2023-11-27 14:45:32 +00:00
Dirkjan Ochtman a6233dcc46 Bump rustls version to alpha.5 2023-11-24 14:38:07 +00:00
Dirkjan Ochtman 72b365074f Sort dev-dependencies 2023-11-24 14:38:07 +00:00
Dirkjan Ochtman 26ec868b8c Migrate to pki-types ServerName 2023-11-23 21:57:10 +00:00
Dirkjan Ochtman ab5e2a917b Upgrade to latest rustls-pemfile 2023-11-23 21:57:10 +00:00
Adolfo Ochagavía 2463f99155 ci-bench: rewrite benchmarks in async style
This is a necessary step towards sharing code between icount and
wall-time benchmarks
2023-11-23 17:09:09 +00:00
Dirkjan Ochtman 765cfd214b ci-bench: update itertools to 0.12 2023-11-20 09:02:07 +00:00
Dirkjan Ochtman 84a599ff76 Update semver-compatible dependencies 2023-11-20 09:02:07 +00:00
Steve Fan e5a4f13741 add server example for example provider 2023-11-17 17:26:43 +00:00
Daniel McCarney b7a6091ab4 provider-example: HPKE provider w/ hpke-rs & rust-crypto
This commit implements the Rustls HPKE provider traits using hpke-rs[0]
with the rust-crypto backend.

Since HPKE is not yet used in Rustls (but will be for ECH support),
a unit test based on the RFC 9180 test vectors is added.

Likely in the future we will want to move this test somewhere outside of
the provider-example crate and use it to test a *ring* HPKE
implementation using the same test vector data.

[0]: https://github.com/franziskuskiefer/hpke-rs
2023-11-16 19:32:49 +00:00
Dirkjan Ochtman c15768989c Update semver-compatible versions (again) 2023-11-14 19:23:54 +00:00
Daniel McCarney ccb79947a4 Cargo: update semver compatible dependencies 2023-11-13 13:52:08 +00:00
Joseph Birr-Pixton aaf21d1cdf Allow optional use of aws-lc-rs
Provide shims for limited number of places where ring 0.17 and
aws-lc-rs (ring 0.16-era) APIs have diverged.  This is a
short-term fix, as they are likely to diverge more over time.
Eventually we'll have to stop sharing the code like this.

For unit-like tests, export a `test_provider` alias that resolves
to a provider module, for use in these tests.

This resolves to:

- *ring* if cfg(feature = "ring"), else
- aws-lc-rs if cfg(feature = "aws_lc_rs"), else
- is absent
2023-11-09 16:18:11 +00:00
Daniel McCarney de9bf1d2e9 connect-tests: add EchConfig fetch tests
This commit adds a new `connect-tests/tests/ech.rs` module that performs
a DNS over HTTPS lookup for HTTPS type records, finding `EchConfig`s and
testing we can deserialize the raw form into the Rustls representation
without error.

Presently it tests against:
* `crypto.cloudflare.com`
* `defo.ie`
* `tls-ech.dev`

Since these are network based tests they need to live in `connect-tests`
to avoid flakyness during normal CI runs.

In previous WIP branches this was done as part of an overall end-to-end
example of using ECH, but we can test this in isolation ahead of having
full ECH support.
2023-11-08 13:40:02 +00:00
Dirkjan Ochtman da280af796 Update semver-compatible dependencies 2023-11-06 13:34:13 +00:00
Daniel McCarney b776a5778a Cargo: 0.22.0-alpha.3 -> 0.22.0-alpha.4 2023-10-30 15:31:19 +00:00
Daniel McCarney 1ec7b727de Cargo: use rustls-webpki v0.102.0-alpha.6
This version of webpki improves CRL ergonomics. Notable changes:

* use `with_status_policy builder` fn

The upstream crate added a more ergonomic interface we can use in
place of having to keep around a mutable builder and doing our own
matching.

* avoid CRL dyn trait hurdles

The upstream crate made working with CRLs easier by replacing the
`CertRevocationList` trait with an `enum` representation.

Notably this makes working with the `Vec<OwnedCertRevocationList>` that
the webpki verifier builders and verifiers hold much easier: we no long
have to do as many contortions to convert to a `&[&dyn
CertRevocationList]`.
2023-10-30 15:31:19 +00:00
Joe Birr-Pixton b515abfcb3 `AeadKey`: zeroize on drop 2023-10-20 09:04:27 +00:00
dependabot[bot] 50209cf338 build(deps): bump rustix from 0.38.17 to 0.38.19
Bumps [rustix](https://github.com/bytecodealliance/rustix) from 0.38.17 to 0.38.19.
- [Release notes](https://github.com/bytecodealliance/rustix/releases)
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.38.17...v0.38.19)

---
updated-dependencies:
- dependency-name: rustix
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-18 18:53:19 +00:00
Dirkjan Ochtman 21484e16a2 Update semver-compatible dependencies 2023-10-10 13:19:18 +00:00
Dirkjan Ochtman 76ca8203e0 Update ring to 0.17.2 2023-10-10 13:19:18 +00:00
Dirkjan Ochtman 8a150a9a93 Use ring 0.17 in dev-dependencies 2023-10-10 13:19:18 +00:00
Dirkjan Ochtman 47c0450ce9 Remove unused dev-dependencies in examples crate 2023-10-10 13:19:18 +00:00
Joseph Birr-Pixton 092a6af3db Take rustls-webpki 0.102.0-alpha.4 2023-10-06 15:24:29 +00:00
Dirkjan Ochtman 8e64ed10b9 Upgrade to ring 0.17 2023-10-06 15:24:29 +00:00
Joseph Birr-Pixton b409df3b28 Take `clap` 4.4.6 2023-10-05 13:01:43 +00:00
Dirkjan Ochtman 992e2364a0 Make connect-tests part of the workspace 2023-10-02 13:24:31 +00:00
dependabot[bot] babfe038ee build(deps): bump rcgen from 0.11.2 to 0.11.3
Bumps [rcgen](https://github.com/est31/rcgen) from 0.11.2 to 0.11.3.
- [Changelog](https://github.com/rustls/rcgen/blob/main/CHANGELOG.md)
- [Commits](https://github.com/est31/rcgen/commits)

---
updated-dependencies:
- dependency-name: rcgen
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-02 13:19:12 +00:00
dependabot[bot] d980e2bd38 build(deps): bump regex from 1.9.5 to 1.9.6
Bumps [regex](https://github.com/rust-lang/regex) from 1.9.5 to 1.9.6.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.9.5...1.9.6)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-02 13:18:32 +00:00
Daniel McCarney f141da4a2e Cargo: remove rcgen git patch
The `rcgen` crate has cut a 0.11.2 release that includes the CRL
functionality we were using a Cargo patch to depend on previously. This
commit removes the patch, fixes one breakage in the server acceptor
example, and updates the `Cargo.toml` and `Cargo.lock` files.
2023-09-27 14:36:11 +00:00
Dirkjan Ochtman c7970af179 Keep Cargo.lock under version control 2023-09-26 13:38:35 +00:00
Joseph Birr-Pixton 5f165fb5b1 Add proper argument parsing to s_client 2016-06-01 00:15:45 +01:00
Joseph Birr-Pixton 29b0389f34 Point at webpki fork for cert-based sig validation 2016-05-30 20:39:06 +01:00
Joseph Birr-Pixton 9af16867bb Use log crate to note alerts 2016-05-30 20:31:50 +01:00
Joseph Birr-Pixton 96714fcc69 Thing for extracting DER from PEM files 2016-05-30 09:54:20 +01:00
Joseph Birr-Pixton d7beab9b44 Sorry, need minor local changes to webpki for now 2016-05-23 23:03:41 +01:00
Joseph Birr-Pixton 2a9dd6f801 verify certs with webpki 2016-05-21 12:43:01 +01:00
Joseph Birr-Pixton e72f28a584 work towards decoding serverkx
replace rand crate with existing ring code
2016-05-19 23:03:04 +01:00
Joseph Birr-Pixton 7fd0ebc0bb many more things, including a server test program 2016-05-17 20:46:36 +01:00
Joseph Birr-Pixton b24ddffcb9 Initial commit; doesn't do anything useful 2016-05-02 21:53:04 +01:00