25#ifndef MYSQL_HARNESS_TLS_ERROR_H_INCLUDED
26#define MYSQL_HARNESS_TLS_ERROR_H_INCLUDED
28#include <system_error>
30#include <openssl/ssl.h>
34static_assert(SSL_ERROR_WANT_READ != 0);
50struct is_error_code_enum<
TlsErrc> : std::true_type {};
constexpr value_type ssl
Definition: classic_protocol_constants.h:48
Definition: varlen_sort.h:183
HARNESS_TLS_EXPORT std::error_code make_tls_ssl_error(const SSL *ssl, int res)
make a std::error_code from SSL_get_error().
Definition: tls_error.cc:102
TlsCertErrc
Definition: tls_error.h:42
TlsErrc
Definition: tls_error.h:36
HARNESS_TLS_EXPORT std::error_code make_error_code(TlsCertErrc ec)
make std::error_code from TlsCertErrc.
Definition: tls_error.cc:54
HARNESS_TLS_EXPORT std::error_code make_tls_error()
make a std::error_code from ERR_get_error().
Definition: tls_error.cc:98
#define HARNESS_TLS_EXPORT
Definition: tls_export.h:15