Raymond Mao | 8e79549 | 2025-02-03 14:08:13 -0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Internal build options for MbedTLS |
| 4 | * |
| 5 | * Copyright (c) 2025 Linaro Limited |
| 6 | * Author: Raymond Mao <raymond.mao@linaro.org> |
| 7 | */ |
| 8 | |
| 9 | #ifndef _MBEDTLS_OPT_H |
| 10 | #define _MBEDTLS_OPT_H |
| 11 | |
| 12 | /* |
| 13 | * FIXME: |
| 14 | * U-Boot/MbedTLS port requires to access a few of members which are defined |
| 15 | * as private in MbedTLS context. |
| 16 | * E.g: x509_internal.h, mbedtls_sha256_context and mbedtls_sha1_context. |
| 17 | * MBEDTLS_ALLOW_PRIVATE_ACCESS needs to be enabled to allow the external |
| 18 | * access, but directly including <external/mbedtls/library/common.h> is not |
| 19 | * allowed, since this will include <malloc.h> and break the sandbox test. |
| 20 | */ |
| 21 | #define MBEDTLS_ALLOW_PRIVATE_ACCESS |
| 22 | |
| 23 | #endif /* _MBEDTLS_OPT_H */ |