MySQL 8.3.0
Source Code Documentation
Mysql::Tools::Base::Options::Mysql_connection_options::Ssl_options Class Reference

Options provider enclosing options related to SSL settings of connection to MySQL server. More...

Inheritance diagram for Mysql::Tools::Base::Options::Mysql_connection_options::Ssl_options:
[legend]

Public Member Functions

void create_options () override
 Creates all options that will be provided. More...
 
bool apply_for_connection (MYSQL *connection)
 Applies option values to MYSQL connection structure. More...
 
bool check_connection (MYSQL *connection)
 Checks the connection for SSL validity. More...
 
- Public Member Functions inherited from Mysql::Tools::Base::Options::Abstract_options_provider
Simple_optioncreate_new_option (std::string name, std::string description)
 Creates and attach new simple option. More...
 
Disabled_optioncreate_new_disabled_option (std::string name, std::string description)
 Creates and attach new disabled option. More...
 
Char_array_optioncreate_new_option (char **value, std::string name, std::string description)
 Creates and attach new string option stored in char* type object. More...
 
Password_optioncreate_new_password_option (std::optional< std::string > *value, std::string name, std::string description)
 Creates and attach new password option. More...
 
String_optioncreate_new_option (std::optional< std::string > *value, std::string name, std::string description)
 Creates and attach new string option. More...
 
Number_option< int32 > * create_new_option (int32 *value, std::string name, std::string description)
 Creates and attach new 32-bit signed number option. More...
 
Number_option< uint32 > * create_new_option (uint32 *value, std::string name, std::string description)
 Creates and attach new 32-bit unsigned number option. More...
 
Number_option< int64 > * create_new_option (int64 *value, std::string name, std::string description)
 Creates and attach new 64-bit signed number option. More...
 
Number_option< uint64 > * create_new_option (uint64 *value, std::string name, std::string description)
 Creates and attach new 64-bit unsigned number option. More...
 
Number_option< double > * create_new_option (double *value, std::string name, std::string description)
 Creates and attach new floating-point number option. More...
 
Bool_optioncreate_new_option (bool *value, std::string name, std::string description)
 Creates and attach new boolean option with value received from argument. More...
 
template<typename T_type , typename T_typelib >
Enum_option< T_type, T_typelib > * create_new_enum_option (T_type *value, const T_typelib *type, std::string name, std::string description)
 
std::vector< my_optiongenerate_options () override
 Creates list of options provided by this provider. More...
 
void options_parsed () override
 Callback to be called when command-line options parsing have finished. More...
 
- Public Member Functions inherited from Mysql::Tools::Base::Options::I_option_changed_listener
virtual ~I_option_changed_listener ()=default
 

Private Member Functions

void ca_option_callback (char *argument)
 
void mode_option_callback (char *argument)
 
void fips_mode_option_callback (char *argument)
 

Private Attributes

std::optional< std::string > m_ssl_mode_string
 
std::optional< std::string > m_ssl_fips_mode_string
 

Additional Inherited Members

- Protected Member Functions inherited from Mysql::Tools::Base::Options::Abstract_options_provider
 Abstract_options_provider ()
 
 ~Abstract_options_provider () override
 
void set_option_changed_listener (I_option_changed_listener *listener) override
 Sets optional option changes listener to which all changes in all options contained in this provider should be reported. More...
 

Detailed Description

Options provider enclosing options related to SSL settings of connection to MySQL server.

Member Function Documentation

◆ apply_for_connection()

bool Mysql_connection_options::Ssl_options::apply_for_connection ( MYSQL connection)

Applies option values to MYSQL connection structure.

◆ ca_option_callback()

void Mysql_connection_options::Ssl_options::ca_option_callback ( char *  argument)
private

◆ check_connection()

bool Mysql_connection_options::Ssl_options::check_connection ( MYSQL connection)

Checks the connection for SSL validity.

◆ create_options()

void Mysql_connection_options::Ssl_options::create_options ( )
overridevirtual

Creates all options that will be provided.

Implementation of Abstract_options_provider virtual method.

Implements Mysql::Tools::Base::Options::Abstract_options_provider.

◆ fips_mode_option_callback()

void Mysql_connection_options::Ssl_options::fips_mode_option_callback ( char *  argument)
private

◆ mode_option_callback()

void Mysql_connection_options::Ssl_options::mode_option_callback ( char *  argument)
private

Member Data Documentation

◆ m_ssl_fips_mode_string

std::optional<std::string> Mysql::Tools::Base::Options::Mysql_connection_options::Ssl_options::m_ssl_fips_mode_string
private

◆ m_ssl_mode_string

std::optional<std::string> Mysql::Tools::Base::Options::Mysql_connection_options::Ssl_options::m_ssl_mode_string
private

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