summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorspeidy <speidy@gmail.com>2013-09-20 00:06:04 +0300
committerspeidy <speidy@gmail.com>2013-09-20 00:06:04 +0300
commit2b0524ad7e4aa7183070c48370f97cdf785d450e (patch)
tree0a6f2ff638fde8f7d3854c10512b685a7f6aadfd /common
parent8914b523eecf850f6c6b754fbc572b95768bc2a6 (diff)
downloadxrdp-proprietary-2b0524ad7e4aa7183070c48370f97cdf785d450e.tar.gz
xrdp-proprietary-2b0524ad7e4aa7183070c48370f97cdf785d450e.zip
libxrdp: work on RDP negotiation
Diffstat (limited to 'common')
-rw-r--r--common/xrdp_constants.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/common/xrdp_constants.h b/common/xrdp_constants.h
index 404e3b88..636337f8 100644
--- a/common/xrdp_constants.h
+++ b/common/xrdp_constants.h
@@ -31,6 +31,29 @@
#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 */