Add CCP support to xrdp

This allows sesexec to send a reason for a connection close
request to xrdp.

xrdp is also updated to support server initiated disconnection sequences
from [MS-RDPBCGR] 1.3.1.4, along with reporting a reason to the client
for the disconnection.
This commit is contained in:
matt335672
2025-07-08 12:32:34 +01:00
parent 7433ded30d
commit d015535065
15 changed files with 296 additions and 50 deletions
+2
View File
@@ -43,6 +43,8 @@ ccp_close_reason_to_str(enum ccp_close_reason_type n,
? "Another connection was made to the session" :
(n == CCP_CLOSE_LOGOFF_BY_USER)
? "The user logged out of the session" :
(n == CCP_CLOSE_SOFTWARE_FAILURE)
? "A software failure has occurred" :
/* Default */ NULL;
if (str == NULL)
+2 -1
View File
@@ -35,7 +35,8 @@ enum ccp_close_reason_type
{
CCP_CLOSE_RPC_INITIATED_DISCONNECT = 1,
CCP_CLOSE_DISCONNECTED_BY_OTHERCONNECTION,
CCP_CLOSE_LOGOFF_BY_USER
CCP_CLOSE_LOGOFF_BY_USER,
CCP_CLOSE_SOFTWARE_FAILURE
};
/**