minor rename

This commit is contained in:
GroovieGermanikus 2023-07-31 11:14:19 +02:00
parent 40bdae5066
commit ff803fd4ef
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ impl SelfSignedTlsConfigProvider {
hostnames,
certificate,
private_key,
client_crypto: Self::build_client_crypto(),
client_crypto: Self::build_client_crypto_insecure(),
server_crypto: server_crypto,
}
}
@ -55,7 +55,7 @@ impl SelfSignedTlsConfigProvider {
(Certificate(cert.serialize_der().unwrap()), PrivateKey(key))
}
fn build_client_crypto() -> ClientConfig {
fn build_client_crypto_insecure() -> ClientConfig {
let mut client_crypto = rustls::ClientConfig::builder()
.with_safe_defaults()
// .with_root_certificates(roots)