diff options
author | Muller, Alexander (A.) <amulle19@ford.com> | 2016-11-29 14:57:25 -0800 |
---|---|---|
committer | Muller, Alexander (A.) <amulle19@ford.com> | 2016-11-29 14:57:25 -0800 |
commit | aa2165e8a86bcf1b155095c2e7fd269896271d02 (patch) | |
tree | 17404c63f55e59fac5de071127a63bcaa874fd65 | |
parent | 7fcd7ce8e695dff700d3fc58f97b534cf97f8c72 (diff) | |
download | sdl_ios-aa2165e8a86bcf1b155095c2e7fd269896271d02.tar.gz |
Updated SDLSecurityType to make appId assignable outside of initializer, and sets it after successful RAI.
-rw-r--r-- | SmartDeviceLink/SDLProxy.m | 3 | ||||
-rw-r--r-- | SmartDeviceLink/SDLSecurityType.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLProxy.m b/SmartDeviceLink/SDLProxy.m index 40e274ff9..c4229da63 100644 --- a/SmartDeviceLink/SDLProxy.m +++ b/SmartDeviceLink/SDLProxy.m @@ -386,6 +386,9 @@ const int POLICIES_CORRELATION_ID = 65535; _streamingMediaManager.displayCapabilties = registerResponse.displayCapabilities; } self.protocol.securityManager = [self securityManagerForMake:registerResponse.vehicleType.make]; + if (self.protocol.securityManager) { + self.protocol.securityManager.appId = self.appId; + } if ([SDLGlobals globals].protocolVersion >= 4) { [self sendMobileHMIState]; diff --git a/SmartDeviceLink/SDLSecurityType.h b/SmartDeviceLink/SDLSecurityType.h index 86dadd52e..08585f004 100644 --- a/SmartDeviceLink/SDLSecurityType.h +++ b/SmartDeviceLink/SDLSecurityType.h @@ -12,6 +12,8 @@ NS_ASSUME_NONNULL_BEGIN @protocol SDLSecurityType <NSObject> +@property (copy, nonatomic) NSString* appId; + - (void)initializeWithAppId:(NSString *)appId completionHandler:(void (^)(NSError *_Nullable error))completionHandler; - (void)stop; |