MySQL 8.0.40
Source Code Documentation
Ssl_acceptor_context_data Class Referencefinal

Container of SSL Acceptor context data. More...

#include <ssl_acceptor_context_data.h>

Public Member Functions

 Ssl_acceptor_context_data (std::string channel, bool use_ssl_arg, Ssl_init_callback *callbacks, bool report_ssl_error=true, enum enum_ssl_init_error *out_error=nullptr)
 Ctor. More...
 
 ~Ssl_acceptor_context_data ()
 Destructor. More...
 

Protected Member Functions

 Ssl_acceptor_context_data (const Ssl_acceptor_context_data &)=delete
 
Ssl_acceptor_context_data operator= (const Ssl_acceptor_context_data &)=delete
 
 Ssl_acceptor_context_data (Ssl_acceptor_context_data &&)=delete
 
Ssl_acceptor_context_data operator= (Ssl_acceptor_context_data &&)=delete
 
std::string show_property (Ssl_acceptor_context_property_type property_type) const
 Fetch given property from underlying TLS context. More...
 
bool have_ssl () const
 TLS context validity. More...
 
const char * channel_name () const
 Get channel name. More...
 
 operator struct st_VioSSLFd * ()
 Get Acceptor context. More...
 
 operator SSL * ()
 Get SSL handle. More...
 
const char * current_ca () const
 Get current CA. More...
 
const char * current_capath () const
 Get current CA Path. More...
 
const char * current_cert () const
 Get current Certificate. More...
 
const char * current_key () const
 Get current Key. More...
 
const char * current_crl () const
 Get current CRL certificate. More...
 
const char * current_crlpath () const
 Get current CRL Path. More...
 
const char * current_version () const
 Get current TLS version. More...
 
const char * current_cipher () const
 Get current TLSv1.2 ciphers. More...
 
const char * current_ciphersuites () const
 Get current TLSv1.3 ciphers. More...
 

Private Attributes

std::string channel_
 Channel name. More...
 
struct st_VioSSLFdssl_acceptor_fd_
 SSL_CTX barerer. More...
 
SSL * acceptor_
 An SSL for ssl_acceptor_fd_ to allow access to parameters not in SSL_CTX to be available even if the current connection is not encrypted. More...
 
OptionalString current_ca_
 Copies of the current effective values for quick return via the status vars. More...
 
OptionalString current_capath_
 
OptionalString current_version_
 
OptionalString current_cert_
 
OptionalString current_cipher_
 
OptionalString current_ciphersuites_
 
OptionalString current_key_
 
OptionalString current_crl_
 
OptionalString current_crlpath_
 
long current_tls_session_cache_timeout_
 
bool current_tls_session_cache_mode_
 

Friends

class Ssl_acceptor_context_container
 
class TLS_channel
 
class Lock_and_access_ssl_acceptor_context
 

Detailed Description

Container of SSL Acceptor context data.

Constructor & Destructor Documentation

◆ Ssl_acceptor_context_data() [1/3]

Ssl_acceptor_context_data::Ssl_acceptor_context_data ( std::string  channel,
bool  use_ssl_arg,
Ssl_init_callback callbacks,
bool  report_ssl_error = true,
enum enum_ssl_init_error out_error = nullptr 
)

Ctor.

Parameters
[in]channelName of the channel
[in]use_ssl_argDon't bother at all to try and construct an SSL_CTX and just make an empty SslAcceptorContext. Used to pass the –ssl/–admin-ssl options at startup.
[in]callbacksTLS context initialization callbacks to get values of various options and perform validation
[in]report_ssl_errorReport any SSL errors resulting from trying to initialize the SSL_CTX to error log
[out]out_errorAn optional slot to return SSL_CTX initialization error information

◆ ~Ssl_acceptor_context_data()

Ssl_acceptor_context_data::~Ssl_acceptor_context_data ( )

Destructor.

◆ Ssl_acceptor_context_data() [2/3]

Ssl_acceptor_context_data::Ssl_acceptor_context_data ( const Ssl_acceptor_context_data )
protecteddelete

◆ Ssl_acceptor_context_data() [3/3]

Ssl_acceptor_context_data::Ssl_acceptor_context_data ( Ssl_acceptor_context_data &&  )
protecteddelete

Member Function Documentation

◆ channel_name()

const char * Ssl_acceptor_context_data::channel_name ( ) const
inlineprotected

Get channel name.

◆ current_ca()

const char * Ssl_acceptor_context_data::current_ca ( ) const
inlineprotected

Get current CA.

◆ current_capath()

const char * Ssl_acceptor_context_data::current_capath ( ) const
inlineprotected

Get current CA Path.

◆ current_cert()

const char * Ssl_acceptor_context_data::current_cert ( ) const
inlineprotected

Get current Certificate.

◆ current_cipher()

const char * Ssl_acceptor_context_data::current_cipher ( ) const
inlineprotected

Get current TLSv1.2 ciphers.

◆ current_ciphersuites()

const char * Ssl_acceptor_context_data::current_ciphersuites ( ) const
inlineprotected

Get current TLSv1.3 ciphers.

◆ current_crl()

const char * Ssl_acceptor_context_data::current_crl ( ) const
inlineprotected

Get current CRL certificate.

◆ current_crlpath()

const char * Ssl_acceptor_context_data::current_crlpath ( ) const
inlineprotected

Get current CRL Path.

◆ current_key()

const char * Ssl_acceptor_context_data::current_key ( ) const
inlineprotected

Get current Key.

◆ current_version()

const char * Ssl_acceptor_context_data::current_version ( ) const
inlineprotected

Get current TLS version.

◆ have_ssl()

bool Ssl_acceptor_context_data::have_ssl ( ) const
inlineprotected

TLS context validity.

◆ operator SSL *()

Ssl_acceptor_context_data::operator SSL * ( )
inlineprotected

Get SSL handle.

◆ operator struct st_VioSSLFd *()

Ssl_acceptor_context_data::operator struct st_VioSSLFd * ( )
inlineprotected

Get Acceptor context.

◆ operator=() [1/2]

Ssl_acceptor_context_data Ssl_acceptor_context_data::operator= ( const Ssl_acceptor_context_data )
protecteddelete

◆ operator=() [2/2]

Ssl_acceptor_context_data Ssl_acceptor_context_data::operator= ( Ssl_acceptor_context_data &&  )
protecteddelete

◆ show_property()

std::string Ssl_acceptor_context_data::show_property ( Ssl_acceptor_context_property_type  property_type) const
protected

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.

Friends And Related Function Documentation

◆ Lock_and_access_ssl_acceptor_context

◆ Ssl_acceptor_context_container

friend class Ssl_acceptor_context_container
friend

◆ TLS_channel

friend class TLS_channel
friend

Member Data Documentation

◆ acceptor_

SSL* Ssl_acceptor_context_data::acceptor_
private

An SSL for ssl_acceptor_fd_ to allow access to parameters not in SSL_CTX to be available even if the current connection is not encrypted.

◆ channel_

std::string Ssl_acceptor_context_data::channel_
private

Channel name.

◆ current_ca_

OptionalString Ssl_acceptor_context_data::current_ca_
private

Copies of the current effective values for quick return via the status vars.

◆ current_capath_

OptionalString Ssl_acceptor_context_data::current_capath_
private

◆ current_cert_

OptionalString Ssl_acceptor_context_data::current_cert_
private

◆ current_cipher_

OptionalString Ssl_acceptor_context_data::current_cipher_
private

◆ current_ciphersuites_

OptionalString Ssl_acceptor_context_data::current_ciphersuites_
private

◆ current_crl_

OptionalString Ssl_acceptor_context_data::current_crl_
private

◆ current_crlpath_

OptionalString Ssl_acceptor_context_data::current_crlpath_
private

◆ current_key_

OptionalString Ssl_acceptor_context_data::current_key_
private

◆ current_tls_session_cache_mode_

bool Ssl_acceptor_context_data::current_tls_session_cache_mode_
private

◆ current_tls_session_cache_timeout_

long Ssl_acceptor_context_data::current_tls_session_cache_timeout_
private

◆ current_version_

OptionalString Ssl_acceptor_context_data::current_version_
private

◆ ssl_acceptor_fd_

struct st_VioSSLFd* Ssl_acceptor_context_data::ssl_acceptor_fd_
private

SSL_CTX barerer.


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