userver: crypto::SslCtx Class Reference
Loading...
Searching...
No Matches
crypto::SslCtx Class Reference

#include <userver/crypto/ssl_ctx.hpp>

Detailed Description

SSL context

Definition at line 22 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
void SetHttpVersion (http::HttpVersion)
std::span< const unsigned char > GetAlpn () 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={})

The documentation for this class was generated from the following file: