Fixes SSL sample apps for non-default configs

Fixes the SSL sample applications to build for the non-default configs
which don't build if MBEDTLS_PLATFORM_C isn't defined.
This commit is contained in:
Simon Butcher 2016-04-27 01:26:50 +01:00
parent 80aea30aa5
commit d3138c35c6
6 changed files with 20 additions and 4 deletions

View file

@ -29,6 +29,9 @@
#include "mbedtls/platform.h"
#else
#include <stdio.h>
#include <stdlib.h>
#define mbedtls_time time
#define mbedtls_time_t time_t
#define mbedtls_fprintf fprintf
#define mbedtls_printf printf
#endif