Skip to content

Don't depend on git for patching files - #55

Closed
JAicewizard wants to merge 21 commits into
signalapp:mainfrom
JAicewizard:patch-1
Closed

JAicewizard wants to merge 21 commits into
signalapp:mainfrom
JAicewizard:patch-1

Conversation

@JAicewizard

Copy link
Copy Markdown

This is currently being carried by freebsd, but across unix-like systems patch is always available.

TheJokr and others added 21 commits November 4, 2026 16:17
The code in question is `left_encode` in
`boringssl/crypto/fipsmodule/keccak/keccak.cc.inc`. Both me and the
clanker audited it and found no issue, while `stringop-overflow` has a
long list of false positives reported against it:

- <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92955>
- <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94335>
- <https://issues.chromium.org/issues/42290598>
- <https://bugs.launchpad.net/ubuntu/+source/gcc-12/+bug/2013140>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2432481>

We could probably fix the warning by rewriting the function, but IMO
the overhead of carrying a patch is not justified for a false-positive
GCC lint. By setting `-Wno-error=stringop-overflow` the warning will
still be reported but not fail the CI build anymore.
Crates.io release dispatches accept versions with an optional `v` prefix
and normalize the value before validation and publishing. Requests to the
crates.io API and sparse index carry a descriptive `User-Agent`, avoiding the
403 response that blocked the production `boring-sys` publish preflight.
The committed lockfile matches the lockfile embedded in the published
`boring-sys` 5.4.0 archive. It pins the release dependency graph, including
`cc 1.10.0`, so rerun package checksums remain stable.
Add SslStream::first_read_at, which returns when a read from the
underlying stream first returned data. Servers can use it to time the
TLS handshake from the start of the ClientHello rather than from TCP
accept, so time spent waiting for the peer is not counted.
Cargo.lock was initially added as a kludge to make the old 5.4.0
release workflow pass. It was copied from the published boring-sys
archive, so it represented the release state of boring-sys instead of
the full workspace.

The two downstream crates also used a different resolution:
tokio-boring and hyper-boring targeted cc 1.11.1 instead of the cc
1.10.0 selected by boring-sys and boring.

This is the complete workspace lockfile for the final 5.4.0 dependency
resolution.
Publishing is now handled by the guarded GitHub Actions workflow.
- 2026-11-09 Add release preparation tooling
- 2026-11-09 Remove obsolete publishing script
- 2026-11-09 Fix Cargo.lock for the full 5.4.0 workspace
- 2026-11-04 Add reusable Tokio TLS client connector
- 2026-11-03 tokio-boring: record when the stream was first read
- 2026-11-06 Pin the 5.4.0 Cargo dependency resolution
- 2026-11-06 Fix crates.io release dispatch requests (cloudflare#551)
- 2026-11-04 fix(ci): Do not fail build on false-positive `stringop-overflow` warning
On a target whose libc crate has a 32-bit time_t and whose C time_t is
64 bits (32-bit musl 1.2, see rust-lang/libc#1848), bindgen declares
X509_VERIFY_PARAM_set_time with an i64 and the call passes an i32, so
boring does not compile:

    error[E0308]: mismatched types
      --> boring/src/x509/verify.rs:178:65
    expected `i64`, found `i32`

Convert the value as Asn1Time::from_unix already does for ASN1_TIME_set.
- 2026-11-17 Fix X509VerifyParamRef::set_time on 32-bit musl targets
- 2026-11-10 docs: clarify BoringSSL cipher list configuration
`SslCredential` now supports ref-counted cloning through
`SSL_CREDENTIAL_up_ref`, matching BoringSSL shared ownership.

`SslRef::selected_credential` exposes the credential selected for the
current handshake.
Credential-installed private key methods were stored in `SslCredential`
ex-data, while shared callbacks only read `SslContext` ex-data. This
caused credential-only sync and async operations to panic during signing
or completion.

Generic callback sources now retain the appropriate owner and retrieve
the method from its ex-data. Context-installed methods retain their
existing behavior, while credential methods use the selected credential.
- 2026-11-19 Fix credential private key method callbacks
- 2026-11-19 Add SSL credential access APIs
The previous `localhost` test certificate expired on November 26, 2026.
The renewed certificate reuses the existing test key.

`scripts/generate-cert.sh` fixes serial and validity values so repeated
generation leaves the working tree unchanged.
Resume transport shutdown after sending close_notify so the read side can
receive remaining application data and the peer alert.
- 2026-11-27 Fix async TLS write shutdown across polls
- 2026-11-26 Renew tokio-boring test certificate
@jrose-signal

Copy link
Copy Markdown

This should be submitted upstream and we'll take it in a future release from Cloudflare.

@JAicewizard

Copy link
Copy Markdown
Author

Yess sorry, already made a PR to upstream and forgot to close this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants