An open source, portable, easy to use, readable and flexible TLS library, and reference implementation of the PSA Cryptography API. Releases are on a varying cadence, typically around 3 - 6 months between releases.
I have following error during building mbedtls 2.2.1 on Cygwin/MinGW-w64 (x86 platform)
[ 15%] Building C object library/CMakeFiles/mbedcrypto.dir/threading.c.obj
[ 15%] Building C object library/CMakeFiles/mbedcrypto.dir/timing.c.obj
In file included from /usr/i686-w64-mingw32/sys-root/mingw/include/winsock.h:36:0,
from /usr/i686-w64-mingw32/sys-root/mingw/include/windows.h:92,
from /home/user/Development/mbedtls-bfafadb45daf8d2114e3109e2f9021fc72ee36bb/library/timing.c:49:
/usr/i686-w64-mingw32/sys-root/mingw/include/psdk_inc/_fd_types.h:100:2: warning: #warning "fd_set and associated macros have been defined in sys/types.
This can cause runtime problems with W32 sockets" [-Wcpp]
#warning "fd_set and associated macros have been defined in sys/types. \
^
In file included from /usr/i686-w64-mingw32/sys-root/mingw/include/windows.h:92:0,
from /home/user/Development/mbedtls-bfafadb45daf8d2114e3109e2f9021fc72ee36bb/library/timing.c:49:
/usr/i686-w64-mingw32/sys-root/mingw/include/winsock.h:299:34: error: conflicting types for ‘select’
WINSOCK_API_LINKAGE int WSAAPI select(int nfds,fd_set *readfds,fd_set *writefds,fd_set *exceptfds,const PTIMEVAL timeout);
^
In file included from /usr/include/sys/types.h:68:0,
from /usr/include/stdio.h:48,
from /home/user/Development/mbedtls-bfafadb45daf8d2114e3109e2f9021fc72ee36bb/include/mbedtls/platform.h:47,
from /home/user/Development/mbedtls-bfafadb45daf8d2114e3109e2f9021fc72ee36bb/library/timing.c:31:
/usr/include/sys/select.h:73:5: note: previous declaration of ‘select’ was here
int select __P ((int __n, fd_set *__readfds, fd_set *__writefds,
^
I have following error during building mbedtls 2.2.1 on Cygwin/MinGW-w64 (x86 platform)
cmake configuration:
Update: Same error when building version 2.3.0