Merge pull request #415 from pjd/fixes

Advertise ENC_SALTED_CHECKSUM support.
This commit is contained in:
Marc-André Moreau 2012-02-10 12:14:41 -08:00
commit 6bddb08713
5 changed files with 10 additions and 7 deletions

View File

@ -302,7 +302,7 @@ struct rdp_settings
boolean nla_security; /* 146 */
boolean rdp_security; /* 147 */
uint32 ntlm_version; /* 148 */
boolean secure_checksum; /* 149 */
boolean salted_checksum; /* 149 */
uint32 paddingF[160 - 150]; /* 150 */
/* Session */

View File

@ -162,6 +162,9 @@ void rdp_write_general_capability_set(STREAM* s, rdpSettings* settings)
if (settings->fastpath_output)
extraFlags |= FASTPATH_OUTPUT_SUPPORTED;
if (settings->salted_checksum)
extraFlags |= ENC_SALTED_CHECKSUM;
if (settings->server_mode)
{
/* not yet supported server-side */

View File

@ -227,7 +227,7 @@ static boolean rdp_client_establish_keys(rdpRdp* rdp)
}
rdp->do_crypt = true;
if (rdp->settings->secure_checksum)
if (rdp->settings->salted_checksum)
rdp->do_secure_checksum = true;
if (rdp->settings->encryption_method == ENCRYPTION_METHOD_FIPS)
@ -294,7 +294,7 @@ static boolean rdp_server_establish_keys(rdpRdp* rdp, STREAM* s)
}
rdp->do_crypt = true;
if (rdp->settings->secure_checksum)
if (rdp->settings->salted_checksum)
rdp->do_secure_checksum = true;
if (rdp->settings->encryption_method == ENCRYPTION_METHOD_FIPS)

View File

@ -57,7 +57,7 @@ rdpSettings* settings_new(void* instance)
settings->kbd_fn_keys = 0;
settings->kbd_layout = 0;
settings->encryption = false;
settings->secure_checksum = false;
settings->salted_checksum = false;
settings->port = 3389;
settings->desktop_resize = true;

View File

@ -101,7 +101,7 @@ int freerdp_parse_args(rdpSettings* settings, int argc, char** argv,
" --ntlm: force NTLM authentication protocol version (1 or 2)\n"
" --ignore-certificate: ignore verification of logon certificate\n"
" --sec: force protocol security (rdp, tls or nla)\n"
" --secure-checksum: use salted checksums with Standard RDP encryption\n"
" --salted-checksum: use salted checksums with Standard RDP encryption\n"
" --version: print version information\n"
"\n", argv[0]);
return FREERDP_ARGS_PARSE_HELP; //TODO: What is the correct return
@ -617,9 +617,9 @@ int freerdp_parse_args(rdpSettings* settings, int argc, char** argv,
}
num_extensions++;
}
else if (strcmp("--secure-checksum", argv[index]) == 0)
else if (strcmp("--salted-checksum", argv[index]) == 0)
{
settings->secure_checksum = true;
settings->salted_checksum = true;
}
else if (strcmp("--version", argv[index]) == 0)
{