Skip to content

crypto: fix BoringSSL compatibility - #66921

Closed
panva wants to merge 1 commit into
nodejs:mainfrom
panva:boringssl-compat
Closed

panva wants to merge 1 commit into
nodejs:mainfrom
panva:boringssl-compat

Conversation

@panva

@panva panva commented Oct 22, 2026

Copy link
Copy Markdown
Member

Accept both BoringSSL error codes for an untrusted leaf certificate. Add the --use-system-ca hint for
X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY.

Enable BoringSSL coverage for DH, X.509, cipher metadata and TLS tests. Use modp5 for the DH group setters test and SSL_get_peer_tmp_key for both SSL backends.

Related:

Accept both BoringSSL error codes for an untrusted leaf certificate. Add
the --use-system-ca hint for
X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY.

Enable BoringSSL coverage for DH, X.509, cipher metadata and TLS tests.
Use modp5 for the DH group setters test and SSL_get_peer_tmp_key for
both SSL backends.

Refs: https://boringssl-review.googlesource.com/c/boringssl/+/103849
Refs: electron/electron@b457e70
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
Assisted-by: Codex
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/crypto
  • @nodejs/security-wg

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. crypto Issues and PRs related to the crypto subsystem. dependencies PRs that add, update, or configure Node.js dependencies. needs-ci PRs that need a full CI run. labels Oct 22, 2026
@panva
panva requested a review from jasnell October 22, 2026 07:35
@panva

panva commented Oct 22, 2026 •

Copy link
Copy Markdown
Member Author

@aduh95 this is needed prior to NixOS/nixpkgs@1c17f6e hitting the nixpkgs-unstable tools update. I've tested locally with it in place.

@panva panva closed this Oct 22, 2026
@panva
panva deleted the boringssl-compat branch October 22, 2026 08:27
@codecov

codecov Bot commented Oct 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.58%. Comparing base (39e03b4) to head (387aad3).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #66921   +/-   ##
=======================================
  Coverage   90.57%   90.58%           
=======================================
  Files         797      797           
  Lines      278502   278494    -8     
  Branches    53540    53528   -12     
=======================================
+ Hits       252247   252264   +17     
+ Misses      16592    16571   -21     
+ Partials     9663     9659    -4     
Files with missing lines Coverage Δ
src/crypto/crypto_common.cc 78.46% <ø> (ø)

... and 28 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. crypto Issues and PRs related to the crypto subsystem. dependencies PRs that add, update, or configure Node.js dependencies. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants