Skip to content

SSL support... #26

Description

@goppinath

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions