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

Zephyr: Support later Mbed TLS versions #1454

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 */