summaryrefslogtreecommitdiffstats
path: root/libxrdp
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2005-09-25 20:21:06 +0000
committerjsorg71 <jsorg71>2005-09-25 20:21:06 +0000
commite56bec1a7db59bac3e37c10423ca98fa590451ba (patch)
tree30244a0a3a01db91255f75374787c575670554e8 /libxrdp
parent2380919d0bd9d2ec6b7e88c63ead3adeb23d42cf (diff)
downloadxrdp-proprietary-e56bec1a7db59bac3e37c10423ca98fa590451ba.tar.gz
xrdp-proprietary-e56bec1a7db59bac3e37c10423ca98fa590451ba.zip
case insesitive config file and moving reverse to ssl_calls
Diffstat (limited to 'libxrdp')
-rw-r--r--libxrdp/xrdp_rdp.c12
-rw-r--r--libxrdp/xrdp_sec.c37
2 files changed, 9 insertions, 40 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;
}
diff --git a/libxrdp/xrdp_sec.c b/libxrdp/xrdp_sec.c
index a1cf27bc..d9476704 100644
--- a/libxrdp/xrdp_sec.c
+++ b/libxrdp/xrdp_sec.c
@@ -311,44 +311,9 @@ xrdp_sec_send_lic_response(struct xrdp_sec* self)
/*****************************************************************************/
static void APP_CC
-xrdp_sec_reverse(char* p, int len)
-{
- int i;
- int j;
- char temp;
-
- i = 0;
- j = len - 1;
- while (i < j)
- {
- temp = p[i];
- p[i] = p[j];
- p[j] = temp;
- i++;
- j--;
- }
-}
-
-/*****************************************************************************/
-static void APP_CC
xrdp_sec_rsa_op(char* out, char* in, char* mod, char* exp)
{
- char lexp[64];
- char lmod[64];
- char lin[64];
- char lout[64];
- int len;
-
- g_memcpy(lexp, exp, 64);
- g_memcpy(lmod, mod, 64);
- g_memcpy(lin, in, 64);
- xrdp_sec_reverse(lexp, 64);
- xrdp_sec_reverse(lmod, 64);
- xrdp_sec_reverse(lin, 64);
- g_memset(lout, 0, 64);
- len = g_mod_exp(lout, lin, lmod, lexp);
- xrdp_sec_reverse(lout, len);
- g_memcpy(out, lout, 64);
+ g_mod_exp(out, 64, in, 64, mod, 64, exp, 64);
}
/*****************************************************************************/