From 29990f0090754c722653aafd3fc6800cebc1584c Mon Sep 17 00:00:00 2001 From: Vic Lee Date: Wed, 7 Oct 2009 11:01:55 +0800 Subject: Add MSLogon security type Signed-off-by: Vic Lee Signed-off-by: Johannes Schindelin --- rfb/rfbclient.h | 10 ++++++++++ rfb/rfbproto.h | 1 + 2 files changed, 11 insertions(+) (limited to 'rfb') diff --git a/rfb/rfbclient.h b/rfb/rfbclient.h index c32168c..6d38c8f 100644 --- a/rfb/rfbclient.h +++ b/rfb/rfbclient.h @@ -46,6 +46,16 @@ (((l) & 0x0000ff00) << 8) | \ (((l) & 0x000000ff) << 24)) : (l)) +#define rfbClientSwap64IfLE(l) \ + (*(char *)&client->endianTest ? ((((l) & 0xff00000000000000ULL) >> 56) | \ + (((l) & 0x00ff000000000000ULL) >> 40) | \ + (((l) & 0x0000ff0000000000ULL) >> 24) | \ + (((l) & 0x000000ff00000000ULL) >> 8) | \ + (((l) & 0x00000000ff000000ULL) << 8) | \ + (((l) & 0x0000000000ff0000ULL) << 24) | \ + (((l) & 0x000000000000ff00ULL) << 40) | \ + (((l) & 0x00000000000000ffULL) << 56)) : (l)) + #define FLASH_PORT_OFFSET 5400 #define LISTEN_PORT_OFFSET 5500 #define TUNNEL_PORT_OFFSET 5500 diff --git a/rfb/rfbproto.h b/rfb/rfbproto.h index 06ab579..b6f201c 100644 --- a/rfb/rfbproto.h +++ b/rfb/rfbproto.h @@ -265,6 +265,7 @@ typedef char rfbProtocolVersionMsg[13]; /* allow extra byte for null */ #define rfbUltra 17 #define rfbTLS 18 #define rfbVeNCrypt 19 +#define rfbMSLogon 0xfffffffa #define rfbVeNCryptPlain 256 #define rfbVeNCryptTLSNone 257 -- cgit v1.2.1