30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
* @brief An enum representing an error of an OFTLSStream.
*/
typedef enum {
/** @brief An unknown error. */
OFTLSStreamErrorCodeUnknown,
/** @brief Initialization of the TLS context failed. */
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,
|
|
|
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
* @brief An enum representing an error of an OFTLSStream.
*/
typedef enum {
/** @brief An unknown error. */
OFTLSStreamErrorCodeUnknown,
/** @brief Initialization of the TLS context failed. */
OFTLSStreamErrorCodeInitializationFailed,
/** @brief Failed to verify certificate. */
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,
|