summaryrefslogtreecommitdiffstats
path: root/common/xrdp_constants.h
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2013-10-09 14:15:50 -0700
committerJay Sorg <jay.sorg@gmail.com>2013-10-09 14:15:50 -0700
commit086481395c966850f8175921202f246805d73ded (patch)
treeb3a413c613d3ec0359b988912d626fd1dafc5be3 /common/xrdp_constants.h
parent25369460a1b2f204d03a6bc4821251d7ef2d7adf (diff)
parenta4d2917a0a169c0672dc61be4f7b4689a02278b3 (diff)
downloadxrdp-proprietary-086481395c966850f8175921202f246805d73ded.tar.gz
xrdp-proprietary-086481395c966850f8175921202f246805d73ded.zip
Merge branch 'multimon' of git://github.com/speidy/xrdp into speidy-multimon
Conflicts: common/xrdp_client_info.h libxrdp/xrdp_iso.c libxrdp/xrdp_sec.c
Diffstat (limited to 'common/xrdp_constants.h')
-rw-r--r--common/xrdp_constants.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/common/xrdp_constants.h b/common/xrdp_constants.h
index 6b1685f5..f24da001 100644
--- a/common/xrdp_constants.h
+++ b/common/xrdp_constants.h
@@ -25,12 +25,35 @@
/* TCP port for Remote Desktop Protocol */
#define TCP_PORT_RDP 3389
-#define ISO_PDU_CR 0xE0 /* Connection Request */
-#define ISO_PDU_CC 0xD0 /* Connection Confirm */
+#define ISO_PDU_CR 0xE0 /* X.224 Connection Request */
+#define ISO_PDU_CC 0xD0 /* X.224 Connection Confirm */
#define ISO_PDU_DR 0x80 /* Disconnect Request */
#define ISO_PDU_DT 0xF0 /* Data */
#define ISO_PDU_ER 0x70 /* Error */
+
+/* RDP Security Negotiation codes */
+#define RDP_NEG_REQ 0x01
+#define RDP_NEG_RSP 0x02
+#define RDP_NEG_FAILURE 0x03
+/* Protocol types codes */
+#define PROTOCOL_RDP 0x0
+#define PROTOCOL_SSL 0x1
+#define PROTOCOL_HYBRID 0x2
+#define PROTOCOL_HYBRID_EX 0x8
+/* Negotiation packet flags */
+#define EXTENDED_CLIENT_DATA_SUPPORTED 0x1
+#define DYNVC_GFX_PROTOCOL_SUPPORTED 0x2
+#define RDP_NEGRSP_RESERVED 0x4
+/* Failure Codes */
+#define SSL_REQUIRED_BY_SERVER 0x1
+#define SSL_NOT_ALLOWED_BY_SERVER 0x2
+#define SSL_CERT_NOT_ON_SERVER 0x3
+#define INCONSISTENT_FLAGS 0x4
+#define HYBRID_REQUIRED_BY_SERVER 0x5
+#define SSL_WITH_USER_AUTH_REQUIRED_BY_SERVER 0x6
+
+
/* MCS PDU codes */
#define MCS_EDRQ 1 /* Erect Domain Request */
#define MCS_DPUM 8 /* Disconnect Provider Ultimatum */
@@ -72,6 +95,7 @@
#define SEC_TAG_CLI_CRYPT 0xc002
#define SEC_TAG_CLI_CHANNELS 0xc003
#define SEC_TAG_CLI_4 0xc004
+#define SEC_TAG_CLI_MONITOR 0xc005
#define SEC_TAG_PUBKEY 0x0006
#define SEC_TAG_KEYSIG 0x0008