Refactor the TLS code so that the push/pull functions are aware of their
containing stream object. This is in preparation for supporting GnuTLS 3.x.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4921 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rdr/TLSOutStream.h b/common/rdr/TLSOutStream.h
index 5eb512e..a291f42 100644
--- a/common/rdr/TLSOutStream.h
+++ b/common/rdr/TLSOutStream.h
@@ -43,6 +43,7 @@
private:
int writeTLS(const U8* data, int length);
+ static ssize_t push(gnutls_transport_ptr str, const void* data, size_t size);
gnutls_session session;
OutStream* out;
@@ -50,8 +51,6 @@
U8* start;
int offset;
};
-
- ssize_t gnutls_OutStream_push(gnutls_transport_ptr, const void*, size_t);
};
#endif