mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +01:00
Warn if legacy compiled with rustls
This commit is contained in:
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user