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

Go to the source code of this file.

Classes

struct  std::is_error_code_enum< TlsErrc >
 
struct  std::is_error_code_enum< TlsCertErrc >
 

Namespaces

namespace  std
 

Enumerations

enum class  TlsErrc { kWantRead = SSL_ERROR_WANT_READ , kWantWrite = SSL_ERROR_WANT_WRITE , kZeroReturn = SSL_ERROR_ZERO_RETURN }
 
enum class  TlsCertErrc { kNoRSACert = 1 , kNotACertificate , kRSAKeySizeToSmall }
 

Functions

HARNESS_TLS_EXPORT std::error_code make_error_code (TlsCertErrc ec)
 make std::error_code from TlsCertErrc. More...
 
HARNESS_TLS_EXPORT std::error_code make_error_code (TlsErrc ec)
 make std::error_code from TlsErrc. More...
 
HARNESS_TLS_EXPORT std::error_code make_tls_error ()
 make a std::error_code from ERR_get_error(). More...
 
HARNESS_TLS_EXPORT std::error_code make_tls_ssl_error (const SSL *ssl, int res)
 make a std::error_code from SSL_get_error(). More...
 

Enumeration Type Documentation

◆ TlsCertErrc

enum class TlsCertErrc
strong
Enumerator
kNoRSACert 
kNotACertificate 
kRSAKeySizeToSmall 

◆ TlsErrc

enum class TlsErrc
strong
Enumerator
kWantRead 
kWantWrite 
kZeroReturn 

Function Documentation

◆ make_error_code() [1/2]

HARNESS_TLS_EXPORT std::error_code make_error_code ( TlsCertErrc  ec)

make std::error_code from TlsCertErrc.

◆ make_error_code() [2/2]

HARNESS_TLS_EXPORT std::error_code make_error_code ( TlsErrc  ec)

make std::error_code from TlsErrc.

◆ make_tls_error()

HARNESS_TLS_EXPORT std::error_code make_tls_error ( )

make a std::error_code from ERR_get_error().

◆ make_tls_ssl_error()

HARNESS_TLS_EXPORT 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.