diff options
author | jsorg71 <jsorg71> | 2005-09-25 20:21:06 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2005-09-25 20:21:06 +0000 |
commit | e56bec1a7db59bac3e37c10423ca98fa590451ba (patch) | |
tree | 30244a0a3a01db91255f75374787c575670554e8 /libxrdp/xrdp_rdp.c | |
parent | 2380919d0bd9d2ec6b7e88c63ead3adeb23d42cf (diff) | |
download | xrdp-proprietary-e56bec1a7db59bac3e37c10423ca98fa590451ba.tar.gz xrdp-proprietary-e56bec1a7db59bac3e37c10423ca98fa590451ba.zip |
case insesitive config file and moving reverse to ssl_calls
Diffstat (limited to 'libxrdp/xrdp_rdp.c')
-rw-r--r-- | libxrdp/xrdp_rdp.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libxrdp/xrdp_rdp.c b/libxrdp/xrdp_rdp.c index 8a883f56..48bc2860 100644 --- a/libxrdp/xrdp_rdp.c +++ b/libxrdp/xrdp_rdp.c @@ -69,16 +69,20 @@ xrdp_rdp_read_config(struct xrdp_client_info* client_info) { item = (char*)list_get_item(items, index); value = (char*)list_get_item(values, index); - if (g_strcmp(item, "bitmap_cache") == 0) + if (g_strncasecmp(item, "bitmap_cache", 255) == 0) { - if (g_strcmp(value, "yes") == 0) + if (g_strncasecmp(value, "yes", 255) == 0 || + g_strncasecmp(value, "true", 255) == 0 || + g_strncasecmp(value, "1", 255) == 0) { client_info->use_bitmap_cache = 1; } } - else if (g_strcmp(item, "bitmap_compression") == 0) + else if (g_strncasecmp(item, "bitmap_compression", 255) == 0) { - if (g_strcmp(value, "yes") == 0) + if (g_strncasecmp(value, "yes", 255) == 0 || + g_strncasecmp(value, "true", 255) == 0 || + g_strncasecmp(value, "1", 255) == 0) { client_info->use_bitmap_comp = 1; } |