1 /* 2 * SPDX-License-Identifier: Apache-2.0 3 * 4 * Copyright (c) 2021 Arm Limited 5 */ 6 7 #ifndef __BOOTUTIL_CRYPTO_COMMON_H__ 8 #define __BOOTUTIL_CRYPTO_COMMON_H__ 9 10 /* The check below can be performed even for those cases 11 * where MCUBOOT_USE_MBED_TLS has not been defined 12 */ 13 #include "mbedtls/version.h" 14 #if MBEDTLS_VERSION_NUMBER >= 0x03000000 15 #define MBEDTLS_CONTEXT_MEMBER(X) MBEDTLS_PRIVATE(X) 16 #else 17 #define MBEDTLS_CONTEXT_MEMBER(X) X 18 #endif 19 20 #endif /* __BOOTUTIL_CRYPTO_COMMON_H__ */ 21