diff options
author | Pavel Roskin <plroskin@gmail.com> | 2016-11-27 23:49:32 -0800 |
---|---|---|
committer | Pavel Roskin <plroskin@gmail.com> | 2016-11-27 23:49:32 -0800 |
commit | 8069b29429264be42fa4d5b1d36fb95a7952885f (patch) | |
tree | 3446cc424d1eba08ff83a38576de1515e1de6068 /libxrdp | |
parent | 679c4b35583da8080b32ece6d45ff800f6e623ac (diff) | |
download | xrdp-proprietary-8069b29429264be42fa4d5b1d36fb95a7952885f.tar.gz xrdp-proprietary-8069b29429264be42fa4d5b1d36fb95a7952885f.zip |
Recognize security_layer=negotiate in xrdp.ini, improve logging
security_layer=negotiate is documented, but the code is complaining
loudly about it. Fix it, make sure not to change the actual behavior
apart from the logging.
Improve the log message for unrecognized security_layer setting.
Diffstat (limited to 'libxrdp')
-rw-r--r-- | libxrdp/xrdp_rdp.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libxrdp/xrdp_rdp.c b/libxrdp/xrdp_rdp.c index 6aff5830..dd6e6d38 100644 --- a/libxrdp/xrdp_rdp.c +++ b/libxrdp/xrdp_rdp.c @@ -182,10 +182,15 @@ xrdp_rdp_read_config(struct xrdp_client_info *client_info) { client_info->security_layer = PROTOCOL_SSL | PROTOCOL_HYBRID; } + else if (g_strcasecmp(value, "negotiate") == 0) + { + client_info->security_layer = PROTOCOL_SSL | PROTOCOL_HYBRID | PROTOCOL_HYBRID_EX; + } else { - log_message(LOG_LEVEL_ALWAYS,"Warning: Your configured security layer is " - "undefined, xrdp will negotiate client compatible"); + log_message(LOG_LEVEL_ERROR, "security_layer=%s is not " + "recognized, will use security_layer=negotiate", + value); client_info->security_layer = PROTOCOL_SSL | PROTOCOL_HYBRID | PROTOCOL_HYBRID_EX; } } |