Conversation
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.
Add a global integration of MbedTLS into MicroOcpp.
At the moment, there are two (optional) features of MicroOcpp which relate to TLS:
The Certificate Management module consists of an ordinary messaging part which does not depend on MbedTLS (can be reused with other TLS libraries) and a reference implementation of the required X.509 certificate parsing and storage functions which do depend on MbedTLS.
With this PR, the following switches exist to control the TLS-related modules:
MO_ENABLE_MBEDTLS=1: enable modules which depend on MbedTLSMO_ENABLE_CERT_MGMT=1: enable general Certificate Management supportMO_ENABLE_CERT_STORE_MBEDTLS=1: enable Certificate Management X.509 parsing and storage implementationcmake switches:
MO_BUILD_UNIT_MBEDTLS=True: build unit tests with MbedTLS (requires copy inlib/mbedtlschecked out tov2.28.1- must be done by hand)This PR removes the
certStoreparameter from themocpp_initialize(...)functions again (planned for the 1.1.0 release, but now withdrawn). A custom cert store implementation can be set viasetCertificateStore(...)now.Furthermore, this PR adds a .gitignore. If someone needs more entries, feel free to make suggestions!