MySQL 9.1.0
Source Code Documentation
ssl_acceptor_context_data.cc File Reference
#include <algorithm>
#include "openssl/ssl.h"
#include "openssl/x509_vfy.h"
#include "mysql/components/services/log_builtins.h"
#include "mysqld_error.h"
#include "sql/ssl_acceptor_context_data.h"

Functions

static void report_errors ()
 
static bool verify_individual_certificate (const char *ssl_cert, const char *ssl_ca, const char *ssl_capath, const char *crl, const char *crl_path)
 
static bool verify_ca_certificates (const char *ssl_ca, const char *ssl_capath, const char *ssl_crl, const char *ssl_crl_path)
 
static char * my_asn1_time_to_string (ASN1_TIME *time, char *buf, int len)
 
std::string Ssl_ctx_property_name (Ssl_acceptor_context_property_type property_type)
 Note: Add new value before "last" and update Ssl_acceptor_context_propert_type_names. More...
 
Ssl_acceptor_context_property_typeoperator++ (Ssl_acceptor_context_property_type &property_type)
 Increment operator for Ssl_acceptor_context_type Used by iterator. More...
 

Variables

static std::string Ssl_acceptor_context_propert_type_names []
 

Function Documentation

◆ my_asn1_time_to_string()

static char * my_asn1_time_to_string ( ASN1_TIME *  time,
char *  buf,
int  len 
)
static

◆ operator++()

Increment operator for Ssl_acceptor_context_type Used by iterator.

Parameters
[in,out]property_typeCurrent position in Ssl_acceptor_context_type
Returns
incremented value for property_type

◆ report_errors()

static void report_errors ( )
static

◆ Ssl_ctx_property_name()

std::string Ssl_ctx_property_name ( Ssl_acceptor_context_property_type  property_type)

Note: Add new value before "last" and update Ssl_acceptor_context_propert_type_names.

Fetch a string representation of SSL acceptor context property

Parameters
[in]property_typeProperty type
Returns
name of the property

◆ verify_ca_certificates()

static bool verify_ca_certificates ( const char *  ssl_ca,
const char *  ssl_capath,
const char *  ssl_crl,
const char *  ssl_crl_path 
)
static

◆ verify_individual_certificate()

static bool verify_individual_certificate ( const char *  ssl_cert,
const char *  ssl_ca,
const char *  ssl_capath,
const char *  crl,
const char *  crl_path 
)
static

Variable Documentation

◆ Ssl_acceptor_context_propert_type_names

std::string Ssl_acceptor_context_propert_type_names[]
static
Initial value:
= {
"Ssl_accept_renegotiates",
"Ssl_accepts",
"Ssl_callback_cache_hits",
"Ssl_client_connects",
"Ssl_connect_renegotiates",
"Ssl_ctx_verify_depth",
"Ssl_ctx_verify_mode",
"Current_tls_ca",
"Current_tls_capath",
"Current_tls_cert",
"Current_tls_cipher",
"Current_tls_ciphersuites",
"Current_tls_crl",
"Current_tls_crlpath",
"Current_tls_key",
"Current_tls_version",
"Ssl_finished_accepts",
"Ssl_finished_connects",
"Ssl_server_not_after",
"Ssl_server_not_before",
"Ssl_session_cache_hits",
"Ssl_session_cache_misses",
"Ssl_session_cache_mode",
"Ssl_session_cache_overflows",
"Ssl_session_cache_size",
"Ssl_session_cache_timeouts",
"Ssl_used_session_cache_entries",
"Ssl_session_cache_timeout",
""}