Implemented OpenSSL providers support - #1528
Open
tomaszma1 wants to merge 1 commit into
Open
Conversation
Signed-off-by: Tomasz Maczkowski <tomasz_maczkowski@baxter.com>
tomaszma1
marked this pull request as draft
September 30, 2024 13:47
tomaszma1
marked this pull request as ready for review
September 30, 2024 14:56
Author
|
Hello, it's been 3 weeks already. Any decision to approve/reject this PR? Thanks. |
|
@tomaszma1 Interesting, but I wonder if you have a leak issue with your pkey. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.