Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/xrdp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatt335672 <30179339+matt335672@users.noreply.github.com>2022-01-28 15:17:38 +0300
committermatt335672 <30179339+matt335672@users.noreply.github.com>2022-01-28 15:23:40 +0300
commitc894ba5b40011c36afdfb3d57547d2801fdf6409 (patch)
treebd31c6896ce453684538db6caee3237c4108cf54 /libxrdp
parent6cebade78e15ac5fdb5c807220291ef19ed41a5b (diff)
Better logging of classic connection security
Diffstat (limited to 'libxrdp')
-rw-r--r--libxrdp/xrdp_rdp.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/libxrdp/xrdp_rdp.c b/libxrdp/xrdp_rdp.c
index c2b23289..d08f068a 100644
--- a/libxrdp/xrdp_rdp.c
+++ b/libxrdp/xrdp_rdp.c
@@ -942,11 +942,21 @@ xrdp_rdp_incoming(struct xrdp_rdp *self)
/* log non-TLS connections */
else
{
+ int crypt_level = self->sec_layer->crypt_level;
+ const char *security_level =
+ (crypt_level == CRYPT_LEVEL_NONE) ? "none" :
+ (crypt_level == CRYPT_LEVEL_LOW) ? "low" :
+ (crypt_level == CRYPT_LEVEL_CLIENT_COMPATIBLE) ? "medium" :
+ (crypt_level == CRYPT_LEVEL_HIGH) ? "high" :
+ (crypt_level == CRYPT_LEVEL_FIPS) ? "fips" :
+ /* default */ "unknown";
+
LOG(LOG_LEVEL_INFO,
"Non-TLS connection established from %s port %s: "
- "encrypted with standard RDP security",
+ "with security level : %s",
self->client_info.client_addr,
- self->client_info.client_port);
+ self->client_info.client_port,
+ security_level);
}
return 0;