Client is able to send payload when the connection unencrypted, for example, NC allow client to send payload to multiple endpoints when at least one endpoint encrypted, it's a security leak that sending data to other unencrypted endpoint. Reject to send unencrypted data in PayloadManager to fix this.

PiperOrigin-RevId: 390047577
This commit is contained in:
hai007
2021-08-10 21:20:06 -07:00
committed by Copybara-Service
parent 38a2f6a1fc
commit 2eba476031
+3
View File
@@ -171,6 +171,9 @@ enum PayloadStatus {
// The payload was canceled by the remote endpoint.
REMOTE_CANCELLATION = 8;
// The connection not encrypted yet.
ENDPOINT_UNENCRYPTED = 9;
}
// next_id: 19