C++ Server-Side SDK
LaunchDarkly SDK
|
#include <http_properties_builder.hpp>
Public Member Functions | |
TlsBuilder () | |
TlsBuilder (built::TlsOptions const &tls) | |
TlsBuilder & | SkipVerifyPeer (bool skip_verify_peer) |
TlsBuilder & | CustomCAFile (std::string custom_ca_file) |
built::TlsOptions | Build () const |
Class used for building TLS options used within HttpProperties.
SDK | The SDK type to build options for. This affects the default values of the built options. |
launchdarkly::config::shared::builders::TlsBuilder< SDK >::TlsBuilder |
Construct a new TlsBuilder. The builder will use the default properties based on the SDK type. Setting a property will override the default value.
launchdarkly::config::shared::builders::TlsBuilder< SDK >::TlsBuilder | ( | built::TlsOptions const & | tls | ) |
Create a TLS builder from an initial set of options. This can be useful when extending a set of options for a request.
tls | The TLS options to start with. |
built::TlsOptions launchdarkly::config::shared::builders::TlsBuilder< SDK >::Build |
Builds the TLS options.
TlsBuilder< SDK > & launchdarkly::config::shared::builders::TlsBuilder< SDK >::CustomCAFile | ( | std::string | custom_ca_file | ) |
Path to a file containing one or more CAs to verify the peer with. The certificate(s) must be PEM-encoded.
By default, the SDK uses the system's root CA bundle.
If the empty string is passed, this function will clear any existing CA bundle path previously set, and the system's root CA bundle will be used.
custom_ca_file | File path. |
TlsBuilder< SDK > & launchdarkly::config::shared::builders::TlsBuilder< SDK >::SkipVerifyPeer | ( | bool | skip_verify_peer | ) |
Whether to skip verifying the remote peer's certificates.
skip_verify_peer | True to skip verification, false to verify. |