From 2c0ff0c1e12f577d43770a94bce964d68198bbf7 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Mon, 21 Aug 2017 12:33:19 +1000 Subject: [PATCH] mbedtls: Add a shim header to account for including "mbedtls/config.h" directly in program Previously this resulted in a config mismatch between default config and esp_config.h Closes https://github.com/espressif/esp-idf/issues/711 --- components/mbedtls/port/include/mbedtls/config.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 components/mbedtls/port/include/mbedtls/config.h diff --git a/components/mbedtls/port/include/mbedtls/config.h b/components/mbedtls/port/include/mbedtls/config.h new file mode 100644 index 000000000..cf3d904de --- /dev/null +++ b/components/mbedtls/port/include/mbedtls/config.h @@ -0,0 +1,9 @@ +/* This shim header is added so that any application code + which includes "mbedtls/config.h" directly gets the correct + config. */ +#pragma once +#if !defined(MBEDTLS_CONFIG_FILE) +#include_next "mbedtls/config.h" +#else +#include MBEDTLS_CONFIG_FILE +#endif