@@ -42,10 +42,25 @@ @implementation SSLConnectionFailedException @synthesize SSLError = _SSLError, verifyResult = _verifyResult; + (instancetype)exceptionWithHost: (OFString *)host port: (uint16_t)port + socket: (id)socket +{ + OF_UNRECOGNIZED_SELECTOR +} + ++ (instancetype)exceptionWithHost: (OFString *)host + port: (uint16_t)port + socket: (id)socket + errNo: (int)errNo +{ + OF_UNRECOGNIZED_SELECTOR +} + ++ (instancetype)exceptionWithHost: (OFString *)host + port: (uint16_t)port socket: (SSLSocket *)socket SSLError: (unsigned long)SSLError { return [[[self alloc] initWithHost: host port: port @@ -67,20 +82,33 @@ verifyResult: verifyResult] autorelease]; } - initWithHost: (OFString *)host port: (uint16_t)port + socket: (id)socket +{ + OF_INVALID_INIT_METHOD +} + +- initWithHost: (OFString *)host + port: (uint16_t)port + socket: (id)socket + errNo: (int)errNo +{ + OF_INVALID_INIT_METHOD +} + +- initWithHost: (OFString *)host + port: (uint16_t)port socket: (SSLSocket *)socket SSLError: (unsigned long)SSLError { - self = [super initWithHost: host - port: port - socket: socket]; - - _SSLError = SSLError; - - return self; + return [self initWithHost: host + port: port + socket: socket + SSLError: SSLError + verifyResult: 0]; } - initWithHost: (OFString *)host port: (uint16_t)port socket: (SSLSocket *)socket