Skip to content

Commit

Permalink
Fixed replacement of unused authentication properties for encryption …
Browse files Browse the repository at this point in the history
…properties.
  • Loading branch information
asm09fsu committed Aug 17, 2016
1 parent 34abd39 commit 250f849
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions SmartDeviceLink/SDLStreamingMediaManager.m
Expand Up @@ -36,8 +36,6 @@ @interface SDLStreamingMediaManager ()
@property (assign, nonatomic, readwrite) BOOL videoSessionConnected;
@property (assign, nonatomic, readwrite) BOOL audioSessionConnected;

@property (assign, nonatomic, readwrite) BOOL videoSessionAuthenticated;
@property (assign, nonatomic, readwrite) BOOL audioSessionAuthenticated;
@property (assign, nonatomic, readwrite) BOOL videoSessionEncrypted;
@property (assign, nonatomic, readwrite) BOOL audioSessionEncrypted;

Expand Down Expand Up @@ -91,8 +89,6 @@ - (instancetype)init {
_currentFrameNumber = 0;
_videoSessionConnected = NO;
_audioSessionConnected = NO;
_videoSessionAuthenticated = NO;
_audioSessionAuthenticated = NO;
_videoSessionEncrypted = NO;
_audioSessionEncrypted = NO;
_protocol = nil;
Expand Down Expand Up @@ -279,7 +275,7 @@ - (void)handleProtocolStartSessionACK:(SDLProtocolHeader *)header {
switch (header.serviceType) {
case SDLServiceType_Audio: {
self.audioSessionConnected = YES;
self.audioSessionAuthenticated = header.encrypted;
self.audioSessionEncrypted = header.encrypted;
self.audioStartBlock(YES, header.encrypted, nil);
self.audioStartBlock = nil;
} break;
Expand All @@ -297,7 +293,7 @@ - (void)handleProtocolStartSessionACK:(SDLProtocolHeader *)header {
}

self.videoSessionConnected = YES;
self.videoSessionAuthenticated = header.encrypted;
self.videoSessionEncrypted = header.encrypted;
self.videoStartBlock(YES, header.encrypted, nil);
self.videoStartBlock = nil;
} break;
Expand Down

0 comments on commit 250f849

Please sign in to comment.