Skip to content

Commit

Permalink
Merge pull request tumtumtum#354 from docterd/master
Browse files Browse the repository at this point in the history
Fixed a SSL Handshaking issue
  • Loading branch information
derpoliuk committed Jan 5, 2018
2 parents 8823bbd + 06fe161 commit 8599763
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions StreamingKit/StreamingKit/STKHTTPDataSource.m
Original file line number Diff line number Diff line change
Expand Up @@ -554,11 +554,9 @@ -(void) openForSeek:(BOOL)forSeek
if ([self->currentUrl.scheme caseInsensitiveCompare:@"https"] == NSOrderedSame)
{
NSDictionary* sslSettings = [NSDictionary dictionaryWithObjectsAndKeys:
(NSString*)kCFStreamSocketSecurityLevelNegotiatedSSL, kCFStreamSSLLevel,
[NSNumber numberWithBool:NO], kCFStreamSSLValidatesCertificateChain,
[NSNull null], kCFStreamSSLPeerName,
nil];

(NSString*)kCFStreamSocketSecurityLevelNegotiatedSSL, kCFStreamSSLLevel,
[NSNumber numberWithBool:NO], kCFStreamSSLValidatesCertificateChain,
nil];
CFReadStreamSetProperty(stream, kCFStreamPropertySSLSettings, (__bridge CFTypeRef)sslSettings);
}

Expand Down

0 comments on commit 8599763

Please sign in to comment.