19 OF_ASSUME_NONNULL_BEGIN
31 #ifdef OF_HAVE_OPTIONAL_PROTOCOLS
59 #ifdef OF_HAVE_PROPERTIES
61 @property OF_NULLABLE_PROPERTY (copy)
65 bool certificateVerificationEnabled;
85 - (void)startTLSWithExpectedHost: (
OFString*)host;
106 - (void)setCertificateFile: (nullable
OFString*)certificateFile;
117 - (void)setCertificateFile: (
OFString*)certificateFile
125 - (nullable
OFString*)certificateFile;
144 - (void)setPrivateKeyFile: (nullable
OFString*)privateKeyFile;
154 - (void)setPrivateKeyFile: (
OFString*)privateKeyFile
163 - (nullable
OFString*)privateKeyFile;
186 - (void)setPrivateKeyPassphrase: (nullable const
char*)privateKeyPassphrase;
200 - (void)setPrivateKeyPassphrase: (const
char*)privateKeyPassphrase
210 - (nullable const char*)privateKeyPassphrase;
224 - (nullable const char*)privateKeyPassphraseForSNIHost: (
OFString*)SNIHost;
233 - (void)setCertificateVerificationEnabled: (
bool)enabled;
243 OF_ASSUME_NONNULL_END
nullable id< OFTLSSocketDelegate > delegate()
Returns the delegate used by the TLS socket.
A protocol that should be implemented by 3rd-party libraries implementing TLS.
Definition: OFTLSSocket.h:58
bool isCertificateVerificationEnabled()
Returns whether certificate verification is enabled.
A class for handling strings.
Definition: OFString.h:91
nullable OFString * privateKeyFile()
Returns the path of the PKCS#8 private key file used by the TLS socket.
An abstract class for storing objects in a dictionary.
Definition: OFDictionary.h:61
A class which provides functions to create and use TCP sockets.
Definition: OFTCPSocket.h:61
nullable const char * privateKeyPassphrase()
Returns the passphrase to decrypt the PKCS#8 private key file.
A delegate for classes implementing the OFTLSSocket protocol.
Definition: OFTLSSocket.h:30
nullable OFString * certificateFile()
Returns the path of the X.509 certificate file used by the TLS socket.