22 #import "OFX509Certificate.h"
24 OF_ASSUME_NONNULL_BEGIN
28 @class OFArray OF_GENERIC(ObjectType);
68 didPerformClientHandshakeWithHost: (
OFString *)host
69 exception: (nullable
id)exception;
79 - (void)streamDidPerformServerHandshake: (
OFTLSStream *)stream
80 exception: (nullable
id)exception;
104 bool _verifiesCertificates;
121 @property OF_NULLABLE_PROPERTY (assign, nonatomic)
122 id <OFTLSStreamDelegate> delegate;
127 @property (nonatomic)
bool verifiesCertificates;
132 @property OF_NULLABLE_PROPERTY (copy, nonatomic)
135 - (instancetype)init OF_UNAVAILABLE;
161 OF_DESIGNATED_INITIALIZER;
171 - (void)asyncPerformClientHandshakeWithHost: (
OFString *)host;
182 - (void)asyncPerformClientHandshakeWithHost: (
OFString *)host
192 - (void)performClientHandshakeWithHost: (
OFString *)host;
201 - (void)asyncPerformServerHandshake;
212 - (void)asyncPerformServerHandshakeWithRunLoopMode: (
OFRunLoopMode)runLoopMode;
220 - (void)performServerHandshake;
247 OF_ASSUME_NONNULL_END
OFTLSStreamErrorCode
An enum representing an error of an OFTLSStream.
Definition: OFTLSStream.h:34
@ OFTLSStreamErrorCodeCertificatedExpired
The certificate has expired or is not yet valid.
Definition: OFTLSStream.h:46
@ OFTLSStreamErrorCodeInitializationFailed
Initialization of the TLS context failed.
Definition: OFTLSStream.h:38
@ OFTLSStreamErrorCodeCertificateIssuerUntrusted
The certificate has an untrusted or unknown issuer.
Definition: OFTLSStream.h:42
@ OFTLSStreamErrorCodeUnknown
An unknown error.
Definition: OFTLSStream.h:36
@ OFTLSStreamErrorCodeCertificateNameMismatch
The certificate is for a different name.
Definition: OFTLSStream.h:44
@ OFTLSStreamErrorCodeCertificateRevoked
The certificate has been revoked.
Definition: OFTLSStream.h:48
@ OFTLSStreamErrorCodeCertificateVerificationFailed
Failed to verify certificate.
Definition: OFTLSStream.h:40
OFString * OFTLSStreamErrorCodeDescription(OFTLSStreamErrorCode errorCode)
Returns a string description for the TLS stream error code.
Definition: OFTLSStream.m:53
Class OFTLSStreamImplementation
The implementation for OFTLSStream to use.
Definition: OFTLSStream.m:38
An abstract class for storing objects in an array.
Definition: OFArray.h:109
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:102
An X.509 certificate, optionally with an associated private key.
Definition: OFX509Certificate.h:33
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:98
Definition: OFStream.h:176
Definition: OFTLSStream.h:56