libfreerdp-core: disable fp input if FIPS is negotiated

This commit is contained in:
Anthony Tong 2012-02-18 08:49:20 -06:00
parent 8189702ef3
commit 542a472b2e
1 changed files with 3 additions and 0 deletions

View File

@ -358,6 +358,9 @@ boolean security_establish_keys(uint8* client_random, rdpRdp* rdp)
printf("FIPS Compliant encryption level.\n");
/* disable fastpath input; it doesnt handle FIPS encryption yet */
rdp->settings->fastpath_input = false;
sha1 = crypto_sha1_init();
crypto_sha1_update(sha1, client_random + 16, 16);
crypto_sha1_update(sha1, server_random + 16, 16);