-
Notifications
You must be signed in to change notification settings - Fork 171
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
[SDL 0317] Protocol Security Spec #1724
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1724 +/- ##
=============================================
+ Coverage 53.99% 54.09% +0.09%
- Complexity 5431 5467 +36
=============================================
Files 554 558 +4
Lines 25214 25398 +184
Branches 3278 3294 +16
=============================================
+ Hits 13614 13738 +124
- Misses 10381 10436 +55
- Partials 1219 1224 +5
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor chages needed
base/src/main/java/com/smartdevicelink/protocol/SdlPacketFactory.java
Outdated
Show resolved
Hide resolved
base/src/main/java/com/smartdevicelink/protocol/enums/QueryID.java
Outdated
Show resolved
Hide resolved
base/src/main/java/com/smartdevicelink/protocol/enums/QueryType.java
Outdated
Show resolved
Hide resolved
base/src/main/java/com/smartdevicelink/protocol/enums/QueryID.java
Outdated
Show resolved
Hide resolved
base/src/main/java/com/smartdevicelink/protocol/enums/QueryErrorCode.java
Outdated
Show resolved
Hide resolved
base/src/main/java/com/smartdevicelink/session/BaseSdlSession.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one space needs to be added in a log statement
base/src/main/java/com/smartdevicelink/session/BaseSdlSession.java
Outdated
Show resolved
Hide resolved
…java Co-authored-by: Julian Kast <Julian.kast@livio.io>
Fixes #1720
This PR is ready for review.
Risk
This PR makes no API changes.
Testing Plan
Unit Tests
Add unit tests for new enum types
Core Tests
Test to verify Encryption still works, try sending an encrypted RPC from the test app.
To verify error logs work correctly update the
ProtocolMessage
to send junk data inBaseSdlSession.processControlService
This should trigger the error logs in processControlService here
DebugTool.logError(TAG, "Client internal error: " + receivedHeader.getErrorCode().getName());
when core respondsCore version / branch / commit hash / module tested against: 7.1.1
HMI name / version / branch / commit hash / module tested against: Sdl Hmi
Summary
This PR updates the processControlService method of BaseSdlSession to correctly ready the Binary Security Header sent by core. Previously we would always call runHandshake regardless of what core sent. Now we want to only call runHandshake if the header recieved by core has an ID of SEND_HANDSHAKE_DATA and a type of NOTIFICATION or REQUEST.
CLA