Implemented OpenSSL providers support #1528
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi guys,
I have implemented support for OpenSSL providers. It's a new feature available from OpenSSL 3.x.x.
Added CMake compile option “-DPAHO_SSL_PROVIDERS”, which translates to “-DOPENSSL_PROVIDERS=1” C/C++ definition turning on OpenSSL providers support.
“MQTTAsync_connectOptions” and “MQTTClient_connectOptions” structures are extended by “providerName” C-string field with provider name. Empty or invalid “providerName” field indicates no provider used.
In function “SSLSocket_createContext()” provider is loaded, provider self-test is performed, key is obtained and assigned to certificate by calling SSL_CTX_use_PrivateKey() function. If any of these operations fail, function is cancelled with an error code.
Related Paho MQTT C++ PR: eclipse-paho/paho.mqtt.cpp#517
Thank you for your interest in this project managed by the Eclipse Foundation.
The guidelines for contributions can be found in the CONTRIBUTING.md file.
At a minimum, you must sign the Eclipse ECA, and sign off each commit.
To complete and submit a ECA, log into the Eclipse projects forge
You will need to create an account with the Eclipse Foundation if you have not already done so.
Be sure to use the same email address when you register for the account that you intend to use when you commit to Git.
Go to https://accounts.eclipse.org/user/eca to sign the Eclipse ECA.