From 2c9ff1a4d4f7841efb0f84a45a2f3c62c2011c42 Mon Sep 17 00:00:00 2001 From: Koichiro IWAO Date: Tue, 11 Oct 2016 12:53:17 +0900 Subject: [PATCH] log non TLS session --- libxrdp/xrdp_rdp.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libxrdp/xrdp_rdp.c b/libxrdp/xrdp_rdp.c index a66b6d0d..7a13ecd2 100644 --- a/libxrdp/xrdp_rdp.c +++ b/libxrdp/xrdp_rdp.c @@ -830,6 +830,7 @@ xrdp_rdp_incoming(struct xrdp_rdp *self) /* log TLS version and cipher when TLS is used */ /* TODO: client_addr, client_port is empty when IPv6 enabled */ + if (iso->selectedProtocol > PROTOCOL_RDP) { log_message(LOG_LEVEL_INFO, @@ -838,6 +839,13 @@ xrdp_rdp_incoming(struct xrdp_rdp *self) iso->trans->ssl_protocol, iso->trans->cipher_name); } + else + { + log_message(LOG_LEVEL_INFO, + "Non-TLS connection established from %s: " + "encrypted with standard RDP security", + self->client_info.client_addr); + } return 0; }