Mbed TLS is now part of TrustedFirmware.org.

Just getting started integrating a tiny version of mbed TLS


Jul 26, 2017 15:23
Sutton Mehaffey

What exactly are these defines: _MSC_VER, EFIX64, and EFI32? I'm using the Keil IDE to try and test the ssl_mail_client() function. Neither of the header files below are in the source code download folders and I don't use io.h of Keils in anything I do. So, I get 'can't find "unistd.h"'. So, maybe someone can help me get started. I'm using my own embedded hardware with LPC chipset.

Thanks.

Sutton

if !defined(_MSC_VER) || defined(EFIX64) || defined(EFI32)

include <unistd.h>

else

include <io.h>

endif

 
Jul 26, 2017 15:59
Sutton Mehaffey

Also 'gethostname()' function called from ssl_mail_client() is not found anywhere in the libraries.

 
Jul 27, 2017 11:31
Ron Eldor

Hi Sutton,
Thank you for raising this.
The sample programs are sample application to show case common usages on mbed TLS, as described here
AS such, these sample applications were tested and verified with linux and windows.
The definitions you were asking about are platform specific, which should not be defined for your platform.
I have created a github issue for request on enhancing these applications to support ARMCC as well.
Regards,
mbed TLS Team member
Ron

 
Jul 27, 2017 19:42
Sutton Mehaffey

Thanks for the input.