-
Notifications
You must be signed in to change notification settings - Fork 711
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
refactor: add a s2n_libcrypto_is_openssl() helper function #4930
Conversation
5dfe535
to
92f4729
Compare
92f4729
to
f2d3a14
Compare
crypto/s2n_libcrypto.c
Outdated
* Note: This check needs to be updated if s2n-tls adds support for a new | ||
* libcrypto. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we actually could write a test to enforce this. Like add some string matching to https://github.com/aws/s2n-tls/blob/main/tests/unit/s2n_build_test.c.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome suggestion. I added a test for supported libcrytpo 6be1cfc
Description of changes:
This PR adds/fixes documentation, fixes a test and introduces the helper function
s2n_libcrypto_is_openssl()
.This fn will be used in #4878 to gate the use of custom random to only openssl.
Callout:
We have to detect openssl by detecting the absence of other libcrypto. I have added a comment explaining why this is necessary.
Testing:
Added a new unit test.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.