#include <userver/crypto/ssl_ctx.hpp>
SSL context
Definition at line 20 of file ssl_ctx.hpp.
Public Member Functions | |
SslCtx (SslCtx &&) noexcept | |
SslCtx & | operator= (SslCtx &&) noexcept |
SslCtx (const SslCtx &)=delete | |
SslCtx & | operator= (const SslCtx &)=delete |
void * | GetRawSslCtx () const noexcept |
Static Public Member Functions | |
static SslCtx | CreateServerTlsContext (const crypto::CertificatesChain &cert_chain, const crypto::PrivateKey &key, const std::vector< crypto::Certificate > &extra_cert_authorities={}) |
static SslCtx | CreateClientTlsContext (std::string_view server_name) |
static SslCtx | CreateClientTlsContext (std::string_view server_name, const crypto::Certificate &cert, const crypto::PrivateKey &key, const std::vector< crypto::Certificate > &extra_cert_authorities={}) |