Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
12e10ec
Update read_buf API to match current nightly
djc Jun 22, 2026
5ce9cac
Bump version to 0.23.41
djc Jun 22, 2026
848a2cc
connect-tests: delete ech.rs
cpu Jul 28, 2025
3c14696
Upgrade to hickory-resolver 0.26
djc Apr 16, 2026
62e220e
Take semver-compatible dependency updates
djc Jun 22, 2026
041a8d2
Cargo deny: allow RUSTSEC-2026-0173
cpu Jun 9, 2026
46808e7
ci: sync cargo-check-external-types nightly
cpu Jun 9, 2026
ebf3297
Fix new `clippy::manual_clear`
ctz May 18, 2026
8d8611a
Fix new `clippy::useless-borrows-in-formatting`
ctz May 5, 2026
752c144
Drop nightly clippy tests
djc Jun 22, 2026
642a103
ci: drop Taplo job
djc Apr 15, 2026
75d1b7a
Take semver-compatible dependency updates
djc Jul 10, 2026
d3ffdc1
Address new `std_instead_of_core` in nightly
ctz May 14, 2026
4cce222
Address new `std_instead_of_core` in nightly
ctz Apr 22, 2026
8bd3d1b
server: add max_tls13_tickets configuration
hz2 Jul 9, 2026
aff9845
implement rfc 9149 ticket_request extension
hz2 Jul 9, 2026
411fb02
Bump version to 0.23.42
djc Jul 13, 2026
4395319
Take semver-compatible updates
ctz Jul 29, 2026
3131e5c
Accept that libcrux deps are vulnerable
ctz Jul 29, 2026
4a9f025
use checked_sub for the mac tag offset in Rfc5077Ticketer::decrypt
Mounika2456 Jul 29, 2026
79cd462
Defensiveness improvement for binder suffix arithmetic
ctz Jul 29, 2026
e63d9bf
Bound ticket age calculation
ctz Jul 29, 2026
d98e1b9
Add test for server `Tls13RequiredForQuic`
ctz Jul 24, 2026
c2f1fd9
Check suitability of server version in QUIC client
ctz Jul 24, 2026
883a44d
Consider `Protocol` in `ServerConfig::supports_version`
ctz Jul 27, 2026
b480cc6
Test for server choosing a non-QUIC TLS1.3 suite
ctz Jul 24, 2026
f0dad4c
Check server's proposed suite against actual offer
ctz Jul 24, 2026
fcf61cd
Prepare 0.23.43
ctz Jul 29, 2026
bc3555f
Run most key_log_file tests on other Unices
djc Aug 13, 2026
2d88308
util: create SSLKEYLOGFILE with owner-only permissions
SebTardif Aug 12, 2026
18d00ec
ci-bench: allow clippy::double_must_use for async-trait expansions
djc Aug 13, 2026
bbe0302
Take semver-compatible updates
ctz Aug 31, 2026
9baeb29
bogo: fix rustfmt
ctz Aug 28, 2026
602f874
bogo: add check in TLS-ECH-Client-Reject-NoRetryConfigs
ctz Aug 31, 2026
84af66f
ech: verify outer server name after ECH reject
ctz Aug 31, 2026
aa576ec
Improve ech name overriding coverage
ctz Aug 31, 2026
47809aa
Enable TLS-ECH-Client-Reject-EarlyDataRejected-OverrideNameOnRetry
ctz Aug 31, 2026
c96f316
Fix internal rustls links in README.md to make it compatible with cra…
Erik-Sovereign Jun 9, 2026
6dfb208
bogo: inline fetch-and-rebuild
djc Sep 3, 2026
ff2a8f7
bogo: split inner repo setup from checkout/build
djc Sep 3, 2026
70a2f4b
bogo: split checkout from build step
djc Sep 3, 2026
694adad
bogo: rebuild after commit changes
djc Sep 4, 2026
e90c372
bogo: nack key-shares options
ctz Nov 17, 2025
49daa75
bogo: map errors for new `RejectPSSKeyType` cases
ctz Nov 17, 2025
0728e94
bogo: disable CertificateCipherMismatch-PSS
ctz Nov 17, 2025
44bbd5c
bogo: nack no-server-name-ack
ctz Nov 17, 2025
be069b6
bogo: match issuers of all configured certificates
ctz Nov 17, 2025
000c373
bogo: support `-server-supported-groups-hint`
ctz Nov 17, 2025
c9a54de
bogo: record that X25519MLKEM768 is allowed
ctz Nov 17, 2025
c66cb4e
PayloadU24: adopt minimum length like other types
ctz Nov 5, 2025
54e7a79
Enforce that OCSP responses are non-empty
ctz Nov 5, 2025
d725c0d
bogo: take update
ctz Nov 17, 2025
06a546d
bogo: take latest
djc Sep 4, 2026
e7a9cef
tls12: send illegal_parameter alert for kx signed with wrong algorithm
djc Sep 4, 2026
eb57688
tls12: require known signature algorithm
djc Aug 31, 2026
bbd3c9a
client: avoid sending 1.3-only signature schemes if no cipher suites …
djc Sep 1, 2026
93657e3
server: limit 1.2 certificate requests to 1.2-compatible signature sc…
djc Sep 2, 2026
87201d6
bogo: force all callers to get provider from Options
djc Sep 4, 2026
d880772
bogo: extract Options::provider() helper
djc Sep 4, 2026
e78162f
aws-lc-rs: add support for ML-DSA signatures
djc Sep 4, 2026
1efbf66
bogo: remove PostQuantum setup
djc Jul 11, 2025
64ad386
Bump version to 0.23.44
djc Sep 4, 2026
1b42c5f
providers: zeroize private key DER
djc Sep 4, 2026
9fafe6d
reject a second ClientHello that drops pre_shared_key
oleksii-udovychenko Sep 10, 2026
185a063
reject a second ClientHello that changes the cipher suite
oleksii-udovychenko Sep 11, 2026
5dff9da
Test whether server negotiates TLS1.2 after HRR
ctz Sep 14, 2026
e553a7a
server: TLS1.2 is not available after a HRR
ctz Sep 14, 2026
c4e92e8
Keep data needed for HRR processing together
ctz Sep 14, 2026
f9d4ee9
Handshake "alignment" check covers previously-received messages
ctz Sep 13, 2026
2976d90
Prepare 0.23.45
ctz Sep 13, 2026
6833f19
bogo: avoid flicker on error handling with an alert
ctz Sep 4, 2026
aecf92c
Retain up to the requested LimitedCache capacity.
mamicicekel Oct 7, 2026
1fd63e8
client: document how ClientSessionMemoryCache constructors use size
6d7770 Oct 7, 2026
715c0be
server: fix typo in ServerSessionMemoryCache doc
6d7770 Oct 7, 2026
d7af2c1
client: test ClientSessionMemoryCache server limits
6d7770 Oct 7, 2026
816da89
server: test ServerSessionMemoryCache keeps size sessions
6d7770 Oct 7, 2026
567e304
server: reject non-empty certificate_request_context
Mounika2456 Sep 29, 2026
fce9c85
reject protected change_cipher_spec records
Mounika2456 Sep 30, 2026
1aa987a
brotli: reject large-window streams
ctz Sep 30, 2026
dcdb946
Eliminate secrets from impl Debug for `Tls12Session`
ctz Sep 30, 2026
2bd5c0c
Add regression test for sending data after ECH rejection
djc Sep 28, 2026
4de14a5
client: fail on ECH rejection before encrypting application data
djc Sep 28, 2026
5ed42b3
server: only allow early data for first PSK
djc Sep 30, 2026
b10cdb0
compress: reject trailing input in zlib and brotli decompressors
Mounika2456 Oct 1, 2026
ca4a9c2
ech: hold the server to its hello retry request decision
Mounika2456 Oct 4, 2026
cac2134
conn: extract helper for TLS 1.2 pair with limited confidentiality
djc Oct 6, 2026
9363630
conn: treat sequence numbers past the record limit as exhausted
djc Oct 6, 2026
ab3ca33
conn: check record limits for all fragments before encrypting any
djc Oct 6, 2026
1dacb34
stream: continue reading while we're writing
djc Oct 6, 2026
db00e01
util: keep flushing after short writes
djc Oct 6, 2026
493d089
conn: fuse writes for connections with errors
djc Oct 6, 2026
7a69ade
util: fuse flushes from connections with errors
djc Oct 6, 2026
d67cb71
stream: provide backpressure while buffering received plaintext
djc Oct 6, 2026
795eea7
Advance the HPKE sequence only after seal succeeds
shaneraphel Oct 4, 2026
74343e7
conn: update TLS 1.3 traffic keys within fragmented writes
djc Oct 12, 2026
2b82b81
unbuffered: update TLS 1.3 traffic keys before exhausting them
djc Oct 12, 2026
6d0ba08
Eliminate secret from impl Debug for `ServerSessionValue`
djc Oct 13, 2026
049d39b
Bump version to 0.23.46
djc Oct 13, 2026
f04804f
Delay saving KX hint until handshake confirmation
ctz Oct 10, 2026
2f6b6ed
Merge rustls 0.23.46
Nov 20, 2026
422ef19
client tests: pin the certificate decompressors where the extension l…
Nov 20, 2026
b2f2ab8
Publish the crate as shaped-rustls 0.23.4600
Nov 20, 2026
e98ce82
client: clear what Clippy reports in the shaping code
Nov 20, 2026
9bdd54f
client tests: leave the X25519 key share tests out under FIPS
Nov 20, 2026
b305afc
Say where the fork differs from upstream without a customizer
Nov 20, 2026
57671f8
ci: follow the package rename and the new minimum Rust
Nov 20, 2026
ca6bc0f
Cargo.lock: take the fixed releases of crates with advisories
Nov 20, 2026
0caf7f8
ci: finish the move to Rust 1.85
Nov 20, 2026
e27b66f
Clippy: the shaping tests and the bench
Nov 20, 2026
6cf504a
ci: compare the API only once there is a release to compare with
Nov 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 26 additions & 54 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
RUST_BACKTRACE: 1

- name: cargo build (debug; no-std)
run: cargo build --locked --lib -p rustls $(admin/all-features-except std,brotli,read_buf rustls)
run: cargo build --locked --lib -p shaped-rustls $(admin/all-features-except std,brotli,read_buf shaped-rustls)

- name: cargo build (debug; rustls-provider-example)
run: cargo build --locked -p rustls-provider-example
Expand All @@ -116,8 +116,8 @@ jobs:
- name: cargo test (debug; rustls-provider-test; all features)
run: cargo test --all-features -p rustls-provider-test

- name: cargo package --all-features -p rustls
run: cargo package --all-features -p rustls
- name: cargo package --all-features -p shaped-rustls
run: cargo package --all-features -p shaped-rustls

msrv:
name: MSRV
Expand All @@ -130,16 +130,16 @@ jobs:

- uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.71"
toolchain: "1.85"

# zlib-rs is optional and requires a later MSRV
- run: cargo check --locked --lib $(admin/all-features-except zlib rustls) -p rustls
- run: cargo check --locked --lib $(admin/all-features-except zlib shaped-rustls) -p shaped-rustls

- uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.75"
toolchain: "1.85"

- run: cargo check --locked --lib --all-features -p rustls
- run: cargo check --locked --lib --all-features -p shaped-rustls

features:
name: Features
Expand Down Expand Up @@ -231,12 +231,6 @@ jobs:
env:
BOGO_SHIM_PROVIDER: aws-lc-rs-fips

- name: Run test suite (post-quantum)
working-directory: bogo
run: ./runme
env:
BOGO_SHIM_PROVIDER: post-quantum

fuzz:
name: Smoke-test fuzzing targets
runs-on: ubuntu-latest
Expand Down Expand Up @@ -300,7 +294,7 @@ jobs:
uses: dtolnay/rust-toolchain@nightly

- name: cargo doc (rustls; all features)
run: cargo doc --locked --all-features --no-deps --document-private-items --package rustls
run: cargo doc --locked --all-features --no-deps --document-private-items --package shaped-rustls
env:
RUSTDOCFLAGS: -Dwarnings

Expand Down Expand Up @@ -405,8 +399,8 @@ jobs:
tool: bindgen-cli
- name: Enable bindgen feature for aws-lc-sys (as needed for many cross targets)
if: ${{ matrix.target != 'i686-unknown-linux-gnu' }}
run: cargo add --dev --features bindgen 'aws-lc-sys@>0.20' --package rustls --verbose
- run: cross test --package rustls --target ${{ matrix.target }}
run: cargo add --dev --features bindgen 'aws-lc-sys@>0.20' --package shaped-rustls --verbose
- run: cross test --package shaped-rustls --target ${{ matrix.target }}

semver:
name: Check semver compatibility
Expand All @@ -417,7 +411,22 @@ jobs:
with:
persist-credentials: false

# The check compares the API with the latest release on crates.io. Before
# the first release there is nothing to compare with, and it can only fail.
- name: Look for a release to compare with
id: release
run: |
code=$(curl --silent --output /dev/null --write-out '%{http_code}' \
--user-agent 'shaped-rustls-ci (github.com/aimalygin/shaped-rustls)' \
https://crates.io/api/v1/crates/shaped-rustls)
case "$code" in
200) echo "found=true" >> "$GITHUB_OUTPUT" ;;
404) echo "shaped-rustls has no release on crates.io yet: nothing to compare with" ;;
*) echo "crates.io answered $code"; exit 1 ;;
esac

- name: Check semver
if: steps.release.outputs.found == 'true'
uses: obi1kenobi/cargo-semver-checks-action@v2

format:
Expand Down Expand Up @@ -480,26 +489,6 @@ jobs:
components: clippy
- run: ./admin/clippy -- --deny warnings

clippy-nightly:
name: Clippy (Nightly)
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install valgrind
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y valgrind

- name: Install rust toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: clippy
# Do not deny warnings, as nightly clippy sometimes has false negatives.
- run: ./admin/clippy

check-external-types:
name: Validate external types appearing in public API
runs-on: ubuntu-latest
Expand All @@ -511,7 +500,7 @@ jobs:
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2025-10-18
toolchain: nightly-2026-03-20
# ^ sync with https://github.com/awslabs/cargo-check-external-types/blob/main/rust-toolchain.toml
- name: Install cargo-check-external-types
uses: taiki-e/cache-cargo-install-action@v3
Expand All @@ -521,23 +510,6 @@ jobs:
working-directory: rustls/
run: cargo check-external-types

taplo:
name: Taplo
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install taplo-cli
uses: taiki-e/cache-cargo-install-action@v3
with:
tool: taplo-cli
- run: taplo format --check

openssl-tests:
name: Run openssl-tests
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cifuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ concurrency:

jobs:
Fuzzing:
# OSS-Fuzz knows the upstream project only.
if: github.repository == 'rustls/rustls'
runs-on: ubuntu-latest
steps:
- name: Build Fuzzers
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/daily-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ jobs:
- name: Check feature powerset
run: >
cargo hack check
--package rustls
--package shaped-rustls
--feature-powerset
--no-dev-deps
--group-features aws_lc_rs,aws-lc-rs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

- name: cargo doc
# keep features in sync with Cargo.toml `[package.metadata.docs.rs]` section
run: cargo doc --locked --features read_buf,ring --no-deps --package rustls
run: cargo doc --locked --features read_buf,ring --no-deps --package shaped-rustls
env:
RUSTDOCFLAGS: -Dwarnings --cfg=rustls_docsrs --html-after-content tag.html

Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/shaped.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: shaped-rustls

permissions:
contents: read

on:
push:
branches: ['shaped/**', 'xray/**']
pull_request:
branches: ['shaped/**', 'xray/**']

concurrency:
group: shaped-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Tests (${{ matrix.features }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
features:
- ring
- ring,brotli,zlib
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
- name: Library, integration and doc tests
run: cargo test --locked -p shaped-rustls --features ${{ matrix.features }}

package:
name: Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
- name: Build the crate as crates.io would receive it
run: cargo package --locked -p shaped-rustls
Loading
Loading