aws / aws-iot-device-sdk-cpp

SDK for connecting to AWS IoT from a device using C++
http://aws-iot-device-sdk-cpp-docs.s3-website-us-east-1.amazonaws.com
Apache License 2.0
122 stars 111 forks source link

Re-read SSL ca certificates when reconnecting after timeout #132

Closed jeroen-plug closed 3 years ago

jeroen-plug commented 6 years ago

Issue: #129 - Test case 2

Description of changes: After a timeout, the ssl context in network/OpenSSL/OpenSSLConnection.cpp is reset. This means the ca certificates loaded by OpenSSLConnection::LoadCerts must be loaded again. Resetting the certificates_read_flag when clearing the ssl context triggers this.

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