Skip to content

Commit

Permalink
Added explicit typecast for mbedtls call.
Browse files Browse the repository at this point in the history
  • Loading branch information
GlitchedPolygons committed Jan 7, 2020
1 parent 123182c commit dedf3a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/glitchedhttps.h
Expand Up @@ -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)
{
Expand Down

0 comments on commit dedf3a3

Please sign in to comment.