Warn if legacy compiled with rustls

This commit is contained in:
Jackson Coxson
2025-11-17 12:44:32 -07:00
parent 59c3c3a12c
commit db4547e0da

View File

@@ -480,6 +480,12 @@ impl Idevice {
) -> Result<(), IdeviceError> { ) -> Result<(), IdeviceError> {
#[cfg(feature = "rustls")] #[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() { if CryptoProvider::get_default().is_none() {
// rust-analyzer will choke on this block, don't worry about it // rust-analyzer will choke on this block, don't worry about it
let crypto_provider: CryptoProvider = { let crypto_provider: CryptoProvider = {