summaryrefslogtreecommitdiff
path: root/src/components/protocol_handler
diff options
context:
space:
mode:
authorJackLivio <jack@livio.io>2018-08-14 10:38:51 -0400
committerJackLivio <jack@livio.io>2018-08-14 10:38:51 -0400
commite9c323f25a721ca5367c4ff125e1565dcade33a9 (patch)
tree2496c8578f15e260ae40155f0f00ee38ceee3663 /src/components/protocol_handler
parentcd4d9c9b614719f61cf4129ed0a3d08ffbefb4d5 (diff)
downloadsdl_core-e9c323f25a721ca5367c4ff125e1565dcade33a9.tar.gz
Address comments
Diffstat (limited to 'src/components/protocol_handler')
-rw-r--r--src/components/protocol_handler/src/protocol_handler_impl.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/protocol_handler/src/protocol_handler_impl.cc b/src/components/protocol_handler/src/protocol_handler_impl.cc
index 4ff24f9e64..0e49e28397 100644
--- a/src/components/protocol_handler/src/protocol_handler_impl.cc
+++ b/src/components/protocol_handler/src/protocol_handler_impl.cc
@@ -252,7 +252,7 @@ void ProtocolHandlerImpl::SendStartSessionAck(
const bool proxy_supports_v5_protocol =
input_protocol_version >= PROTOCOL_VERSION_5 ||
(ServiceTypeFromByte(service_type) == kRpc &&
- full_version.majorVersion >= PROTOCOL_VERSION_5);
+ full_version.major_version_ >= PROTOCOL_VERSION_5);
if (kRpc != service_type) {
// In case if input protocol version os bigger then supported, SDL should
@@ -308,7 +308,7 @@ void ProtocolHandlerImpl::SendStartSessionAck(
// Minimum protocol version supported by both
utils::SemanticVersion* minVersion =
- (full_version.majorVersion < PROTOCOL_VERSION_5)
+ (full_version.major_version_ < PROTOCOL_VERSION_5)
? &defaultProtocolVersion
: utils::SemanticVersion::min(full_version,
defaultProtocolVersion);
@@ -1619,7 +1619,7 @@ RESULT_CODE ProtocolHandlerImpl::HandleControlMessageStartSession(
std::string(bson_object_get_string(&obj, "protocolVersion")));
bson_object_deinitialize(&obj);
// Constructed payloads added in Protocol v5
- if (fullVersion->majorVersion < PROTOCOL_VERSION_5) {
+ if (fullVersion->major_version_ < PROTOCOL_VERSION_5) {
rejectedParams.push_back(std::string("protocolVersion"));
}
} else {
@@ -1674,7 +1674,7 @@ RESULT_CODE ProtocolHandlerImpl::HandleControlMessageStartSession(
bson_object_get_string(&obj, "protocolVersion"));
bson_object_deinitialize(&obj);
- if (fullVersion.majorVersion >= PROTOCOL_VERSION_5) {
+ if (fullVersion.major_version_ >= PROTOCOL_VERSION_5) {
// Start service without protection
SendStartSessionAck(connection_id,
session_id,
@@ -1892,7 +1892,7 @@ void ProtocolHandlerImpl::NotifySessionStarted(
std::string version_string(version_param == NULL ? "" : version_param);
fullVersion = std::make_shared<utils::SemanticVersion>(version_string);
// Constructed payloads added in Protocol v5
- if (fullVersion->majorVersion < PROTOCOL_VERSION_5) {
+ if (fullVersion->major_version_ < PROTOCOL_VERSION_5) {
rejected_params.push_back(std::string(strings::protocol_version));
}
bson_object_deinitialize(&request_params);