private void UpdateSecurityHeaderType(ref SecurityHeaderType securityHeaderType) { // Redirection PDU need to decrypt if (clientContext.RdpEncryptionLevel == EncryptionLevel.ENCRYPTION_LEVEL_LOW) { if (clientContext.RdpEncryptionMethod == EncryptionMethods.ENCRYPTION_METHOD_40BIT || clientContext.RdpEncryptionMethod == EncryptionMethods.ENCRYPTION_METHOD_56BIT || clientContext.RdpEncryptionMethod == EncryptionMethods.ENCRYPTION_METHOD_128BIT) { securityHeaderType = SecurityHeaderType.NonFips; } else if (clientContext.RdpEncryptionMethod == EncryptionMethods.ENCRYPTION_METHOD_FIPS) { securityHeaderType = SecurityHeaderType.Fips; } else { securityHeaderType = SecurityHeaderType.None; } } }