-
Notifications
You must be signed in to change notification settings - Fork 113
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
AWS SDK Fails to build with OpenSSL1.1 #44
Comments
Looks to be tangentially associated with this issue: #19, which mentions that OpenSsl support would be updated in the next version. This is from June 20th. Looks like the call to TLSv1_2_method was still in there, in addition to the deprecated calls that I reference above. |
Actually, the code originally had ERR_remove_state(0);, which was ALSO deprecated in favor of what I printed out above, which is now deprecated. So... a few versions behind here. |
* Wrapped the remove_thread calls in an ifdef. * Issue opened on SDK: aws#44
The pull request has been merged into master. |
When building against OpenSSL1.1, the following compile error is seen (this is without quieting deprecated declarations, obviously):
/home/kmiller/GitLab/data-management/AWS_SDK/aws-iot-device-sdk-cpp/network/OpenSSL/OpenSSLConnection.cpp: In destructor ‘awsiotsdk::network::OpenSSLInitializer::~OpenSSLInitializer()’: /home/kmiller/GitLab/data-management/AWS_SDK/aws-iot-device-sdk-cpp/network/OpenSSL/OpenSSLConnection.cpp:45:41: error: ‘void ERR_remove_thread_state(void*)’ is deprecated [-Werror=deprecated-declarations] ERR_remove_thread_state(NULL); ^ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from /home/kmiller/GitLab/data-management/AWS_SDK/aws-iot-device-sdk-cpp/network/OpenSSL/OpenSSLConnection.hpp:40, from /home/kmiller/GitLab/data-management/AWS_SDK/aws-iot-device-sdk-cpp/network/OpenSSL/OpenSSLConnection.cpp:25: /usr/include/openssl/err.h:247:1: note: declared here DEPRECATEDIN_1_1_0(void ERR_remove_thread_state(void *))
Could this call to ERR_remove_thread_state just be simply wrapped in the following to compile with SSL 1.1.0f?
?
The text was updated successfully, but these errors were encountered: