Just getting started integrating a tiny version of mbed TLS
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.
if !defined(_MSC_VER) || defined(EFIX64) || defined(EFI32)
Also 'gethostname()' function called from ssl_mail_client() is not found anywhere in the libraries.
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.
mbed TLS Team member
Thanks for the input.