1 // Copyright 2021 The Pigweed Authors 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not 4 // use this file except in compliance with the License. You may obtain a copy of 5 // the License at 6 // 7 // https://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12 // License for the specific language governing permissions and limitations under 13 // the License. 14 15 // Some common configs for using mbedtls in Pigweed. These include disabling of 16 // file system, socket and linux/windows specific features. See 17 // include/mbedtls/config.h for a detail explanation of these configurations. 18 19 #pragma once 20 21 // No file system support. 22 #undef MBEDTLS_FS_IO 23 // No posix socket support 24 #undef MBEDTLS_NET_C 25 // This feature requires file system support. 26 #undef MBEDTLS_PSA_ITS_FILE_C 27 // The following two require MBEDTLS_PSA_ITS_FILE_C 28 #undef MBEDTLS_PSA_CRYPTO_C 29 #undef MBEDTLS_PSA_CRYPTO_STORAGE_C 30 // This feature only works on Unix/Windows 31 #undef MBEDTLS_TIMING_C 32 // Use a custom entropy generator 33 #define MBEDTLS_NO_PLATFORM_ENTROPY 34 // Error string support for debugging 35 #define MBEDTLS_ERROR_C 36 37 #include "mbedtls/check_config.h" 38