* Update vendoring script to use docker
* Update BoringSSL to 7ae2b910c13017b63f1a8bd6c8decfce692869b0
* RSA is opaque now
(cherry picked from commit a234f8a62e)
The `include` directory is required for the interface include
directories for using `CCryptoBoringSSL` as a module from an external
package (i.e. SPM). This allows SPM to include `CCryptoBoringSSL`
and find the module map.
* Setup docker for cmake build
Motivation:
Be able to run cmake build in CI
Modifications:
- Add "cmake" service to `docker-compose.yaml`
- Update `Dockerfile` to install `cmake` and `ninja`. Remove unneeded dependencies.
- Add `docker-compose.2004.53.yaml`. `cmake` on previous Ubuntu versions are too old and it would be a pain to upgrade, so using Ubuntu 20.04 to simplify things.
- Add back modulemap to ensure cmake build is successful
Result:
Can run cmake in CI
This adds the generated assembly files for Windows. Unfortunately, the
x64 generated assembly appears to be ELF-esque and SYSV ABI rather than
Win64. Additionally, the ARM targets do not seem to generate valid
Windows ARM code either (quick perusal shows at least invalid SP
handling on ARMv7 NT and non-conforming prologues on AArch64). Add x86
Windows assembly only for the time being.
Co-authored-by: Cory Benfield <lukasa@apple.com>
Motivation:
BoringSSL and Folly both attempt to play silly buggers with the sdallocx
symbol defined in jemalloc. Unfortunately, they don't play nicely
together, and the end result if you have both present is that BoringSSL
will reliably SIGBUS or SIGSEGV on initialization. Naturally, this isn't
good.
See also apple/swift-nio-ssl#191.
Modifications:
- Resolve the issue by patching out BoringSSL's allocator optimisation.
- Update BoringSSL to 6432bb46ab44731567ec923e6c8fc182f13d0070.
Result:
Flow and BoringSSL will play better together.