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 with OPENSSL_NO_DEPRECATED #228

Merged
merged 4 commits into from
May 12, 2022
Merged

Fix build with OPENSSL_NO_DEPRECATED #228

merged 4 commits into from
May 12, 2022

Conversation

janblome
Copy link
Contributor

@janblome janblome commented May 11, 2022

Add missing include to fix build with OPENSSL_NO_DEPRECATED defined and adjust the deprecation test to set this define. Also remove some unused re-definitions of OpenSSL functions in OpenSSLErrorTest.cpp that use types that are not defined with OPENSSL_NO_DEPRECATED.

Fixes #223.

Creating and verifying RSA signatures requires some OpenSSL functions
declared in the `openssl/rsa.h` header. When `OPENSSL_NO_DEPRECATED` is
not defined this header gets indirectly included. But with this define
set the function declarations are missing. This commit adds an explicit
include for the file to fix this.
Some functions from OpenSSL redefined in `OpenSSLErrorTest.cpp` use
types that are not available when `OPENSSL_NO_DEPRECATED` is defined.
Since they do not seem to be actually used this commit simply removes
them.
@prince-chrismc prince-chrismc merged commit d7e0936 into Thalhammer:master May 12, 2022
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.

Compilation fails with OpenSSL 3.0 and OPENSSL_NO_DEPRECATED
2 participants