-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate additionally outgoing DATA messages (#97)
* Add protocol version check for outgoing DATA messages * Report error on STREAM_START message with a mismatched version in SOURCE mode * Fix typo in AWS_ERROR_IOTDEVICE_SECURE_TUNNELING_PROTOCOL_VERSION_MISSMATCH error name * Add a new function to secure tunnel vtable (aws_secure_tunnel_operation_prepare_message_for_send_fn) to perform actions on outbound message in event loop thread before sending the message * Define new errors for reporting issues on sending messages * Fix data race on sending DATA, STREAM_START, CONNECTION_START messages * Add tests for sending DATA messages with mismatched protocol or on inactive connections * Add tests for sending STREAM_START and CONNECTION messages (in SOURCE mode) * Fix data race in tests by moving mocked WebSocket operations to event loop thread
- Loading branch information
Showing
9 changed files
with
1,182 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.