MySQL  8.0.27
Source Code Documentation
sslopt-vars.h File Reference
#include <stdio.h>
#include "m_string.h"
#include "my_inttypes.h"
#include "mysql.h"
#include "template_utils.h"
#include "typelib.h"
#include <stddef.h>
#include <sys/types.h>
#include "my_macros.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)
 

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
 
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

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_tls_ciphersuites

char* opt_tls_ciphersuites = 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:57
#define array_elements(A)
Definition: validate_password_imp.cc:45

◆ 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: m_string.h:52

◆ 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:52

◆ SSL_SET_OPTIONS_ERROR

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