Add support for needed functionality to mbedTLS