cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: MBEDTLS d5800b7761ad9705d2ebca86d7af0c8ee24e427a creates regression wher compiling libcurl error: unknown type name 'mbedtls_time_t'

From: Thomas Glanzmann <thomas_at_glanzmann.de>
Date: Sun, 3 Jul 2016 11:37:01 +0200

Hello Dan,

* Dan Fandrich <dan_at_coneharvesters.com> [2016-07-02 21:30]:
> > /home/sithglan/work/vlconnect/curl/../local/win32/include/mbedtls/ssl.h:545:5: error: unknown type name 'mbedtls_time_t'

> This looks like an mbedtls problem. A client #including an mbedtls
> include file (mbedtls/ssl.h in this case) should have all its
> dependent types defined, unless it's documented that users need to
> include another header file first.

I agree. The mbedtls folks already had a bug in their issue tracker.

https://github.com/ARMmbed/mbedtls/issues/522

I asked them to apply it upstream. Here is the fix:

diff --git a/include/mbedtls/ssl.h b/include/mbedtls/ssl.h
index 82c0760..170c010 100644
--- a/include/mbedtls/ssl.h
+++ b/include/mbedtls/ssl.h
@@ -52,7 +52,7 @@
 #endif

 #if defined(MBEDTLS_HAVE_TIME)
-#include <time.h>
+#include "platform.h"
 #endif

 /*

--
2.1.4
Cheers,
        Thomas
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-07-03