send_ssl_data uses as size only uint16_t but call mbedtls_ssl_write which uses size_t as data lenght so its not all right