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

AWS SDK Fails to build with OpenSSL1.1 #44

Closed
kmiller15211 opened this issue Oct 12, 2017 · 3 comments
Closed

AWS SDK Fails to build with OpenSSL1.1 #44

kmiller15211 opened this issue Oct 12, 2017 · 3 comments

Comments

@kmiller15211
Copy link

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?

#if OPENSSL_VERSION_NUMBER >= 0x10000000L && OPENSSL_VERSION_NUMBER < 0x10100000L
...
#endif 

?

@kmiller15211
Copy link
Author

kmiller15211 commented Oct 12, 2017

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.

@kmiller15211
Copy link
Author

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.

kmiller15211 added a commit to kmiller15211/aws-iot-device-sdk-cpp that referenced this issue Oct 12, 2017
* Wrapped the remove_thread calls in an ifdef.
* Issue opened on SDK: aws#44
@vareddy-zz
Copy link
Contributor

The pull request has been merged into master.

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

No branches or pull requests

2 participants