19OF_ASSUME_NONNULL_BEGIN
40@protocol OFTLSStreamDelegate <OFStreamDelegate>
51 didPerformClientHandshakeWithHost: (
OFString *)host
52 exception: (nullable
id)exception;
75 OFStream <OFReadyForReadingObserving, OFReadyForWritingObserving>
77 bool _verifiesCertificates;
84@property (readonly, nonatomic)
OFStream <OFReadyForReadingObserving,
85 OFReadyForWritingObserving> *underlyingStream;
93@property OF_NULLABLE_PROPERTY (assign, nonatomic)
94 id <OFTLSStreamDelegate> delegate;
99@property (nonatomic)
bool verifiesCertificates;
101- (instancetype)init OF_UNAVAILABLE;
111+ (instancetype)streamWithStream: (
OFStream <OFReadyForReadingObserving,
112 OFReadyForWritingObserving> *)stream;
122- (instancetype)initWithStream: (
OFStream <OFReadyForReadingObserving,
123 OFReadyForWritingObserving> *)stream
124 OF_DESIGNATED_INITIALIZER;
134- (void)asyncPerformClientHandshakeWithHost: (
OFString *)host;
145- (void)asyncPerformClientHandshakeWithHost: (
OFString *)host
155- (void)performClientHandshakeWithHost: (
OFString *)host;
OFTLSStreamErrorCode
An enum representing an error of an OFTLSStream.
Definition OFTLSStream.h:28
@ OFTLSStreamErrorCodeInitializationFailed
Initialization of the TLS context failed.
Definition OFTLSStream.h:32
@ OFTLSStreamErrorCodeUnknown
An unknown error.
Definition OFTLSStream.h:30
OFString * OFTLSStreamErrorCodeDescription(OFTLSStreamErrorCode errorCode)
Returns a string description for the TLS stream error code.
Definition OFTLSStream.m:48
Class OFTLSStreamImplementation
The implementation for OFTLSStream to use.
Definition OFTLSStream.m:33
A class for storing constant strings using the @"" literal.
Definition OFConstantString.h:38
A base class for different types of streams.
Definition OFStream.h:188
A class for handling strings.
Definition OFString.h:135
A class that provides Transport Layer Security on top of a stream.
Definition OFTLSStream.h:75
This protocol is implemented by classes which can be observed for readiness for reading by OFKernelEv...
Definition OFKernelEventObserver.h:84
This protocol is implemented by classes which can be observed for readiness for writing by OFKernelEv...
Definition OFKernelEventObserver.h:99