void SetIsEncryptionRequired( qBool flag );
Name | Description | |
---|---|---|
in | flag | true if enabled; false otherwise. |
Sets whether to enable encryption.
When using encryption, before using NetZ to execute the Session::JoinSession
or Session::CreateSession
function, execute Stream::GetSettings.SetIsEncryptionRequired(true);
and set a key using Stream::GetSettings.SetEncryptionKey
. If canceling encryption, do so after executing the NetZ::Terminate
function. Operations outside the correct segment result in an assertion, or settings fail.
These two functions do not work if an encryption key is not set.
NetZ::Terminate
function. Also, added that an assertion is generated for updates outside the correct segment.CONFIDENTIAL