@ -43,7 +43,7 @@ int ReadFromTLS(rfbClient* client, char *out, unsigned int n);
* It's a wrapper function over gnutls_record_send() and it will be
* blocking call, until all bytes are written or error returned.
*/
int WriteToTLS(rfbClient* client, char *buf, unsigned int n);
int WriteToTLS(rfbClient* client, const char *buf, unsigned int n);
/* Free TLS resources */
void FreeTLS(rfbClient* client);
@ -589,7 +589,7 @@ ReadFromTLS(rfbClient* client, char *out, unsigned int n)
}
int
WriteToTLS(rfbClient* client, char *buf, unsigned int n)
WriteToTLS(rfbClient* client, const char *buf, unsigned int n)
{
unsigned int offset = 0;
ssize_t ret;
@ -43,7 +43,7 @@ int ReadFromTLS(rfbClient* client, char *out, unsigned int n)
int WriteToTLS(rfbClient* client, char *buf, unsigned int n)
int WriteToTLS(rfbClient* client, const char *buf, unsigned int n)
rfbClientLog("TLS is not supported.\n");
errno = EINTR;
@ -640,7 +640,7 @@ ReadFromTLS(rfbClient* client, char *out, unsigned int n)