[mbedtls] update mbedtls-config.h to fix build (#3338)

- Add stdio.h for snprintf.

- When `MBEDTLS_ECP_ALT` is defined, need to define mbedtls_ecp_restart_ctx
for build to succeed.
This commit is contained in:
Jonathan Hui
2018-12-03 21:30:36 -08:00
parent 94dc2c0949
commit f9b202998b
+5
View File
@@ -29,6 +29,7 @@
#ifndef MBEDTLS_CONFIG_H
#define MBEDTLS_CONFIG_H
#include <stdio.h>
#include <stdlib.h>
#include <openthread/config.h>
@@ -167,6 +168,10 @@ __inline void mbedtls_platform_zeroize( void *buf, size_t len)
#include MBEDTLS_USER_CONFIG_FILE
#endif
#if defined(MBEDTLS_ECP_ALT) && !defined(MBEDTLS_ECP_RESTARTABLE)
typedef void mbedtls_ecp_restart_ctx;
#endif
#include "mbedtls/check_config.h"
#endif /* MBEDTLS_CONFIG_H */