diff options
author | Frank Elias <francois.elias@livio.io> | 2021-07-28 09:57:06 -0400 |
---|---|---|
committer | Frank Elias <francois.elias@livio.io> | 2021-07-28 09:57:06 -0400 |
commit | 6471330364ddc3edc9b905ebda6d0624c9bd5540 (patch) | |
tree | 8443bd56209c7f252a1eec6fab41278c5c951a1d | |
parent | 8efb1824d61584eaa292990eaf0f72efdde411ee (diff) | |
download | sdl_ios-6471330364ddc3edc9b905ebda6d0624c9bd5540.tar.gz |
draft
-rw-r--r-- | SmartDeviceLink/private/SDLProtocol.m | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/SmartDeviceLink/private/SDLProtocol.m b/SmartDeviceLink/private/SDLProtocol.m index ea2cc84e0..154a730df 100644 --- a/SmartDeviceLink/private/SDLProtocol.m +++ b/SmartDeviceLink/private/SDLProtocol.m @@ -782,6 +782,14 @@ NS_ASSUME_NONNULL_BEGIN // TODO: (Joel F.)[2016-02-15] Should check for errors NSData *clientHandshakeData = [clientHandshakeMessage.payload subdataWithRange:NSMakeRange(12, (clientHandshakeMessage.payload.length - 12))]; + SDLV2ProtocolHeader *clientProtocolHeader = (SDLV2ProtocolHeader *)clientHandshakeMessage.header; + NSData *clientHandshakeHeaderData = [clientHandshakeMessage.payload subdataWithRange:NSMakeRange(0, 12)]; + SDLRPCPayload *payl = [SDLRPCPayload rpcPayloadWithData:clientHandshakeHeaderData]; + + if (payl.rpcType == SDLRPCMessageTypeNotification) { + NSLog(@"## client header functionID: %hhu", payl.functionID); + } + // Ask the security manager for server data based on the client data sent NSError *handshakeError = nil; NSData *serverHandshakeData = [self.securityManager runHandshakeWithClientData:clientHandshakeData error:&handshakeError]; |