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

Add missing internal error codes to security manager #3773

Merged
merged 7 commits into from
Sep 14, 2021

Conversation

jacobkeeler
Copy link
Contributor

Adds missing security query specification details from smartdevicelink/protocol_spec#40

This PR is ready for review.

Risk

This PR makes no API changes.

Testing Plan

HANDSHAKE_FAILED - can be triggered by setting VerifyPeer=true using the Java Security Lib Example Certificates
INVALID_CERT - can be triggered by sending an app certificate with an app ID which is different from the one that the app registered with
EXPIRED_CERT - can be triggered by sending an expired app certificate (or by modifying the GetSystemTime response from the HMI)

Summary

Adds logic for missing error codes in SendInternalError query (HANDSHAKE_FAILED, ERROR_INVALID_CERT, and ERROR_EXPIRED_CERT)

Changelog

Bug Fixes
  • Adds logic for missing error codes in SendInternalError query

CLA

jacobkeeler and others added 2 commits September 13, 2021 14:58
Co-authored-by: JackLivio <jack@livio.io>
@@ -759,7 +760,15 @@ TEST_F(SecurityManagerTest, ProcessHandshakeData_Answer) {
RawMessageEqSize(raw_message_size), false, kIsFinal))
.Times(handshake_emulates)
.WillRepeatedly(NotifyTestAsyncWaiter(waiter));
times += handshake_emulates;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add unit test cases for other possible error codes added in this pr

@jacobkeeler jacobkeeler merged commit de58a41 into release/8.0.0 Sep 14, 2021
@jacobkeeler jacobkeeler deleted the fix/add_missing_internal_error_codes branch September 14, 2021 20:20
@theresalech theresalech added the 8.0 Release Issues introduced in 8.0 development label Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.0 Release Issues introduced in 8.0 development
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants