-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mbedtls_time_t does not name a type in ssl.h #522
Comments
ARM Internal Ref: IOTSSL-841 |
@janjongboom, can you try to compile again? mbed-client-mbed-tls module is now updated to yotta containing following fix: |
FYI since this bug broke some applications in Debian, I have applied the following patch to the Debian packaging for the 2.3.0 release: --- 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
/* |
@anttiylitokola Yeah, that would do. But @jcowgill's comment makes me think this should be patched in mbedtls repo as well... |
@janjongboom agreed. We'll pick it up. |
Substitutes time() into a configurable platform interface to allow it to be easily substituted.
Hello, Cheers, |
This has now been resolved in a series of commits (b5b6af2, b928343 and 23e9778). Thanks to @jcowgill for the pointer, but the fix above isn't sufficient, and there was an underlying issue that The issue has now been reviewed, committed, tested and fixed in the above commits. |
Trying to compile a program that depends on mbed TLS on a Raspberry Pi Zero...
If I change the
#define
to read (in include/mbedtls/ssl.h):It does compile. Ain't that interesting... Wonder why this is not triggered in test suite.
cc @pjbakker
The text was updated successfully, but these errors were encountered: