summaryrefslogtreecommitdiffstats
path: root/libvncclient/tls.h
diff options
context:
space:
mode:
Diffstat (limited to 'libvncclient/tls.h')
-rw-r--r--libvncclient/tls.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libvncclient/tls.h b/libvncclient/tls.h
index 48d159b..ffcfdeb 100644
--- a/libvncclient/tls.h
+++ b/libvncclient/tls.h
@@ -43,9 +43,14 @@ 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);
+#ifdef LIBVNCSERVER_HAVE_SASL
+/* Get the number of bits in the current cipher */
+int GetTLSCipherBits(rfbClient* client);
+#endif /* LIBVNCSERVER_HAVE_SASL */
+
#endif /* TLS_H */