Update BoringSSL to 0226f30467f540a3f62ef48d453f93927da199b6 #406
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix multiple issues in the BoringSSL vendoring script and update BoringSSL to 0226f30467f540a3f62ef48d453f93927da199b6
Checklist
Motivation:
The
vendor-boringssl.sh
script is currently broken in a number ofways, both in general and relative to the latest BoringSSL version:
--enable-test-discovery
is still in useBORINGSSL_REVISION
results in anunconditional error
PATTERNS
list is out of date for the latest BoringSSLextern "C"
to two exported symbols, allowing for collisions.
In addition, the latest BoringSSL has made
BN_MONT_CTX
opaque,necessitating that it be referenced with
OpaquePointer
rather thanUnsafePointer<>
.Modifications:
The following changes are included:
--enable-test-discovery
has been removedvendor-boringssl.sh
andgenerate-linux-sdks.sh
have been updatedto use Swift 6.1.2 SDKs built for Ubuntu Noble
mangle_cpp_structures
function fromswift-nio-ssl
's versionof
vendor-boringssl.sh
has been copied over (thanks @Lukasa!)BORINGSSL_REVISION
is now allowed to be an empty stringPATTERNS
array has been updatedextern "C"
to the functionswhich should have it
s/UnsafePointer<BN_MONT_CTX>/OpaquePointer/g
CMakeLists.txt
perupdate-cmake-lists.sh
0226f30467f540a3f62ef48d453f93927da199b6
Result:
Vendoring the latest BoringSSL will work again.
The latest BoringSSL is vendored.