MySQL 8.4.2
Source Code Documentation
ssl_init_callback.h File Reference
#include <atomic>
#include <string>
#include <sql/auth/auth_common.h>

Go to the source code of this file.

Classes

class  OptionalString
 helper class to deal with optionally empty strings More...
 
class  Ssl_init_callback
 
class  Ssl_init_callback_server_main
 Class to encasulate callbacks for init/reinit for client server connection port. More...
 
class  Ssl_init_callback_server_admin
 Class to encasulate callbacks for init/reinit for admin connection port. More...
 

Enumerations

enum class  TLS_version { TLSv12 = 0 , TLSv13 }
 

Functions

bool validate_tls_version (const char *val)
 Helper method to validate values of –tls-version and –admin-tls-version. More...
 
bool validate_ciphers (const char *option, const char *val, TLS_version version)
 Helper method to validate values of –ssl-cipher and –admin-ssl-cipher. More...
 

Variables

std::atomic_bool g_admin_ssl_configured
 The runtime value of whether admin TLS used different config or not. More...
 
bool opt_admin_ssl_configured
 The configure time value of whether admin TLS used different config or not. More...
 
std::string mysql_main_channel
 
std::string mysql_admin_channel
 
bool opt_tls_certificates_enforced_validation
 SSL context options. More...
 
Ssl_init_callback_server_main server_main_callback
 
Ssl_init_callback_server_admin server_admin_callback
 

Enumeration Type Documentation

◆ TLS_version

enum class TLS_version
strong
Enumerator
TLSv12 
TLSv13 

Function Documentation

◆ validate_ciphers()

bool validate_ciphers ( const char *  option,
const char *  val,
TLS_version  version 
)

Helper method to validate values of –ssl-cipher and –admin-ssl-cipher.

◆ validate_tls_version()

bool validate_tls_version ( const char *  val)

Helper method to validate values of –tls-version and –admin-tls-version.

Variable Documentation

◆ g_admin_ssl_configured

std::atomic_bool g_admin_ssl_configured
extern

The runtime value of whether admin TLS used different config or not.

◆ mysql_admin_channel

std::string mysql_admin_channel
extern

◆ mysql_main_channel

std::string mysql_main_channel
extern

◆ opt_admin_ssl_configured

bool opt_admin_ssl_configured
extern

The configure time value of whether admin TLS used different config or not.

The value for this is determined during system variable update. True means that the ADMIN channel is using its own TLS configuration. False means that the ADMIN channel is reusing the main channel's TLS configuration. To put this value into effect (and update g_admin_ssl_configured) one needs to execute the "ALTER INSTANCE RELOAD TLS" SQL command.

◆ opt_tls_certificates_enforced_validation

bool opt_tls_certificates_enforced_validation
extern

SSL context options.

◆ server_admin_callback

Ssl_init_callback_server_admin server_admin_callback
extern

◆ server_main_callback

Ssl_init_callback_server_main server_main_callback
extern