()
| 50 | } |
| 51 | |
| 52 | fn client_config() -> ClientConfig { |
| 53 | let provider = rustls::crypto::CryptoProvider::get_default() |
| 54 | .cloned() |
| 55 | .unwrap_or_else(|| Arc::new(rustls::crypto::ring::default_provider())); |
| 56 | |
| 57 | ClientConfig::builder_with_provider(provider) |
| 58 | .with_protocol_versions(rustls::DEFAULT_VERSIONS) |
| 59 | .expect("Failed to set supported TLS versions") |
| 60 | .with_root_certificates(create_default_root_cert_store()) |
| 61 | .with_no_client_auth() |
| 62 | } |
| 63 | |
| 64 | static USER_AGENT: LazyLock<String> = LazyLock::new(|| { |
| 65 | let name = current_exe() |
no test coverage detected