Function validate_tls_config
Source pub fn validate_tls_config(
ssl_mode: SslMode,
tls_config: &TlsConfig,
) -> Result<(), Error>
Expand description
Validate TLS configuration for the given SSL mode.
§Arguments
ssl_mode - The requested SSL mode
tls_config - The TLS configuration
§Returns
Ok(()) if configuration is valid, Err(_) with details if not.