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:
parent
65d38b54be
commit
a228952a69
@ -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);
|
||||
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user