Modified server code to honor the negotiated setting for SEC_LICENSE_ENCRYPT_SC in the security exchange PDU (which controls the encryption of license PDUs from the server to the client).

This commit is contained in:
Mike McDonald 2014-09-18 19:43:28 -04:00
parent 65d38b54be
commit a228952a69
2 changed files with 4 additions and 0 deletions

View File

@ -171,6 +171,9 @@ wStream* license_send_stream_init(rdpLicense* license)
s = transport_send_stream_init(license->rdp->transport, 4096);
rdp_init_stream(license->rdp, s);
if (!license->rdp->do_crypt_license)
license->rdp->sec_flags &= ~SEC_ENCRYPT;
license->PacketHeaderLength = Stream_GetPosition(s);
Stream_Seek(s, LICENSE_PREAMBLE_LENGTH);

View File

@ -151,6 +151,7 @@ struct rdp_rdp
struct crypto_hmac_struct* fips_hmac;
UINT32 sec_flags;
BOOL do_crypt;
BOOL do_crypt_license;
BOOL do_secure_checksum;
BYTE sign_key[16];
BYTE decrypt_key[16];