MySQL 9.0.0
Source Code Documentation
sslopt-vars.h File Reference
#include <stddef.h>
#include <stdio.h>
#include <sys/types.h>
#include <functional>
#include "my_inttypes.h"
#include "my_macros.h"
#include "mysql.h"
#include "nulls.h"
#include "template_utils.h"
#include "typelib.h"

Go to the source code of this file.

Macros

#define SSL_SET_OPTIONS(mysql)   set_client_ssl_options(mysql)
 

Functions

static int set_client_ssl_options (MYSQL *mysql)
 
static bool ssl_client_check_post_connect_ssl_setup (MYSQL *mysql, std::function< void(const char *)> report_error)
 

Variables

const char * ssl_mode_names_lib []
 
TYPELIB ssl_mode_typelib
 
const char * ssl_fips_mode_names_lib [] = {"OFF", "ON", "STRICT", NullS}
 
TYPELIB ssl_fips_mode_typelib
 
static uint opt_ssl_mode = SSL_MODE_PREFERRED
 
static char * opt_ssl_ca = nullptr
 
static char * opt_ssl_capath = nullptr
 
static char * opt_ssl_cert = nullptr
 
static char * opt_ssl_cipher = nullptr
 
static char * opt_tls_ciphersuites = nullptr
 
static char * opt_ssl_key = nullptr
 
static char * opt_ssl_crl = nullptr
 
static char * opt_ssl_crlpath = nullptr
 
static char * opt_tls_version = nullptr
 
static ulong opt_ssl_fips_mode = SSL_FIPS_MODE_OFF
 
static bool ssl_mode_set_explicitly = false
 
static char * opt_ssl_session_data = nullptr
 
static bool opt_ssl_session_data_continue_on_failed_reuse = false
 
static char * opt_tls_sni_servername = nullptr
 
const char * SSL_SET_OPTIONS_ERROR = "Failed to set ssl related options.\n"
 

Macro Definition Documentation

◆ SSL_SET_OPTIONS

#define SSL_SET_OPTIONS (   mysql)    set_client_ssl_options(mysql)

Function Documentation

◆ set_client_ssl_options()

static int set_client_ssl_options ( MYSQL mysql)
inlinestatic

◆ ssl_client_check_post_connect_ssl_setup()

static bool ssl_client_check_post_connect_ssl_setup ( MYSQL mysql,
std::function< void(const char *)>  report_error 
)
inlinestatic

Variable Documentation

◆ opt_ssl_ca

char* opt_ssl_ca = nullptr
static

◆ opt_ssl_capath

char* opt_ssl_capath = nullptr
static

◆ opt_ssl_cert

char* opt_ssl_cert = nullptr
static

◆ opt_ssl_cipher

char* opt_ssl_cipher = nullptr
static

◆ opt_ssl_crl

char* opt_ssl_crl = nullptr
static

◆ opt_ssl_crlpath

char* opt_ssl_crlpath = nullptr
static

◆ opt_ssl_fips_mode

ulong opt_ssl_fips_mode = SSL_FIPS_MODE_OFF
static

◆ opt_ssl_key

char* opt_ssl_key = nullptr
static

◆ opt_ssl_mode

uint opt_ssl_mode = SSL_MODE_PREFERRED
static

◆ opt_ssl_session_data

char* opt_ssl_session_data = nullptr
static

◆ opt_ssl_session_data_continue_on_failed_reuse

bool opt_ssl_session_data_continue_on_failed_reuse = false
static

◆ opt_tls_ciphersuites

char* opt_tls_ciphersuites = nullptr
static

◆ opt_tls_sni_servername

char* opt_tls_sni_servername = nullptr
static

◆ opt_tls_version

char* opt_tls_version = nullptr
static

◆ ssl_fips_mode_names_lib

const char* ssl_fips_mode_names_lib[] = {"OFF", "ON", "STRICT", NullS}

◆ ssl_fips_mode_typelib

TYPELIB ssl_fips_mode_typelib
Initial value:
const char * ssl_fips_mode_names_lib[]
Definition: sslopt-vars.h:48
#define array_elements(A)
Definition: validate_password_imp.cc:48

◆ ssl_mode_names_lib

const char* ssl_mode_names_lib[]
Initial value:
= {"DISABLED", "PREFERRED", "REQUIRED",
"VERIFY_CA", "VERIFY_IDENTITY", NullS}
#define NullS
Definition of the null string (a null pointer of type char *), used in some of our string handling co...
Definition: nulls.h:33

◆ ssl_mode_set_explicitly

bool ssl_mode_set_explicitly = false
static

◆ ssl_mode_typelib

TYPELIB ssl_mode_typelib
Initial value:
const char * ssl_mode_names_lib[]
Definition: sslopt-vars.h:43

◆ SSL_SET_OPTIONS_ERROR

const char* SSL_SET_OPTIONS_ERROR = "Failed to set ssl related options.\n"