MySQL 9.1.0
Source Code Documentation
tls_error.cc File Reference
#include "mysql/harness/tls_error.h"
#include <array>
#include <system_error>
#include <openssl/err.h>
#include <openssl/ssl.h>

Functions

static const std::error_category & tls_cert_category () noexcept
 
std::error_code make_error_code (TlsCertErrc e)
 make std::error_code from TlsCertErrc. More...
 
static const std::error_category & tls_ssl_category () noexcept
 
std::error_code make_error_code (TlsErrc e)
 make std::error_code from TlsErrc. More...
 
const std::error_category & tls_err_category () noexcept
 
std::error_code make_tls_error ()
 make a std::error_code from ERR_get_error(). More...
 
std::error_code make_tls_ssl_error (const SSL *ssl, int res)
 make a std::error_code from SSL_get_error(). More...
 

Function Documentation

◆ make_error_code() [1/2]

std::error_code make_error_code ( TlsCertErrc  e)

make std::error_code from TlsCertErrc.

◆ make_error_code() [2/2]

std::error_code make_error_code ( TlsErrc  e)

make std::error_code from TlsErrc.

◆ make_tls_error()

std::error_code make_tls_error ( )

make a std::error_code from ERR_get_error().

◆ make_tls_ssl_error()

std::error_code make_tls_ssl_error ( const SSL *  ssl,
int  res 
)

make a std::error_code from SSL_get_error().

Parameters
ssla SSL connection
resresult of a SSL_ function.

◆ tls_cert_category()

static const std::error_category & tls_cert_category ( )
staticnoexcept

◆ tls_err_category()

const std::error_category & tls_err_category ( )
noexcept

◆ tls_ssl_category()

static const std::error_category & tls_ssl_category ( )
staticnoexcept