class TlsChannelCredentialsOptions

Defined at line 167 of file ../../third_party/grpc/src/include/grpcpp/security/tls_credentials_options.h

Contains configurable options on the client side.

Client side doesn't need to always use certificate provider. When the

certificate provider is not set, we will use the root certificates stored

in the system default locations, and assume client won't provide any

identity certificates(single side TLS).

It is used for experimental purposes for now and it is subject to change.

Public Methods

void set_verify_server_certs (bool verify_server_certs)

Sets the decision of whether to do a crypto check on the server certs.

The default is true.

void set_sni_override (std::optional<std::string> sni_override)

Overrides the SNI that the client sends in the TLS handshake. nullopt

indicates that SNI should not be overridden. An empty string value

indicates that SNI should not be sent at all. The default is nullopt.