From dedf3a3ab1063655651e1c66846d43eeb1626d40 Mon Sep 17 00:00:00 2001 From: Glitched Polygons Date: Tue, 7 Jan 2020 14:28:17 +0100 Subject: [PATCH] Added explicit typecast for mbedtls call. --- include/glitchedhttps.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/glitchedhttps.h b/include/glitchedhttps.h index 7ddbbcc..8b498eb 100644 --- a/include/glitchedhttps.h +++ b/include/glitchedhttps.h @@ -432,7 +432,7 @@ int _glitchedhttps_https_request(const char* server_name, const int server_port, /* Write the request string.*/ - while ((ret = mbedtls_ssl_write(&ssl_context, request, strlen(request))) <= 0) + while ((ret = mbedtls_ssl_write(&ssl_context, (const unsigned char*)request, strlen(request))) <= 0) { if (ret != MBEDTLS_ERR_SSL_WANT_READ && ret != MBEDTLS_ERR_SSL_WANT_WRITE) {