MySQL 8.0.31
Source Code Documentation
tls_server_context.cc File Reference
#include "mysql/harness/tls_server_context.h"
#include <array>
#include <memory>
#include <string>
#include <vector>
#include <openssl/dh.h>
#include <openssl/err.h>
#include <openssl/pem.h>
#include <openssl/safestack.h>
#include <openssl/ssl.h>
#include "mysql/harness/stdx/expected.h"
#include "mysql/harness/tls_error.h"
#include "mysql/harness/utility/string.h"
#include "openssl_version.h"
#include <openssl/core_names.h>
#include <openssl/decoder.h>

Classes

struct  anonymous_namespace{tls_server_context.cc}::OsslDeleter< OSSL_DECODER_CTX >
 
struct  anonymous_namespace{tls_server_context.cc}::OsslDeleter< EVP_PKEY_CTX >
 
struct  anonymous_namespace{tls_server_context.cc}::OsslDeleter< EVP_PKEY >
 
struct  anonymous_namespace{tls_server_context.cc}::OsslDeleter< BIO >
 

Namespaces

namespace  anonymous_namespace{tls_server_context.cc}
 

Typedefs

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

Functions

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. More...
 
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. More...
 
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. More...
 

Variables

constexpr int kMinRsaKeySize {2048}
 
constexpr int kMinDhKeySize {1024}
 
const SSL_METHOD * anonymous_namespace{tls_server_context.cc}::server_method
 

Variable Documentation

◆ kMinDhKeySize

constexpr int kMinDhKeySize {1024}
constexpr

◆ kMinRsaKeySize

constexpr int kMinRsaKeySize {2048}
constexpr