diff options
author | Frank Elias <francois.elias@livio.io> | 2021-08-13 14:54:15 -0400 |
---|---|---|
committer | Frank Elias <francois.elias@livio.io> | 2021-08-13 14:54:15 -0400 |
commit | 36b7cbaa971d9ddb8022a55ac19ed03c9613a268 (patch) | |
tree | 37d9a76e2a6a4ad96ef7a9267c13a49c927c390a | |
parent | 592033e967e6772c01192d915fc4086e22a9fee0 (diff) | |
download | sdl_ios-36b7cbaa971d9ddb8022a55ac19ed03c9613a268.tar.gz |
minor fixes
-rw-r--r-- | SmartDeviceLink/private/SDLProtocol.m | 2 | ||||
-rw-r--r-- | SmartDeviceLink/private/SDLSecurityQueryPayload.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/SmartDeviceLink/private/SDLProtocol.m b/SmartDeviceLink/private/SDLProtocol.m index 5095e1380..be2252a93 100644 --- a/SmartDeviceLink/private/SDLProtocol.m +++ b/SmartDeviceLink/private/SDLProtocol.m @@ -782,7 +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 && clientSecurityQueryPayload == SDLSecurityQueryTypeNotification) { + if (clientSecurityQueryPayload.queryID == SDLSecurityQueryIdSendInternalError && clientSecurityQueryPayload.queryType == 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 3a9ab2dea..29418fe47 100644 --- a/SmartDeviceLink/private/SDLSecurityQueryPayload.h +++ b/SmartDeviceLink/private/SDLSecurityQueryPayload.h @@ -9,8 +9,6 @@ #import <Foundation/Foundation.h> #import "SDLRPCMessageType.h" -NS_ASSUME_NONNULL_BEGIN - typedef NS_ENUM(Byte, SDLSecurityQueryType) { /// A request that will require a response SDLSecurityQueryTypeRequest = 0x00, @@ -30,6 +28,8 @@ typedef NS_ENUM(UInt32, SDLSecurityQueryId) { SDLSecurityQueryIdSendInternalError = 0x000002, }; +NS_ASSUME_NONNULL_BEGIN + @interface SDLSecurityQueryPayload : NSObject @property (assign, nonatomic) SDLSecurityQueryType queryType; |