@@ -20,35 +20,53 @@ * POSSIBILITY OF SUCH DAMAGE. */ #import +OF_ASSUME_NONNULL_BEGIN + @class SSLSocket; @interface SSLConnectionFailedException: OFConnectionFailedException { unsigned long _SSLError; long _verifyResult; } -@property (readonly) unsigned long SSLError; -@property (readonly) long verifyResult; +@property (readonly, nonatomic) unsigned long SSLError; +@property (readonly, nonatomic) long verifyResult; + (instancetype)exceptionWithHost: (OFString *)host port: (uint16_t)port + socket: (id)socket OF_UNAVAILABLE; ++ (instancetype)exceptionWithHost: (OFString *)host + port: (uint16_t)port + socket: (id)socket + errNo: (int)errNo OF_UNAVAILABLE; ++ (instancetype)exceptionWithHost: (OFString *)host + port: (uint16_t)port socket: (SSLSocket *)socket SSLError: (unsigned long)SSLError; + (instancetype)exceptionWithHost: (OFString *)host port: (uint16_t)port socket: (SSLSocket *)socket SSLError: (unsigned long)SSLError verifyResult: (long)verifyResult; - initWithHost: (OFString *)host port: (uint16_t)port + socket: (SSLSocket *)socket OF_UNAVAILABLE; +- initWithHost: (OFString *)host + port: (uint16_t)port + socket: (SSLSocket *)socket + errNo: (int)errNo OF_UNAVAILABLE; +- initWithHost: (OFString *)host + port: (uint16_t)port socket: (SSLSocket *)socket SSLError: (unsigned long)SSLError; - initWithHost: (OFString *)host port: (uint16_t)port socket: (SSLSocket *)socket SSLError: (unsigned long)SSLError - verifyResult: (long)verifyResult; + verifyResult: (long)verifyResult OF_DESIGNATED_INITIALIZER; @end + +OF_ASSUME_NONNULL_END