MySQL 9.1.0
Source Code Documentation
anonymous_namespace{certificate_generator.cc} Namespace Reference

Classes

struct  OsslDeleter
 
struct  OsslDeleter< BIO >
 
struct  OsslDeleter< OSSL_DECODER_CTX >
 
struct  OsslDeleter< OSSL_ENCODER_CTX >
 
struct  OsslDeleter< X509_EXTENSION >
 

Typedefs

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

Functions

std::string read_bio_to_string (BIO *bio)
 
template<typename F , typename... Args>
std::string write_custom_pem_to_string (F &&pem_to_bio_func, Args &&...args)
 Get string representation of a PEM (certificate or key) object. More...
 

Variables

constexpr const std::array rsa_key_sizes {2048, 2048, 2048, 3072, 7680, 15360}
 

Typedef Documentation

◆ EvpPkey

using anonymous_namespace{certificate_generator.cc}::EvpPkey = typedef CertificateGenerator::EvpPkey

◆ OsslUniquePtr

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

◆ X509Cert

using anonymous_namespace{certificate_generator.cc}::X509Cert = typedef CertificateGenerator::X509Cert

Function Documentation

◆ read_bio_to_string()

std::string anonymous_namespace{certificate_generator.cc}::read_bio_to_string ( BIO *  bio)

◆ write_custom_pem_to_string()

template<typename F , typename... Args>
std::string anonymous_namespace{certificate_generator.cc}::write_custom_pem_to_string ( F &&  pem_to_bio_func,
Args &&...  args 
)

Get string representation of a PEM (certificate or key) object.

Parameters
[in]pem_to_bio_funcCallback that will be used to convert PEM to BIO.
[in]argsArgument pack that will be forwarded to the pem_to_bio_func.
Exceptions
std::runtime_errorPEM to string conversion failed.
Returns
PEM object string representation.

Variable Documentation

◆ rsa_key_sizes

constexpr const std::array anonymous_namespace{certificate_generator.cc}::rsa_key_sizes {2048, 2048, 2048, 3072, 7680, 15360}
constexpr