commit | f83f98788b63d7b50e5c9a26fe5b97d0dd82ac8c | [log] [tgz] |
---|---|---|
author | David Benjamin <davidben@google.com> | Mon Apr 28 17:18:38 2025 -0400 |
committer | Boringssl LUCI CQ <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Apr 29 11:51:38 2025 -0700 |
tree | 3d681b8b9269d6d48d2fd577917a0e6fa3964332 | |
parent | 6be2f31b1381e094d4f806787fc0b08e6c82c678 [diff] |
Remove STACK_OF(BIGNUM) from BN_CTX With C++, we have better tools for containers than STACK_OF(T). We can also just declare constructors and destructors for our types. This also fixes a FIPS + CFI incompatibility. STACK_OF(BIGNUM), as part of the mess type erasure tricks it used, needed to pass a function pointer taken from BCM, out of BCM. (This doesn't fix all the issues. There are still two more.) It would really be nice to take BN_CTX out of BCM altogether, but that will take a lot more work. Either way, it can be the first guinea pig for a destructor-managed libcrypto type. Update-Note: With something in libcrypto using crypto/mem_internal.h, we now depend on quite a bit more of an STL in libcrypto. But we already depended on <memory> for std::unique_ptr before. Bug: 394340436, 413519751 Change-Id: Ia26ea9cd6b01542d569d6ef6f41f528b3cc72c14 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/78890 Reviewed-by: Adam Langley <agl@google.com> Commit-Queue: David Benjamin <davidben@google.com> Auto-Submit: David Benjamin <davidben@google.com>
BoringSSL is a fork of OpenSSL that is designed to meet Google's needs.
Although BoringSSL is an open source project, it is not intended for general use, as OpenSSL is. We don't recommend that third parties depend upon it. Doing so is likely to be frustrating because there are no guarantees of API or ABI stability.
Programs ship their own copies of BoringSSL when they use it and we update everything as needed when deciding to make API changes. This allows us to mostly avoid compromises in the name of compatibility. It works for us, but it may not work for you.
BoringSSL arose because Google used OpenSSL for many years in various ways and, over time, built up a large number of patches that were maintained while tracking upstream OpenSSL. As Google's product portfolio became more complex, more copies of OpenSSL sprung up and the effort involved in maintaining all these patches in multiple places was growing steadily.
Currently BoringSSL is the SSL library in Chrome/Chromium, Android (but it's not part of the NDK) and a number of other apps/programs.
Project links:
To file a security issue, use the Chromium process and mention in the report this is for BoringSSL. You can ignore the parts of the process that are specific to Chromium/Chrome.
There are other files in this directory which might be helpful: