Allow TLS pre-master secrets to be recorded

This allows for RDP sessions to be easily decrypted within Wireshark
This commit is contained in:
matt335672
2025-09-11 17:17:00 +01:00
parent 976a708599
commit 7f6899567b
7 changed files with 149 additions and 0 deletions
+8
View File
@@ -277,6 +277,14 @@ xrdp_rdp_read_config(const char *xrdp_ini, struct xrdp_client_info *client_info)
client_info->key_file, g_get_strerror());
}
}
else if (g_strcasecmp(item, "tls_pms_log_file") == 0)
{
if (ssl_set_pre_master_secret_logfile(value))
{
LOG(LOG_LEVEL_WARNING, "TLS pre-master secrets will be logged. "
"This is a security risk.");
}
}
else if (g_strcasecmp(item, "domain_user_separator") == 0
&& g_strlen(value) > 0)
{