From b2d5dd105dd6073c40aecdbb1471928d90b61287 Mon Sep 17 00:00:00 2001 From: Simon Butcher Date: Wed, 27 Apr 2016 13:35:37 +0100 Subject: [PATCH] Fixes X509 sample app and SSL test suite Fixes the X.509 cert_app and the SSL test suite for the non-default configs which don't build with if MBEDTLS_PLATFORM_C isn't defined. --- programs/x509/cert_app.c | 3 +++ tests/suites/helpers.function | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/programs/x509/cert_app.c b/programs/x509/cert_app.c index 84f67e6d3..3f50a7a14 100644 --- a/programs/x509/cert_app.c +++ b/programs/x509/cert_app.c @@ -29,6 +29,9 @@ #include "mbedtls/platform.h" #else #include +#include +#define mbedtls_time time +#define mbedtls_time_t time_t #define mbedtls_fprintf fprintf #define mbedtls_printf printf #endif diff --git a/tests/suites/helpers.function b/tests/suites/helpers.function index c4128b403..cc9ab7c42 100644 --- a/tests/suites/helpers.function +++ b/tests/suites/helpers.function @@ -6,11 +6,14 @@ #include "mbedtls/platform.h" #else #include +#include #define mbedtls_printf printf #define mbedtls_fprintf fprintf #define mbedtls_calloc calloc #define mbedtls_free free #define mbedtls_exit exit +#define mbedtls_time time +#define mbedtls_time_t time_t #define mbedtls_fprintf fprintf #define mbedtls_printf printf #define mbedtls_snprintf snprintf @@ -29,8 +32,6 @@ typedef UINT32 uint32_t; #include #endif -#include -#include #include