TlsClientContext per destination.
More...
#include <destination_ssl_context.h>
TlsClientContext per destination.
◆ ca_file()
void DestinationTlsContext::ca_file |
( |
const std::string & |
file | ) |
|
◆ ca_path()
void DestinationTlsContext::ca_path |
( |
const std::string & |
path | ) |
|
◆ ciphers()
void DestinationTlsContext::ciphers |
( |
const std::string & |
ciphers | ) |
|
◆ crl_file()
void DestinationTlsContext::crl_file |
( |
const std::string & |
file | ) |
|
◆ crl_path()
void DestinationTlsContext::crl_path |
( |
const std::string & |
path | ) |
|
◆ curves()
void DestinationTlsContext::curves |
( |
const std::string & |
curves | ) |
|
◆ get()
TlsClientContext * DestinationTlsContext::get |
( |
const std::string & |
dest_id, |
|
|
const std::string & |
hostname |
|
) |
| |
get a TlsClientContent for a destination.
If no TlsClientContext exists for the destination, creates a TlsClientContent based on:
- verify()
- ca_file()
- ca_path()
- crl_file()
- crl_path()
- curves()
- ciphers()
If that succeeds, it the resulting TlsClientContext is cached and a pointer to it is returned.
If a TlsClientContext for the destination exists, a pointer to it is returned.
- Parameters
-
dest_id | unique identifier of a destination |
hostname | name of the destination host |
◆ verify()
void DestinationTlsContext::verify |
( |
SslVerify |
ssl_verify | ) |
|
◆ ca_file_
std::string DestinationTlsContext::ca_file_ |
|
private |
◆ ca_path_
std::string DestinationTlsContext::ca_path_ |
|
private |
◆ ciphers_
std::string DestinationTlsContext::ciphers_ |
|
private |
◆ crl_file_
std::string DestinationTlsContext::crl_file_ |
|
private |
◆ crl_path_
std::string DestinationTlsContext::crl_path_ |
|
private |
◆ curves_
std::string DestinationTlsContext::curves_ |
|
private |
◆ mtx_
std::mutex DestinationTlsContext::mtx_ |
|
private |
◆ ssl_verify_
◆ tls_contexts_
std::map<std::string, std::unique_ptr<TlsClientContext> > DestinationTlsContext::tls_contexts_ |
|
private |
The documentation for this class was generated from the following files: