23OF_ASSUME_NONNULL_BEGIN
44@protocol OFTLSStreamDelegate <OFStreamDelegate>
55 didPerformClientHandshakeWithHost: (
OFString *)host
56 exception: (nullable
id)exception;
78 OFStream <OFReadyForReadingObserving, OFReadyForWritingObserving>
80 bool _verifiesCertificates;
87@property (readonly, nonatomic)
OFStream <OFReadyForReadingObserving,
88 OFReadyForWritingObserving> *underlyingStream;
96@property OF_NULLABLE_PROPERTY (assign, nonatomic)
97 id <OFTLSStreamDelegate> delegate;
102@property (nonatomic)
bool verifiesCertificates;
104- (instancetype)init OF_UNAVAILABLE;
114+ (instancetype)streamWithStream: (
OFStream <OFReadyForReadingObserving,
115 OFReadyForWritingObserving> *)stream;
128- (instancetype)initWithStream: (
OFStream <OFReadyForReadingObserving,
129 OFReadyForWritingObserving> *)stream
130 OF_DESIGNATED_INITIALIZER;
140- (void)asyncPerformClientHandshakeWithHost: (
OFString *)host;
151- (void)asyncPerformClientHandshakeWithHost: (
OFString *)host
161- (void)performClientHandshakeWithHost: (
OFString *)host;
OFTLSStreamErrorCode
An enum representing an error of an OFTLSStream.
Definition OFTLSStream.h:32
@ OFTLSStreamErrorCodeInitializationFailed
Initialization of the TLS context failed.
Definition OFTLSStream.h:36
@ OFTLSStreamErrorCodeUnknown
An unknown error.
Definition OFTLSStream.h:34
OFString * OFTLSStreamErrorCodeDescription(OFTLSStreamErrorCode errorCode)
Returns a string description for the TLS stream error code.
Definition OFTLSStream.m:52
Class OFTLSStreamImplementation
The implementation for OFTLSStream to use.
Definition OFTLSStream.m:37
A class for storing constant strings using the @"" literal.
Definition OFConstantString.h:42
A base class for different types of streams.
Definition OFStream.h:280
A class for handling strings.
Definition OFString.h:143
A class that provides Transport Layer Security on top of a stream.
Definition OFTLSStream.h:78
This protocol is implemented by classes which can be observed for readiness for reading by OFKernelEv...
Definition OFKernelEventObserver.h:83
This protocol is implemented by classes which can be observed for readiness for writing by OFKernelEv...
Definition OFKernelEventObserver.h:97