MySQL 8.0.40
Source Code Documentation
anonymous_namespace{tls_server_context.cc} Namespace Reference

Classes

struct  OsslDeleter
 
struct  OsslDeleter< BIO >
 
struct  OsslDeleter< EVP_PKEY >
 
struct  OsslDeleter< EVP_PKEY_CTX >
 
struct  OsslDeleter< OSSL_DECODER_CTX >
 

Typedefs

template<class T >
using OsslUniquePtr = std::unique_ptr< T, OsslDeleter< T > >
 

Functions

stdx::expected< int, std::error_code > get_rsa_key_size (X509 *x509)
 get the key size of an RSA key. More...
 
stdx::expected< void, std::error_code > set_dh_params_from_filename (SSL_CTX *ssl_ctx, const std::string &dh_params)
 set DH params from filename to a SSL_CTX. More...
 
stdx::expected< void, std::error_code > set_auto_dh_params (SSL_CTX *ssl_ctx)
 set auto DH params at SSL_CTX. More...
 

Variables

const SSL_METHOD * server_method
 

Typedef Documentation

◆ OsslUniquePtr

template<class T >
using anonymous_namespace{tls_server_context.cc}::OsslUniquePtr = typedef std::unique_ptr<T, OsslDeleter<T> >

Function Documentation

◆ get_rsa_key_size()

stdx::expected< int, std::error_code > anonymous_namespace{tls_server_context.cc}::get_rsa_key_size ( X509 *  x509)

get the key size of an RSA key.

Parameters
x509a non-null pointer to RSA-key wrapped in a X509 struct.
Returns
a key-size of RSA key on success, a std::error_code on failure.

◆ set_auto_dh_params()

stdx::expected< void, std::error_code > anonymous_namespace{tls_server_context.cc}::set_auto_dh_params ( SSL_CTX *  ssl_ctx)

set auto DH params at SSL_CTX.

◆ set_dh_params_from_filename()

stdx::expected< void, std::error_code > anonymous_namespace{tls_server_context.cc}::set_dh_params_from_filename ( SSL_CTX *  ssl_ctx,
const std::string &  dh_params 
)

set DH params from filename to a SSL_CTX.

ensures that the DH param has at least kMinDhKeySize bits.

Returns
nothing on success, std::error_code on error.

Variable Documentation

◆ server_method

const SSL_METHOD* anonymous_namespace{tls_server_context.cc}::server_method
Initial value:
=
TLS_server_method()