![]() |
MySQL 26.10.0
Source Code Documentation
|
#include <assert.h>#include <openssl/crypto.h>#include <openssl/err.h>#include <openssl/evp.h>#include <openssl/opensslv.h>#include <openssl/rand.h>#include <openssl/ssl.h>#include <openssl/x509.h>#include <stdio.h>#include <string.h>#include <string>#include "m_string.h"#include "my_dbug.h"#include "my_inttypes.h"#include "my_sys.h"#include "my_thread.h"#include "mysql/my_loglevel.h"#include "mysql/psi/mysql_rwlock.h"#include "mysql/service_mysql_alloc.h"#include "mysql/strings/m_ctype.h"#include "mysys_err.h"#include "template_utils.h"#include "vio/vio_priv.h"#include <dh_ecdh_config.h>#include <tls_ciphers.h>#include "my_openssl_fips.h"Macros | |
| #define | TLS_VERSION_OPTION_SIZE 256 |
| #define | TLS_SIGALGS_COMMON_LIST |
| #define | TLS_SIGALGS_NON_FIPS_EXTRA ":ed25519:ECDSA+SHA224:RSA+SHA224" |
| #define | TLS_SIGALGS_PQC_EXTRA "ML-DSA-44:ML-DSA-65:ML-DSA-87:" |
Functions | |
| static void | report_errors () |
| const char * | sslGetErrString (enum enum_ssl_init_error e) |
| static const char * | get_sigalgs_list (bool tls_use_pqc_sign) |
| static int | vio_set_cert_stuff (SSL_CTX *ctx, const char *cert_file, const char *key_file, enum enum_ssl_init_error *error) |
| void | vio_ssl_end () |
| void | ssl_start () |
| long | process_tls_version (const char *tls_version) |
| static int | get_min_tls_version (long ssl_ctx_flags) |
| static int | get_max_tls_version (long ssl_ctx_flags) |
| static struct st_VioSSLFd * | new_VioSSLFd (const char *key_file, const char *cert_file, const char *ca_file, const char *ca_path, const char *cipher, const char *ciphersuites, bool is_client, enum enum_ssl_init_error *error, const char *crl_file, const char *crl_path, const long ssl_ctx_flags, bool tls_force_pqc, bool tls_use_pqc_sign, const char *tls_kex, const char *server_host) |
| struct st_VioSSLFd * | new_VioSSLConnectorFd (const char *key_file, const char *cert_file, const char *ca_file, const char *ca_path, const char *cipher, const char *ciphersuites, enum enum_ssl_init_error *error, const char *crl_file, const char *crl_path, const long ssl_ctx_flags, bool tls_force_pqc, bool tls_use_pqc_sign, const char *tls_kex, const char *server_host) |
| struct st_VioSSLFd * | new_VioSSLAcceptorFd (const char *key_file, const char *cert_file, const char *ca_file, const char *ca_path, const char *cipher, const char *ciphersuites, enum enum_ssl_init_error *error, const char *crl_file, const char *crl_path, const long ssl_ctx_flags, bool tls_force_pqc, bool tls_use_pqc_sign, const char *tls_kex) |
| void | free_vio_ssl_acceptor_fd (struct st_VioSSLFd *fd) |
Variables | |
| static bool | ssl_initialized = false |
| static const char * | ssl_error_string [] |
| static const char | tls_sigalgs_fips [] = TLS_SIGALGS_COMMON_LIST |
| static const char | tls_sigalgs_non_fips [] |
| #define TLS_SIGALGS_COMMON_LIST |
| #define TLS_SIGALGS_NON_FIPS_EXTRA ":ed25519:ECDSA+SHA224:RSA+SHA224" |
| #define TLS_SIGALGS_PQC_EXTRA "ML-DSA-44:ML-DSA-65:ML-DSA-87:" |
| #define TLS_VERSION_OPTION_SIZE 256 |
| void free_vio_ssl_acceptor_fd | ( | struct st_VioSSLFd * | fd | ) |
|
static |
|
static |
|
static |
| struct st_VioSSLFd * new_VioSSLAcceptorFd | ( | const char * | key_file, |
| const char * | cert_file, | ||
| const char * | ca_file, | ||
| const char * | ca_path, | ||
| const char * | cipher, | ||
| const char * | ciphersuites, | ||
| enum enum_ssl_init_error * | error, | ||
| const char * | crl_file, | ||
| const char * | crl_path, | ||
| const long | ssl_ctx_flags, | ||
| bool | tls_force_pqc, | ||
| bool | tls_use_pqc_sign, | ||
| const char * | tls_kex | ||
| ) |
| struct st_VioSSLFd * new_VioSSLConnectorFd | ( | const char * | key_file, |
| const char * | cert_file, | ||
| const char * | ca_file, | ||
| const char * | ca_path, | ||
| const char * | cipher, | ||
| const char * | ciphersuites, | ||
| enum enum_ssl_init_error * | error, | ||
| const char * | crl_file, | ||
| const char * | crl_path, | ||
| const long | ssl_ctx_flags, | ||
| bool | tls_force_pqc, | ||
| bool | tls_use_pqc_sign, | ||
| const char * | tls_kex, | ||
| const char * | server_host | ||
| ) |
|
static |
| long process_tls_version | ( | const char * | tls_version | ) |
|
static |
| void ssl_start | ( | void | ) |
| const char * sslGetErrString | ( | enum enum_ssl_init_error | e | ) |
|
static |
| void vio_ssl_end | ( | ) |
|
static |
|
static |
|
static |
|
static |