From 1179a65ce6f48f04b1a3d792b8e0b7c35179f145 Mon Sep 17 00:00:00 2001 From: Pierre Fenoll Date: Wed, 6 Aug 2025 09:41:50 +0200 Subject: [PATCH] Follow rustls@0.24 features changes Signed-off-by: Pierre Fenoll --- Cargo.toml | 6 +++--- src/tls.rs | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 29f92b3ee..2ed69a236 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -148,9 +148,9 @@ native-tls-crate = { version = "0.2.10", optional = true, package = "native-tls" tokio-native-tls = { version = "0.3.0", optional = true } # rustls-tls -hyper-rustls = { version = "0.27.0", default-features = false, optional = true, features = ["http1", "tls12"] } -rustls = { version = "0.23.4", optional = true, default-features = false, features = ["std", "tls12"] } -tokio-rustls = { version = "0.26", optional = true, default-features = false, features = ["tls12"] } +hyper-rustls = { git = "https://github.com/fenollp/hyper-rustls.git", branch = "rustls-0.24", default-features = false, optional = true, features = ["http1", "tls12"] } +rustls = { git = "https://github.com/rustls/rustls.git", rev = "30f3753a70c3b138841675b6381c0b63a3005414", optional = true, default-features = false, features = ["std", "tls12"] } +tokio-rustls = { git = "https://github.com/fenollp/tokio-rustls.git", branch = "rustls-0.24", optional = true, default-features = false, features = ["tls12"] } webpki-roots = { version = "1", optional = true } rustls-native-certs = { version = "0.8.0", optional = true } diff --git a/src/tls.rs b/src/tls.rs index e14d31008..26eab54df 100644 --- a/src/tls.rs +++ b/src/tls.rs @@ -655,6 +655,10 @@ impl ServerCertVerifier for NoVerifier { SignatureScheme::ED448, ] } + + fn request_ocsp_response(&self) -> bool { + false + } } #[cfg(feature = "__rustls")] @@ -720,6 +724,10 @@ impl ServerCertVerifier for IgnoreHostname { fn supported_verify_schemes(&self) -> Vec { self.signature_algorithms.supported_schemes() } + + fn request_ocsp_response(&self) -> bool { + todo!() + } } /// Hyper extension carrying extra TLS layer information.