Skip to content

Commit 2a11b56

Browse files
committed
Fix bug in rustls-no-provider
1 parent e196929 commit 2a11b56

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Unreleased
22

3+
* Fix bug in `rustls-no-provider` when disabling ring (#973)
4+
35
# 3.0.3
46

57
* Use the same data in CONNECT and Host header for proxied requests (#967)

src/tls/rustls.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ fn build_config(tls_config: &TlsConfig) -> Arc<ClientConfig> {
9898
.rustls_crypto_provider
9999
.clone()
100100
.or(rustls::crypto::CryptoProvider::get_default().cloned())
101-
.unwrap_or(ring_if_enabled());
101+
.unwrap_or_else(ring_if_enabled);
102102

103103
#[cfg(feature = "_ring")]
104104
fn ring_if_enabled() -> Arc<CryptoProvider> {

0 commit comments

Comments
 (0)