Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Securing Rendezvous messages #2658

Merged

Conversation

vivien-apple
Copy link
Contributor

Problem

Encrypt messages sent over Rendezvous

fixes #2219

Comment on lines +204 to 210
if (err != CHIP_NO_ERROR)
{
mPairingInProgress ? OnPairingError(err) : OnRendezvousError(err);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason not to follow suit and use the SuccessOrExit(err); and exit: design here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

    SuccessOrExit(err);
    mPairingInProgress ? OnPairingError(err) : OnRendezvousError(err);

exit:

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vivien's comment above applies

@vivien-apple vivien-apple force-pushed the Rendezvous_SecureMessage branch from f3872d7 to f9c7202 Compare September 16, 2020 17:32
@vivien-apple
Copy link
Contributor Author

Fixes #2239

@woody-apple woody-apple self-requested a review September 17, 2020 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ChipDeviceController sendMessage defaults to sending over unsecured transport
7 participants