MySQL 9.1.0
Source Code Documentation
Lock_and_access_ssl_acceptor_context Class Reference

TLS context access wrapper for ease of use. More...

#include <ssl_acceptor_context_operator.h>

Public Member Functions

 Lock_and_access_ssl_acceptor_context (Ssl_acceptor_context_container *context)
 
 ~Lock_and_access_ssl_acceptor_context ()=default
 
 operator const Ssl_acceptor_context_data * ()
 Access protected Ssl_acceptor_context_data. More...
 
 operator SSL_CTX * ()
 Access to the SSL_CTX from the protected Ssl_acceptor_context_data. More...
 
 operator SSL * ()
 Access to the SSL from the protected Ssl_acceptor_context_data. More...
 
 operator struct st_VioSSLFd * ()
 Access to st_VioSSLFd from the protected Ssl_acceptor_context_data. More...
 
std::string show_property (Ssl_acceptor_context_property_type property_type)
 Fetch given property from underlying TLS context. More...
 
std::string channel_name ()
 Fetch channel name. More...
 
bool have_ssl ()
 TLS context validity. More...
 

Private Attributes

Ssl_acceptor_context_data_lock::ReadLock read_lock_
 Read lock over TLS context. More...
 

Detailed Description

TLS context access wrapper for ease of use.

Constructor & Destructor Documentation

◆ Lock_and_access_ssl_acceptor_context()

Lock_and_access_ssl_acceptor_context::Lock_and_access_ssl_acceptor_context ( Ssl_acceptor_context_container context)
inline

◆ ~Lock_and_access_ssl_acceptor_context()

Lock_and_access_ssl_acceptor_context::~Lock_and_access_ssl_acceptor_context ( )
default

Member Function Documentation

◆ channel_name()

std::string Lock_and_access_ssl_acceptor_context::channel_name ( )

Fetch channel name.

Returns
Name of underlying channel

◆ have_ssl()

bool Lock_and_access_ssl_acceptor_context::have_ssl ( )

TLS context validity.

Returns
Validity of TLS context
Return values
trueValid
falseInvalid

◆ operator const Ssl_acceptor_context_data *()

Lock_and_access_ssl_acceptor_context::operator const Ssl_acceptor_context_data * ( )
inline

Access protected Ssl_acceptor_context_data.

◆ operator SSL *()

Lock_and_access_ssl_acceptor_context::operator SSL * ( )
inline

Access to the SSL from the protected Ssl_acceptor_context_data.

◆ operator SSL_CTX *()

Lock_and_access_ssl_acceptor_context::operator SSL_CTX * ( )
inline

Access to the SSL_CTX from the protected Ssl_acceptor_context_data.

◆ operator struct st_VioSSLFd *()

Lock_and_access_ssl_acceptor_context::operator struct st_VioSSLFd * ( )
inline

Access to st_VioSSLFd from the protected Ssl_acceptor_context_data.

◆ show_property()

std::string Lock_and_access_ssl_acceptor_context::show_property ( Ssl_acceptor_context_property_type  property_type)

Fetch given property from underlying TLS context.

Parameters
[in]property_typeProperty to be fetched
Returns
Value of property for given context. Empty in case of failure.

Member Data Documentation

◆ read_lock_

Ssl_acceptor_context_data_lock::ReadLock Lock_and_access_ssl_acceptor_context::read_lock_
private

Read lock over TLS context.


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