22 static SslCtx CreateServerTlsContext(
23 const crypto::CertificatesChain& cert_chain,
28 static SslCtx CreateClientTlsContext(std::string_view server_name);
30 static SslCtx CreateClientTlsContext(
31 std::string_view server_name,
41 SslCtx(
const SslCtx&) =
delete;
44 void* GetRawSslCtx()
const noexcept;
47 void AddCertAuthorities(
const std::vector<
Certificate>& cert_authorities);
48 void EnableVerifyClientCertificate();
49 void SetServerName(std::string_view server_name);
51 void SetCertificates(
const crypto::CertificatesChain& cert_chain);
55 std::unique_ptr<Impl> impl_{};
57 explicit SslCtx(std::unique_ptr<Impl>&& impl);