mirror of
https://github.com/obgm/libcoap.git
synced 2025-05-09 15:21:35 +08:00

New examples/zephyr directory that contains a sample coap-client. Building the coap-client assumes that the zephyrproject has already been installed and set up (default directory ~/zephyrproject).
102 lines
2.6 KiB
C
102 lines
2.6 KiB
C
/*
|
|
* Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
|
|
* Copyright (c) 2017 Intel Corporation.
|
|
* Copyright (c) 2018 Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* libcoap configuration for (D)TLS, manageable by Kconfig.
|
|
*/
|
|
|
|
#ifndef CONFIG_MBEDTLS_LIBCOAP_H
|
|
#define CONFIG_MBEDTLS_LIBCOAP_H
|
|
|
|
#ifndef MBEDTLS_TIMING_C
|
|
#define MBEDTLS_TIMING_C
|
|
#endif /* ! MBEDTLS_TIMING_C */
|
|
|
|
#ifndef MBEDTLS_VERSION_C
|
|
#define MBEDTLS_VERSION_C
|
|
#endif /* ! MBEDTLS_VERSION_C */
|
|
|
|
#ifndef MBEDTLS_CTR_DRBG_C
|
|
#define MBEDTLS_CTR_DRBG_C
|
|
#endif /* ! MBEDTLS_CTR_DRBG_C */
|
|
|
|
#ifndef MBEDTLS_AES_C
|
|
#define MBEDTLS_AES_C
|
|
#endif /* ! MBEDTLS_AES_C */
|
|
|
|
#ifndef MBEDTLS_ENTROPY_C
|
|
#define MBEDTLS_ENTROPY_C
|
|
#endif /* ! MBEDTLS_ENTROPY_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 */
|
|
|
|
#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 */
|
|
#ifndef PMBEDTLS_ECP_DP_SECP256R1_ENABLED
|
|
#define MBEDTLS_ECP_DP_SECP256R1_ENABLED
|
|
#endif /* ! MBEDTLS_ECP_DP_SECP256R1_ENABLED */
|
|
#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 */
|