summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Elias <francois.elias@livio.io>2021-08-13 14:44:21 -0400
committerFrank Elias <francois.elias@livio.io>2021-08-13 14:44:21 -0400
commit592033e967e6772c01192d915fc4086e22a9fee0 (patch)
tree13ac7e6cae1b3a98e392620e9a8582cd632b171f
parentf13bbd70b1772836a4a3d734a683b75bbbd6183d (diff)
downloadsdl_ios-592033e967e6772c01192d915fc4086e22a9fee0.tar.gz
remove logs
-rw-r--r--SmartDeviceLink/private/SDLProtocol.m5
-rw-r--r--SmartDeviceLink/private/SDLSecurityQueryPayload.h4
2 files changed, 3 insertions, 6 deletions
diff --git a/SmartDeviceLink/private/SDLProtocol.m b/SmartDeviceLink/private/SDLProtocol.m
index 4a4894bc3..5095e1380 100644
--- a/SmartDeviceLink/private/SDLProtocol.m
+++ b/SmartDeviceLink/private/SDLProtocol.m
@@ -782,10 +782,7 @@ NS_ASSUME_NONNULL_BEGIN
// Check the client's message header for any internal errors
SDLSecurityQueryPayload *clientSecurityQueryPayload = [SDLSecurityQueryPayload securityPayloadWithData:clientHandshakeMessage.payload];
- if (clientSecurityQueryPayload.queryID == SDLSecurityQueryIdSendInternalError) {
- NSLog(@"## client header rpcType: %u", (unsigned int)clientSecurityQueryPayload.queryType);
- NSLog(@"## client header functionID: %u", (unsigned int)clientSecurityQueryPayload.queryID);
-
+ if (clientSecurityQueryPayload.queryID == SDLSecurityQueryIdSendInternalError && clientSecurityQueryPayload == SDLSecurityQueryTypeNotification) {
NSError *JSONConversionError = nil;
NSDictionary<NSString *, id> *securityQueryErrorDictionary = [NSJSONSerialization JSONObjectWithData:clientSecurityQueryPayload.jsonData options:kNilOptions error:&JSONConversionError];
if (JSONConversionError) {
diff --git a/SmartDeviceLink/private/SDLSecurityQueryPayload.h b/SmartDeviceLink/private/SDLSecurityQueryPayload.h
index 4a49607e8..3a9ab2dea 100644
--- a/SmartDeviceLink/private/SDLSecurityQueryPayload.h
+++ b/SmartDeviceLink/private/SDLSecurityQueryPayload.h
@@ -16,10 +16,10 @@ typedef NS_ENUM(Byte, SDLSecurityQueryType) {
SDLSecurityQueryTypeRequest = 0x00,
/// A response to a request
- SDLSecurityQueryTypeResponse = 0x01,
+ SDLSecurityQueryTypeResponse = 0x10,
/// A message that does not have a response
- SDLSecurityQueryTypeNotification = 0x02
+ SDLSecurityQueryTypeNotification = 0x20
};
typedef NS_ENUM(UInt32, SDLSecurityQueryId) {