diff options
author | Frank Elias <francois.elias@livio.io> | 2021-08-11 10:12:57 -0400 |
---|---|---|
committer | Frank Elias <francois.elias@livio.io> | 2021-08-11 10:12:57 -0400 |
commit | a0c49b68cf08b45a39211d538766f18b94c7443c (patch) | |
tree | d985c5d83efd415170ee5765d5d7d6fc63820f0d | |
parent | 7f6825946f344cab39a5e13df17494e9b506942b (diff) | |
download | sdl_ios-a0c49b68cf08b45a39211d538766f18b94c7443c.tar.gz |
protocol update
-rw-r--r-- | SmartDeviceLink/private/SDLProtocol.m | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/SmartDeviceLink/private/SDLProtocol.m b/SmartDeviceLink/private/SDLProtocol.m index 0b6f22149..e51c90385 100644 --- a/SmartDeviceLink/private/SDLProtocol.m +++ b/SmartDeviceLink/private/SDLProtocol.m @@ -784,7 +784,7 @@ NS_ASSUME_NONNULL_BEGIN NSData *clientHandshakeData = [clientHandshakeMessage.payload subdataWithRange:NSMakeRange(12, (clientHandshakeMessage.payload.length - 12))]; SDLSecurityQueryPayload *clientSecurityQueryPayload = [SDLSecurityQueryPayload securityPayloadWithData:clientHandshakeMessage.payload]; - if (clientSecurityQueryPayload.queryID == 0x02) { + if (clientSecurityQueryPayload.queryID == SDLSecurityQueryIdSendInternalError) { NSLog(@"## client header rpcType: %u", (unsigned int)clientSecurityQueryPayload.queryType); NSLog(@"## client header functionID: %u", (unsigned int)clientSecurityQueryPayload.queryID); NSError *JSONConversionError = nil; @@ -792,7 +792,7 @@ NS_ASSUME_NONNULL_BEGIN if (JSONConversionError) { SDLLogE(@"Error converting EncodedSyncPData response dictionary: %@", JSONConversionError); } else { - SDLLogE(@"Client internal error, dictionary: %@", securityQueryErrorDictionary); + SDLLogE(@"Client internal error, dictionary: %@", securityQueryErrorDictionary.allValues); } return; } @@ -829,8 +829,8 @@ NS_ASSUME_NONNULL_BEGIN // For a control service packet, we need a binary header with a function ID corresponding to what type of packet we're sending. SDLSecurityQueryPayload *serverTLSPayload = [[SDLSecurityQueryPayload alloc] init]; - serverTLSPayload.queryID = 0x77; // TLS Handshake message - serverTLSPayload.queryType = 0x77; + serverTLSPayload.queryID = SDLSecurityQueryIdSendHandshake; // TLS Handshake message + serverTLSPayload.queryType = SDLSecurityQueryTypeResponse; serverTLSPayload.sequenceNumber = 0x00; serverTLSPayload.binaryData = data; @@ -851,8 +851,8 @@ NS_ASSUME_NONNULL_BEGIN // For a control service packet, we need a binary header with a function ID corresponding to what type of packet we're sending. SDLSecurityQueryPayload *serverTLSPayload = [[SDLSecurityQueryPayload alloc] init]; - serverTLSPayload.queryID = 0x02; // TLS Error message - serverTLSPayload.queryType = 0x02; + serverTLSPayload.queryID = SDLSecurityQueryIdSendInternalError; // TLS Error message + serverTLSPayload.queryType = SDLSecurityQueryTypeNotification; serverTLSPayload.sequenceNumber = 0x00; NSData *binaryData = serverTLSPayload.data; |