Skip to content

Enable building with BoringSSL #1594

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lalten
Copy link

@lalten lalten commented Apr 5, 2025

I'm writing Bazel build files for paho.mqtt.c and want to link against BoringSSL instead of OpenSSL or LibreSSL.

BIO_f_base64 (https://docs.openssl.org/3.3/man3/BIO_f_base64/) is deprecated and can't easily be used when using BoringSSL via Bazel:
https://github.com/google/boringssl/blob/a553a9d65aa4e4f28a6c3007db14e9605e7c3bde/include/openssl/bio.h#L788-L797
This PR updates src/Base64.c to use the recommended EVP_EncodeBlock/EVP_DecodeBase64 functions instead, which are available.

The other change in src/MQTTAsyncUtils.c is analogous to #1426 - BoringSSL targets OpenSSL 1.1.0 but not all APIs are actually implemented (see https://github.com/google/boringssl/blob/main/PORTING.md)

Signed-off-by: Laurenz Altenmüller <git@laure.nz>
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