Differences From Artifact [27187de68b]:
- File
src/OFTLSSocket.h
— part of check-in
[4af49a13c3]
at
2017-05-07 20:10:13
on branch trunk
— Small code style change
Casts are now written like types in variable declarations. (user: js, size: 5955) [annotate] [blame] [check-ins using]
To Artifact [ec9c77b08c]:
- File src/OFTLSSocket.h — part of check-in [f663d40cbd] at 2017-05-13 16:29:52 on branch trunk — Also use nonatomic for non-object properties (user: js, size: 5996) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
53 54 55 56 57 58 59 | * @brief A protocol that should be implemented by 3rd-party libraries * implementing TLS. */ @protocol OFTLSSocket /*! * The delegate for the TLS socket. */ | | > | > | | 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
* @brief A protocol that should be implemented by 3rd-party libraries
* implementing TLS.
*/
@protocol OFTLSSocket
/*!
* The delegate for the TLS socket.
*/
@property OF_NULLABLE_PROPERTY (nonatomic, assign)
id <OFTLSSocketDelegate> delegate;
/*!
* The path to the X.509 certificate file to use.
*/
@property OF_NULLABLE_PROPERTY (nonatomic, copy) OFString *certificateFile;
/*!
* The path to the PKCS#8 private key file to use.
*/
@property OF_NULLABLE_PROPERTY (nonatomic, copy) OFString *privateKeyFile;
/*!
* The passphrase to decrypt the PKCS#8 private key file.
*
* @warning You have to ensure that this is in secure memory protected from
* swapping! This is also the reason why this is not an OFString.
*/
@property OF_NULLABLE_PROPERTY (nonatomic, assign)
const char *privateKeyPassphrase;
/**
* Whether certificate verification is enabled.
*
* The default is enabled.
*/
@property (nonatomic, getter=isCertificateVerificationEnabled)
bool certificateVerificationEnabled;
/*!
* @brief Initializes the TLS socket with the specified TCP socket as its
* underlying socket.
*
* @param socket The TCP socket to use as underlying socket
|
| ︙ | ︙ |