https://github.com/ARMmbed/mbed-client-mbedtls-mirror.git/#582821c96be8