29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
-
+
+
+
+
+
+
+
+
+
+
+
|
/**
* @brief An enum representing an error of an OFTLSStream.
*/
typedef enum {
/** @brief An unknown error. */
OFTLSStreamErrorCodeUnknown,
/** @brief Initialization of the TLS context failed. */
OFTLSStreamErrorCodeInitializationFailed
OFTLSStreamErrorCodeInitializationFailed,
/** @brief Verification of the certificate failed. */
OFTLSStreamErrorCodeCertificateVerificationFailed,
/** @brief The certificate has an untrusted or unknown issuer. */
OFTLSStreamErrorCodeCertificateIssuerUntrusted,
/** @brief The certificate is for a different name. */
OFTLSStreamErrorCodeCertificateNameMismatch,
/** @brief The certificate has expired or is not yet valid. */
OFTLSStreamErrorCodeCertificatedExpired,
/** @brief The certificate has been revoked. */
OFTLSStreamErrorCodeCertificateRevoked
} OFTLSStreamErrorCode;
/**
* @protocol OFTLSStreamDelegate OFTLSStream.h ObjFW/ObjFW.h
*
* A delegate for OFTLSStream.
*/
|