summaryrefslogtreecommitdiffstats
path: root/rfb/rfbclient.h
diff options
context:
space:
mode:
authorVic Lee <llyzs@163.com>2009-10-02 20:42:05 +0800
committerJohannes Schindelin <johannes.schindelin@gmx.de>2009-10-02 16:55:58 +0200
commit95ae56c83110c35bce9752d18975b6edcd8088b9 (patch)
tree89f2f133c19e54d3eeae36a4ef404176286576d8 /rfb/rfbclient.h
parent68964c29d97b9b9d9d5bfbe685eb05c3c17c5fd1 (diff)
downloadlibtdevnc-95ae56c83110c35bce9752d18975b6edcd8088b9.tar.gz
libtdevnc-95ae56c83110c35bce9752d18975b6edcd8088b9.zip
Add VeNCrypt support in libvncclient
Signed-off-by: Vic Lee <llyzs@163.com>
Diffstat (limited to 'rfb/rfbclient.h')
-rw-r--r--rfb/rfbclient.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/rfb/rfbclient.h b/rfb/rfbclient.h
index b3a0d87..c32168c 100644
--- a/rfb/rfbclient.h
+++ b/rfb/rfbclient.h
@@ -104,7 +104,7 @@ typedef struct {
/* For GetCredentialProc callback function to return */
typedef union _rfbCredential
{
- /* VeNCrypt */
+ /* X509 (VeNCrypt) */
struct
{
char *x509CACertFile;
@@ -112,7 +112,7 @@ typedef union _rfbCredential
char *x509ClientCertFile;
char *x509ClientKeyFile;
} x509Credential;
- /* MSLogon */
+ /* Plain (VeNCrypt), MSLogon (UltraVNC) */
struct
{
char *username;
@@ -120,6 +120,9 @@ typedef union _rfbCredential
} userCredential;
} rfbCredential;
+#define rfbCredentialTypeX509 1
+#define rfbCredentialTypeUser 2
+
struct _rfbClient;
typedef void (*HandleTextChatProc)(struct _rfbClient* client, int value, char *text);
@@ -129,7 +132,7 @@ typedef void (*SoftCursorLockAreaProc)(struct _rfbClient* client, int x, int y,
typedef void (*SoftCursorUnlockScreenProc)(struct _rfbClient* client);
typedef void (*GotFrameBufferUpdateProc)(struct _rfbClient* client, int x, int y, int w, int h);
typedef char* (*GetPasswordProc)(struct _rfbClient* client);
-typedef rfbCredential* (*GetCredentialProc)(struct _rfbClient* client, uint8_t securityType);
+typedef rfbCredential* (*GetCredentialProc)(struct _rfbClient* client, int credentialType);
typedef rfbBool (*MallocFrameBufferProc)(struct _rfbClient* client);
typedef void (*GotXCutTextProc)(struct _rfbClient* client, const char *text, int textlen);
typedef void (*BellProc)(struct _rfbClient* client);