Realm C++ SDK Version v2.2.0
Public Types | Public Attributes | List of all members

realm::networking::default_socket_provider::configuration Struct Reference

Public Types

using SSLVerifyCallback = bool(const std::string &server_address, internal::bridge::realm::sync_config::proxy_config::port_type server_port, const char *pem_data, size_t pem_size, int preverify_ok, int depth)
 

Public Attributes

std::optional< std::map< std::string, std::string > > custom_http_headers
 
std::optional<::realm::internal::bridge::realm::sync_config::proxy_configproxy_config
 
bool client_validate_ssl = true
 
std::optional< std::string > ssl_trust_certificate_path
 
std::function< SSLVerifyCallback > ssl_verify_callback
 

Member Data Documentation

◆ client_validate_ssl

bool realm::networking::default_socket_provider::configuration::client_validate_ssl = true

If set to false, no validation will take place and the client will accept any certificate.

◆ custom_http_headers

std::optional<std::map<std::string, std::string> > realm::networking::default_socket_provider::configuration::custom_http_headers

Extra HTTP headers to be set on each request to Atlas Device Sync when using the internal HTTP client.

◆ proxy_config

std::optional<::realm::internal::bridge::realm::sync_config::proxy_config> realm::networking::default_socket_provider::configuration::proxy_config

Network proxy configuration to be set on each request.

◆ ssl_trust_certificate_path

std::optional<std::string> realm::networking::default_socket_provider::configuration::ssl_trust_certificate_path

Used for providing your own root certificate.

◆ ssl_verify_callback

std::function<SSLVerifyCallback> realm::networking::default_socket_provider::configuration::ssl_verify_callback

ssl_verify_callback is used to implement custom SSL certificate verification. It is only used if the protocol is SSL & ssl_trust_certificate_path is not set.


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