Skip to content
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

Fix build against openssl 1.0.2 #164

Merged
merged 2 commits into from Oct 12, 2023
Merged

Fix build against openssl 1.0.2 #164

merged 2 commits into from Oct 12, 2023

Conversation

DmitriyMusatkin
Copy link
Contributor

Issue #, if available:

Description of changes:
in 1.0.2 evperr header did not existing and errors were instead defined in evp.h

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

@@ -11,7 +11,10 @@
#include <openssl/evp.h>

#if !defined(OPENSSL_IS_AWSLC) && !defined(OPENSSL_IS_BORINGSSL)
Copy link
Contributor

@waahm7 waahm7 Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Sorry existing code but I think we should probably use defined(OPENSSL_IS_OPENSSL) instead. This check may break in the future if we add more variants.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

openssl does not define OPENSSL_IS_OPENSSL. we do define it manually in another place to the exact same thing as above. its something to consider and will need a bit of refactoring. We probably would want to pull that define into private common header that can be included in all openssl code

@DmitriyMusatkin DmitriyMusatkin merged commit 0db9df8 into main Oct 12, 2023
36 checks passed
@DmitriyMusatkin DmitriyMusatkin deleted the openssl_header branch October 12, 2023 21:08
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.

None yet

3 participants