Skip to content

Add more build switches for TLS#292

Merged
matth-x merged 7 commits intomainfrom
feature/tls-switches
May 5, 2024
Merged

Add more build switches for TLS#292
matth-x merged 7 commits intomainfrom
feature/tls-switches

Conversation

@matth-x
Copy link
Owner

@matth-x matth-x commented May 4, 2024

Add a global integration of MbedTLS into MicroOcpp.

At the moment, there are two (optional) features of MicroOcpp which relate to TLS:

  • Certificate Management (UCs M03 - M05)
  • FTP client

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 MbedTLS
  • MO_ENABLE_CERT_MGMT=1: enable general Certificate Management support
  • MO_ENABLE_CERT_STORE_MBEDTLS=1: enable Certificate Management X.509 parsing and storage implementation

cmake switches:

  • MO_BUILD_UNIT_MBEDTLS=True: build unit tests with MbedTLS (requires copy in lib/mbedtls checked out to v2.28.1 - must be done by hand)

This PR removes the certStore parameter from the mocpp_initialize(...) functions again (planned for the 1.1.0 release, but now withdrawn). A custom cert store implementation can be set via setCertificateStore(...) now.

Furthermore, this PR adds a .gitignore. If someone needs more entries, feel free to make suggestions!

@matth-x matth-x marked this pull request as ready for review May 5, 2024 11:05
@matth-x matth-x merged commit e38e9f8 into main May 5, 2024
@matth-x matth-x deleted the feature/tls-switches branch May 5, 2024 11:06
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

Successfully merging this pull request may close these issues.

1 participant