mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-03 16:36:20 +03:00
Add in MbedTLS library support as another alternative TLS library Makefile.am: Include new src/coap_mbedtls.c file. configure.ac: Add in --with-mbedtls support which generates HAVE_MBEDTLS in coap_config.h. include/coap2/coap_dtls.h: Add in TLS Library type COAP_TLS_LIBRARY_MBEDTLS and make COAP_TLS_LIBRARY_* defines an enum. Add in PKI Key type COAP_PKI_KEY_PEM_BUF for passing in PEM information that is held in memory instead of in a file. Add in #define COAP_DTLS_RETRANSMIT_MS, COAP_DTLS_RETRANSMIT_TOTAL_MS and COAP_DTLS_RETRANSMIT_COAP_TICKS src/coap_debug.c: Output MbedTLS information if appropriate. src/coap_mbedtls.c: (New) Contains the MbedTLS interface code. src/coap_notls.c: Do not use code if MbedTLS is being built. tests/test_tls.c: Include MbedTLS library checks. README.md: Include MbedTLS as a valid (D)TLS library.