From 2b0524ad7e4aa7183070c48370f97cdf785d450e Mon Sep 17 00:00:00 2001 From: speidy Date: Fri, 20 Sep 2013 00:06:04 +0300 Subject: libxrdp: work on RDP negotiation --- common/xrdp_constants.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'common/xrdp_constants.h') 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 */ -- cgit v1.2.1