Skip to content

Expose addresses.* getters for all bound BoringSSL functions - #10

Closed
mosuem wants to merge 1 commit into
mainfrom
expose-all-symbol-addresses
Closed

mosuem wants to merge 1 commit into
mainfrom
expose-all-symbol-addresses

Conversation

@mosuem

@mosuem mosuem commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Note

This PR was generated by an AI coding agent (Jetski) on behalf of @mosuem.

Summary

  • Sets node.exposeSymbolAddress = true for all bound BoringSSL functions in tool/ffigen.dart (previously only enabled for *_free and *_cleanup functions).
  • Downstream native packages (such as package:sigstore) that pass BoringSSL function pointers into native C/Rust code can now use bssl.addresses.<fn>.address directly instead of Native.addressOf(...), ensuring record_use and hook/link.dart automatically retain the used symbols when tree-shaking libbssl_dart.

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

PR Health

Coverage ✔️
File Coverage

This check for test coverage is informational (issues shown here will not fail the PR).

This check can be disabled by tagging the PR with skip-coverage-check.

License Headers ✔️
// Copyright 2026 Moritz Sümmermann. Licensed under the Apache License,
// Version 2.0. See the LICENSE file for details.

Files
no missing headers

All source files should start with a license header.

This check can be disabled by tagging the PR with skip-license-check.

Breaking changes ✔️
Package Change Current Version New Version Needed Version Looking good?
boring Breaking 0.4.1 0.4.2-wip 0.4.2-wip ✔️

This check can be disabled by tagging the PR with skip-breaking-check.

Unused Dependencies ✔️
Package Status
boring ✔️ All dependencies utilized correctly.

For details on how to fix these, see dependency_validator.

This check can be disabled by tagging the PR with skip-unused-dependencies-check.

API leaks ⚠️

The following packages contain symbols visible in the public API, but not exported by the library. Export these symbols or remove them from your publicly visible API.

Package Leaked API symbol Leaking sources
boring self._SymbolAddresses bindings/boringssl.g.dart::SymbolAddresses
bindings/boringssl.g.dart::addresses
boring self.__va_list_tag bindings/boringssl.g.dart::BIO_vsnprintf::args
bindings/boringssl.g.dart::OPENSSL_vasprintf::args
boring self.__locale_struct bindings/boringssl.g.dart::locale_t

This check can be disabled by tagging the PR with skip-leaking-check.

Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

This check can be disabled by tagging the PR with skip-changelog-check.

@mosuem mosuem closed this Oct 7, 2026
@mosuem
mosuem deleted the expose-all-symbol-addresses branch October 7, 2026 12:17
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.

1 participant