Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix libcoap building with various MbedTLS compile time options (IDFGH-1749) #3977

Closed
wants to merge 1 commit into from

Conversation

mrdeep1
Copy link
Contributor

@mrdeep1 mrdeep1 commented Aug 28, 2019

See #3961 and #3971

components/coap/port/coap_mbedtls.c:

Add in additional compile time check wrappers for different MbedTLS
configurations.

components/coap/CMakeLists.txt:
components/coap/component.mk:
components/coap/port/coap_notls.c:
components/coap/port/include/coap_config_posix.h:

Add in the ability to compile and run if MbedTLS does not have any TLS
mode enabled.

examples/protocols/coap_client/main/coap_client_example_main.c:

Inform user that MbedTLS Client Mode is required for DTLS if not enabled,
and coaps:// has been requested.
[Lower libcoap library will still error and report this condition]

examples/protocols/coap_server/main/coap_server_example_main.c:

Inform user that MbedTLS Server Mode is required for DTLS if not enabled.
[Lower libcoap library will still error and report this condition]

@mrdeep1
Copy link
Contributor Author

mrdeep1 commented Aug 28, 2019

@mahavirj FYI

@github-actions github-actions bot changed the title Fix libcoap building with various MbedTLS compile time options Fix libcoap building with various MbedTLS compile time options (IDFGH-1749) Aug 28, 2019
Copy link
Member

@mahavirj mahavirj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mrdeep1 I was working on similar change internally, but I will pull in your PR. Probably splitting this in 2 PRs would be helpful. Thanks.

components/lwip/Kconfig Outdated Show resolved Hide resolved
@mrdeep1
Copy link
Contributor Author

mrdeep1 commented Aug 28, 2019

I have realised that if mbedtls is completely disabled, things will not build - I have a clean fix in mind - will do this later today

components/coap/port/coap_mbedtls.c:

Add in additional compile time check wrappers for different MbedTLS
configurations.

components/coap/CMakeLists.txt:
components/coap/component.mk:
components/coap/port/coap_notls.c:
components/coap/port/include/coap_config_posix.h:

Add in the ability to compile and run if MbedTLS does not have any TLS
mode enabled.

examples/protocols/coap_client/main/coap_client_example_main.c:

Inform user that MbedTLS Client Mode is required for DTLS if not enabled,
and coaps:// has been requested.
[Lower libcoap library will still error and report this condition]

examples/protocols/coap_server/main/coap_server_example_main.c:

Inform user that MbedTLS Server Mode is required for DTLS if not enabled.
[Lower libcoap library will still error and report this condition]
@mrdeep1
Copy link
Contributor Author

mrdeep1 commented Aug 28, 2019

@mahavirj PR split and fixed up to including rebuilding when MbedTLS is not configured for a TLS mode.

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.

None yet

2 participants