cancel
Showing results for 
Search instead for 
Did you mean: 

mbedTLS client example STM32Cube_FW_F7_V1.17.0

Jonas_A
Associate

Hi, I'm running the following example project:

STM32Cube_FW_F7_V1.17.0\Projects\STM32F769I-Discovery\Applications\mbedTLS\SSL_Client

on the development board STM32F769I-Discovery.

Seems like the application uses the .h file 

STM32Cube_FW_F7_V1.17.0\Middlewares\Third_Party\mbedTLS\include\mbedtls\config.h

to configure the embedTLS module.

The project also includes this .h file for configuration of mbedTLS:

STM32Cube_FW_F7_V1.17.0\Projects\STM32F769I-Discovery\Applications\mbedTLS\SSL_Client\Inc\mbedtls_config.h

But it doesn't seem like it's used, why is that? 

BR

Jonas

 

1 REPLY 1
Guillaume K
ST Employee

In every mbedtls include file there is a check on MBEDTLS_CONFIG_FILE C define:

#if !defined(MBEDTLS_CONFIG_FILE)
#include "config.h"
#else
#include MBEDTLS_CONFIG_FILE
#endif

If it is defined, the file indicated in it is included instead of mbedtls\config.h 

It is defined in the SSL_Client example project files : MBEDTLS_CONFIG_FILE=<mbedtls_config.h>