Hanno Becker | abc22b7 | 2019-03-18 12:39:49 +0000 | [diff] [blame^] | 1 | /** |
| 2 | * \file baremetal_test.h |
| 3 | * |
| 4 | * \brief This file contains minimal modifications to the |
| 5 | * baremetal configuration `baremetal.h` which allows |
| 6 | * example programs to compile and run. |
| 7 | * |
| 8 | * It should be used as the `MBEDTLS_USER_CONFIG_FILE` |
| 9 | * in builds using `baremetal.h`. |
| 10 | */ |
| 11 | /* |
| 12 | * Copyright (C) 2006-2018, ARM Limited, All Rights Reserved |
| 13 | * SPDX-License-Identifier: Apache-2.0 |
| 14 | * |
| 15 | * Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 16 | * not use this file except in compliance with the License. |
| 17 | * You may obtain a copy of the License at |
| 18 | * |
| 19 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 20 | * |
| 21 | * Unless required by applicable law or agreed to in writing, software |
| 22 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 23 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 24 | * See the License for the specific language governing permissions and |
| 25 | * limitations under the License. |
| 26 | * |
| 27 | * This file is part of mbed TLS (https://tls.mbed.org) |
| 28 | */ |
| 29 | |
| 30 | #ifndef MBEDTLS_BAREMETAL_USER_CONFIG_H |
| 31 | #define MBEDTLS_BAREMETAL_USER_CONFIG_H |
| 32 | |
| 33 | /* We need test CRTs to be able to run ssl_client2 and ssl_server2. */ |
| 34 | #define MBEDTLS_CERTS_C |
| 35 | /* For the network context used by ssl_client2 and ssl_server2. */ |
| 36 | #define MBEDTLS_NET_C |
| 37 | /* Debug output */ |
| 38 | #define MBEDTLS_DEBUG_C |
| 39 | |
| 40 | /* We don't have DER-encoded test CRTs yet. */ |
| 41 | #define MBEDTLS_PEM_PARSE_C |
| 42 | #define MBEDTLS_BASE64_C |
| 43 | /* We don't have Secp256r1 test CRTs at the moment. */ |
| 44 | #define MBEDTLS_ECP_DP_SECP384R1_ENABLED |
| 45 | |
| 46 | /* ssl_client2 and ssl_server2 use CTR-DRBG so far. */ |
| 47 | #define MBEDTLS_CTR_DRBG_C |
| 48 | |
| 49 | /* The ticket implementation hardcodes AES-GCM */ |
| 50 | #define MBEDTLS_GCM_C |
| 51 | |
| 52 | /* Use Mbed TLS' timer implementation for Linux. */ |
| 53 | #define MBEDTLS_TIMING_C |
| 54 | |
| 55 | #undef MBEDTLS_NO_PLATFORM_ENTROPY |
| 56 | |
| 57 | #endif /* MBEDTLS_BAREMETAL_USER_CONFIG_H */ |