raiden00pl opened a new pull request, #4090:
URL: https://github.com/apache/nuttx-apps/pull/4090
## Summary
coap_config.h defined COAP_WITH_LIBMBEDTLS unconditionally, so a build
without CONFIG_CRYPTO_MBEDTLS failed on the missing mbedtls/entropy.h.
Include nuttx/config.h and define it only with CONFIG_CRYPTO_MBEDTLS.
This also makes the CONFIG_NET_IPv4/IPv6 checks in coap_config.h work:
libcoap now supports only the enabled address families.
## Impact
libcoap builds without Mbed TLS (plain CoAP). Builds with
CONFIG_CRYPTO_MBEDTLS are unchanged.
## Testing
sim with NETUTILS_LIBCOAP and the example, without CRYPTO_MBEDTLS:
before, coap_mbedtls.c fails to compile; after, it builds and
coap_client/coap_server talk to the host libcoap tools (GET, PUT, POST,
DELETE, CON/NON, block-wise, observe, IPv6)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]