Skip to content

Use latest versions of S2N-TLS and AWS-LC #470

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

Merged
merged 10 commits into from
Sep 1, 2022
Merged

Use latest versions of S2N-TLS and AWS-LC #470

merged 10 commits into from
Sep 1, 2022

Conversation

graebm
Copy link
Contributor

@graebm graebm commented Aug 19, 2022

Update all submodules, including S2N-TLS and AWS-LC which we hadn't updated for a while due to AWS-LC changing the default visibility of symbols in static builds from "hidden" to "visible" (see aws/aws-lc#466)

ISSUE
This resulted in the symbols being visible in whatever application ultimately used libcrypto.a. If an application ALSO ended up using libcrypto.so from the system's OpenSSL installation, we'd get crazy crashes due to SOME libcrypto function calls routing through libcrypto.a and SOME function calls routing through libcrypto.so.

DESCRIPTION OF CHANGES:
Tweak the pkcs11_connect sample so it explicitly hides symbols from libcrypto.a. This sample is likely to load the libcrypto.so from they system's OpenSSL installation as a side-effect of loading libsofthsm2.so.

If your application starts crashing after taking this change, with a stacktrace showing math calls to libcrypto, you'll need to do the same.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@graebm graebm changed the title WIP - fix issues with crypto symbols Use latest versions of S2N-TLS and AWS-LC Sep 1, 2022
@graebm graebm marked this pull request as ready for review September 1, 2022 04:31
@graebm graebm merged commit dc73314 into main Sep 1, 2022
@graebm graebm deleted the crypto-symbols branch September 1, 2022 16:13
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.

2 participants