MySQL 8.4.2
Source Code Documentation
tls::TlsMessageDumper Class Reference

#include <tls_message_dumper.h>

Public Member Functions

 TlsMessageDumper (SSL_CTX *ctx, std::string &&name)
 
 TlsMessageDumper (SSL *ssl, std::string &&name)
 
 ~TlsMessageDumper ()
 

Static Private Member Functions

static std::string to_string_write_p (int write_p)
 
static std::string to_string_version (int version)
 
static std::string to_string_content (int content)
 
static std::string to_string_name (void *arg)
 
static void message_callback (int write_p, int version, int content_type, const void *buf, size_t len, SSL *, void *arg)
 

Private Attributes

SSL * ssl_ {nullptr}
 
SSL_CTX * ctx_ {nullptr}
 
std::string name_
 

Constructor & Destructor Documentation

◆ TlsMessageDumper() [1/2]

tls::TlsMessageDumper::TlsMessageDumper ( SSL_CTX *  ctx,
std::string &&  name 
)
inline

◆ TlsMessageDumper() [2/2]

tls::TlsMessageDumper::TlsMessageDumper ( SSL *  ssl,
std::string &&  name 
)
inline

◆ ~TlsMessageDumper()

tls::TlsMessageDumper::~TlsMessageDumper ( )
inline

Member Function Documentation

◆ message_callback()

static void tls::TlsMessageDumper::message_callback ( int  write_p,
int  version,
int  content_type,
const void *  buf,
size_t  len,
SSL *  ,
void *  arg 
)
inlinestaticprivate

◆ to_string_content()

static std::string tls::TlsMessageDumper::to_string_content ( int  content)
inlinestaticprivate

◆ to_string_name()

static std::string tls::TlsMessageDumper::to_string_name ( void *  arg)
inlinestaticprivate

◆ to_string_version()

static std::string tls::TlsMessageDumper::to_string_version ( int  version)
inlinestaticprivate

◆ to_string_write_p()

static std::string tls::TlsMessageDumper::to_string_write_p ( int  write_p)
inlinestaticprivate

Member Data Documentation

◆ ctx_

SSL_CTX* tls::TlsMessageDumper::ctx_ {nullptr}
private

◆ name_

std::string tls::TlsMessageDumper::name_
private

◆ ssl_

SSL* tls::TlsMessageDumper::ssl_ {nullptr}
private

The documentation for this class was generated from the following file: