MySQL 8.4.2
Source Code Documentation
xcom_ssl_transport.h File Reference
#include <openssl/err.h>
#include <openssl/ssl.h>

Go to the source code of this file.

Macros

#define SSL_SUCCESS   1
 
#define SSL_ERROR   0
 

Enumerations

enum  ssl_enum_mode_options {
  INVALID_SSL_MODE = -1 , SSL_DISABLED = 1 , SSL_PREFERRED , SSL_REQUIRED ,
  SSL_VERIFY_CA , SSL_VERIFY_IDENTITY , LAST_SSL_MODE , INVALID_SSL_MODE = -1 ,
  SSL_DISABLED = 1 , SSL_PREFERRED , SSL_REQUIRED , SSL_VERIFY_CA ,
  SSL_VERIFY_IDENTITY , LAST_SSL_MODE
}
 
enum  ssl_enum_fips_mode_options {
  INVALID_SSL_FIPS_MODE = -1 , FIPS_MODE_OFF = 0 , FIPS_MODE_ON , FIPS_MODE_STRICT ,
  LAST_SSL_FIPS_MODE , INVALID_SSL_FIPS_MODE = -1 , SSL_FIPS_MODE_OFF = 0 , SSL_FIPS_MODE_ON ,
  SSL_FIPS_MODE_STRICT , LAST_SSL_FIPS_MODE
}
 

Functions

int xcom_get_ssl_fips_mode (const char *mode)
 
int xcom_set_ssl_fips_mode (int mode)
 
int xcom_get_ssl_mode (const char *mode)
 
int xcom_set_ssl_mode (int mode)
 
int xcom_init_ssl (const char *server_key_file, const char *server_cert_file, const char *client_key_file, const char *client_cert_file, const char *ca_file, const char *ca_path, const char *crl_file, const char *crl_path, const char *cipher, const char *tls_version, const char *tls_ciphersuites)
 
void xcom_cleanup_ssl ()
 
void xcom_destroy_ssl ()
 
int xcom_use_ssl ()
 
int ssl_verify_server_cert (SSL *ssl, const char *server_hostname)
 

Variables

SSL_CTX * server_ctx
 
SSL_CTX * client_ctx
 

Macro Definition Documentation

◆ SSL_ERROR

#define SSL_ERROR   0

◆ SSL_SUCCESS

#define SSL_SUCCESS   1

Enumeration Type Documentation

◆ ssl_enum_fips_mode_options

Enumerator
INVALID_SSL_FIPS_MODE 
FIPS_MODE_OFF 
FIPS_MODE_ON 
FIPS_MODE_STRICT 
LAST_SSL_FIPS_MODE 
INVALID_SSL_FIPS_MODE 
SSL_FIPS_MODE_OFF 
SSL_FIPS_MODE_ON 
SSL_FIPS_MODE_STRICT 
LAST_SSL_FIPS_MODE 

◆ ssl_enum_mode_options

Enumerator
INVALID_SSL_MODE 
SSL_DISABLED 
SSL_PREFERRED 
SSL_REQUIRED 
SSL_VERIFY_CA 
SSL_VERIFY_IDENTITY 
LAST_SSL_MODE 
INVALID_SSL_MODE 
SSL_DISABLED 
SSL_PREFERRED 
SSL_REQUIRED 
SSL_VERIFY_CA 
SSL_VERIFY_IDENTITY 
LAST_SSL_MODE 

Function Documentation

◆ ssl_verify_server_cert()

int ssl_verify_server_cert ( SSL *  ssl,
const char *  server_hostname 
)

◆ xcom_cleanup_ssl()

void xcom_cleanup_ssl ( )

◆ xcom_destroy_ssl()

void xcom_destroy_ssl ( )

◆ xcom_get_ssl_fips_mode()

int xcom_get_ssl_fips_mode ( const char *  mode)

◆ xcom_get_ssl_mode()

int xcom_get_ssl_mode ( const char *  mode)

◆ xcom_init_ssl()

int xcom_init_ssl ( const char *  server_key_file,
const char *  server_cert_file,
const char *  client_key_file,
const char *  client_cert_file,
const char *  ca_file,
const char *  ca_path,
const char *  crl_file,
const char *  crl_path,
const char *  cipher,
const char *  tls_version,
const char *  tls_ciphersuites 
)

◆ xcom_set_ssl_fips_mode()

int xcom_set_ssl_fips_mode ( int  mode)

◆ xcom_set_ssl_mode()

int xcom_set_ssl_mode ( int  mode)

◆ xcom_use_ssl()

int xcom_use_ssl ( )

Variable Documentation

◆ client_ctx

SSL_CTX* client_ctx
extern

◆ server_ctx

SSL_CTX* server_ctx
extern