23 #ifndef SSLOPT_VARS_INCLUDED 24 #define SSLOPT_VARS_INCLUDED 37 #if defined(HAVE_OPENSSL) 40 #error This header is supposed to be used only in the client 45 #include <sys/types.h> 53 const char *ssl_mode_names_lib[] = {
"DISABLED",
"PREFERRED",
"REQUIRED",
54 "VERIFY_CA",
"VERIFY_IDENTITY",
NullS};
56 ssl_mode_names_lib,
NULL};
58 const char *ssl_fips_mode_names_lib[] = {
"OFF",
"ON",
"STRICT",
NullS};
60 "", ssl_fips_mode_names_lib,
NULL};
73 static bool ssl_mode_set_explicitly =
false;
75 static inline int set_client_ssl_options(
MYSQL *
mysql) {
83 "WARNING: no verification of server certificate will be done. " 84 "Use --ssl-mode=VERIFY_CA or VERIFY_IDENTITY.\n");
105 #define SSL_SET_OPTIONS(mysql) set_client_ssl_options(mysql) 107 #define SSL_SET_OPTIONS(mysql) \ static char * opt_ssl_cipher
Definition: ssl_acceptor_context.cc:49
static char * opt_ssl_crl
Definition: ssl_acceptor_context.cc:50
static char * opt_ssl_crlpath
Definition: ssl_acceptor_context.cc:51
Some integer typedefs for easier portability.
ulong opt_ssl_fips_mode
Definition: mysqld.cc:1684
#define CR_SSL_FIPS_MODE_ERR
Definition: errmsg.h:125
static char * opt_tls_version
Definition: ssl_acceptor_context.cc:51
#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:50
static const char * opt_ssl_key
Definition: ssl_acceptor_context.cc:47
This file defines the client API to MySQL and also the ABI of the dynamically linked libmysqlclient...
constexpr size_t array_elements(T(&)[N]) noexcept
Definition: my_macros.h:77
static const char * opt_ssl_cert
Definition: ssl_acceptor_context.cc:48
unsigned int STDCALL mysql_errno(MYSQL *mysql)
Definition: client.cc:8159
unsigned int uint
Definition: uca-dump.cc:29
const char * SSL_SET_OPTIONS_ERROR
Definition: sslopt-vars.h:112
static const char * opt_ssl_ca
SSL context options.
Definition: ssl_acceptor_context.cc:46
static char * opt_ssl_capath
Definition: ssl_acceptor_context.cc:49
int STDCALL mysql_options(MYSQL *mysql, enum mysql_option option, const void *arg)
Definition: client.cc:7579
static char * opt_tls_ciphersuites
Definition: ssl_acceptor_context.cc:50
#define NULL
Definition: types.h:55
static MYSQL mysql
Definition: mysql.cc:152
unsigned long ulong
Definition: my_inttypes.h:48
bool STDCALL mysql_ssl_set(MYSQL *mysql, const char *key, const char *cert, const char *ca, const char *capath, const char *cipher)
Definition: client.cc:3255