Skip to content

Commit

Permalink
Zephyr: Support Mbed TLS 3.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdeep1 committed Jul 2, 2024
1 parent f16e019 commit 8acc53c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions zephyr/config-mbedtls-libcoap.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,34 @@
#endif /* ! MBEDTLS_CAN_ECDH */
#endif /* MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED */

#if defined(MBEDTLS_ENTROPY_C)
#ifndef MBEDTLS_MD_CAN_SHA256
#define MBEDTLS_MD_CAN_SHA256
#endif /* ! MBEDTLS_MD_CAN_SHA256 */
#endif /* MBEDTLS_ENTROPY_C */

#if defined(MBEDTLS_CCM_C)
#ifndef MBEDTLS_CCM_GCM_CAN_AES
#define MBEDTLS_CCM_GCM_CAN_AES
#endif /* ! MBEDTLS_MD_CAN_SHA256 */
#endif /* MBEDTLS_CCM_C */

#if defined(MBEDTLS_GCM_C)
#ifndef MBEDTLS_CCM_GCM_CAN_AES
#define MBEDTLS_CCM_GCM_CAN_AES
#endif /* ! MBEDTLS_CCM_GCM_CAN_AES */
#endif /* MBEDTLS_GCM_C */

#if defined(MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED)
#ifndef PSA_WANT_ECC_SECP_R1_256
#define PSA_WANT_ECC_SECP_R1_256
#endif /* ! PSA_WANT_ECC_SECP_R1_256 */
#endif /* MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED */

#if defined(MBEDTLS_MD_C)
#ifndef MBEDTLS_MD_CAN_SHA256
#define MBEDTLS_MD_CAN_SHA256
#endif /* ! MBEDTLS_MD_CAN_SHA256 */
#endif /* MBEDTLS_MD_C */

#endif /* CONFIG_MBEDTLS_LIBCOAP_H */

0 comments on commit 8acc53c

Please sign in to comment.