-
Notifications
You must be signed in to change notification settings - Fork 82
Open
Description
I would like to have SSL support too. I have just used
NSError *err;
if(![self.socket connectToHost:host onPort:port error:&err]) {
if (self.connectionCompletionHandler) {
self.connectionCompletionHandler(nil, err);
}
}
else [self.socket startTLS:@{GCDAsyncSocketManuallyEvaluateTrust : @YES}];
and with the protocol implementation
- (void)socket:(GCDAsyncSocket *)socket didReceiveTrust:(SecTrustRef)trust completionHandler:(void (^)(BOOL shouldTrustPeer))completionHandler
{
// some SSL related action
completionHandler(YES);
}
but if it is from the framework developer then which will be more useful.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels