From db4547e0daa491ecf4ddbe1d43b5bd46bd0e14fd Mon Sep 17 00:00:00 2001 From: Jackson Coxson Date: Mon, 17 Nov 2025 12:44:32 -0700 Subject: [PATCH] Warn if legacy compiled with rustls --- idevice/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/idevice/src/lib.rs b/idevice/src/lib.rs index e928bcb..2fab32e 100644 --- a/idevice/src/lib.rs +++ b/idevice/src/lib.rs @@ -480,6 +480,12 @@ impl Idevice { ) -> Result<(), IdeviceError> { #[cfg(feature = "rustls")] { + if legacy { + tracing::warn!( + "Compiled with rustls, but connecting to legacy device! rustls does not support old SSL, this will fail." + ); + } + if CryptoProvider::get_default().is_none() { // rust-analyzer will choke on this block, don't worry about it let crypto_provider: CryptoProvider = {