Skip to content

Commit

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

#if defined(MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED)
#ifndef MBEDTLS_CAN_ECDH
#define MBEDTLS_CAN_ECDH
#endif /* ! MBEDTLS_CAN_ECDH */

#ifndef MBEDTLS_PK_CAN_ECDSA_SIGN
#define MBEDTLS_PK_CAN_ECDSA_SIGN
#endif /* ! MBEDTLS_PK_CAN_ECDSA_SIGN */

#ifndef MBEDTLS_X509_CRT_PARSE_C
#define MBEDTLS_X509_CRT_PARSE_C
#endif /* ! MBEDTLS_X509_CRT_PARSE_C */
#endif /* MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED */

#if defined(MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED)
#ifndef MBEDTLS_CAN_ECDH
#define MBEDTLS_CAN_ECDH
#endif /* ! MBEDTLS_CAN_ECDH */

#ifndef MBEDTLS_RSA_C
#define MBEDTLS_RSA_C
#endif /* ! MBEDTLS_RSA_C */

#ifndef MBEDTLS_X509_CRT_PARSE_C
#define MBEDTLS_X509_CRT_PARSE_C
#endif /* ! MBEDTLS_X509_CRT_PARSE_C */
#endif /* MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED */

#if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED)
#ifndef MBEDTLS_CAN_ECDH
#define MBEDTLS_CAN_ECDH
#endif /* ! MBEDTLS_CAN_ECDH */
#endif /* MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED */

#endif /* CONFIG_MBEDTLS_LIBCOAP_H */

0 comments on commit f16e019

Please sign in to comment.