16 #import "OFException.h"
18 #ifndef OF_HAVE_SOCKETS
19 # error No sockets available!
24 OF_ASSUME_NONNULL_BEGIN
29 extern int _OFTLSHandshakeFailedException_reference;
56 @property OF_NULLABLE_PROPERTY (readonly, nonatomic)
OFString *
host;
71 + (instancetype)exceptionWithStream: (
OFTLSStream *)stream
75 + (instancetype)exception OF_UNAVAILABLE;
85 - (instancetype)initWithStream: (
OFTLSStream *)stream
88 OF_DESIGNATED_INITIALIZER;
90 - (instancetype)init OF_UNAVAILABLE;
OFTLSStreamErrorCode
An enum representing an error of an OFTLSStream.
Definition: OFTLSStream.h:28
The base class for all exceptions in ObjFW.
Definition: OFException.h:151
A class for handling strings.
Definition: OFString.h:135
An exception indicating that a TLS handshake.
Definition: OFTLSHandshakeFailedException.h:41
OFString * host
The host for the handshake.
Definition: OFTLSHandshakeFailedException.h:56
A class that provides Transport Layer Security on top of a stream.
Definition: OFTLSStream.h:75