summaryrefslogtreecommitdiffstats
path: root/rfb/rfbclient.h
diff options
context:
space:
mode:
authorVic Lee <llyzs@163.com>2010-01-01 12:02:30 +0800
committerJohannes Schindelin <johannes.schindelin@gmx.de>2010-01-01 17:39:00 +0100
commitb019572e73be8f861626943ced1a9e48ebeba838 (patch)
tree335514f9bb6725744af859a1142435011a9ad5b7 /rfb/rfbclient.h
parenta795da8d7ba2a0cc2cd1ea841ecf1dbe60bb1953 (diff)
downloadlibtdevnc-b019572e73be8f861626943ced1a9e48ebeba838.tar.gz
libtdevnc-b019572e73be8f861626943ced1a9e48ebeba838.zip
Add support for viewers to select security types on demand
Signed-off-by: Vic Lee <llyzs@163.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'rfb/rfbclient.h')
-rw-r--r--rfb/rfbclient.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/rfb/rfbclient.h b/rfb/rfbclient.h
index d70ece1..a82ea22 100644
--- a/rfb/rfbclient.h
+++ b/rfb/rfbclient.h
@@ -305,6 +305,10 @@ typedef struct _rfbClient {
* be bypassed.
*/
GetCredentialProc GetCredential;
+
+ /* The 0-terminated security types supported by the client.
+ * Set by function SetClientAuthSchemes() */
+ uint32_t *clientAuthSchemes;
} rfbClient;
/* cursor.c */
@@ -322,6 +326,7 @@ extern rfbBool rfbEnableClientLogging;
typedef void (*rfbClientLogProc)(const char *format, ...);
extern rfbClientLogProc rfbClientLog,rfbClientErr;
extern rfbBool ConnectToRFBServer(rfbClient* client,const char *hostname, int port);
+extern void SetClientAuthSchemes(rfbClient* client,const uint32_t *authSchemes, int size);
extern rfbBool InitialiseRFBConnection(rfbClient* client);
extern rfbBool SetFormatAndEncodings(rfbClient* client);
extern rfbBool SendIncrementalFramebufferUpdateRequest(rfbClient* client);