mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +01:00
Replace openssl with rustls
This commit is contained in:
@@ -11,7 +11,6 @@ simplelog = "0.12.2"
|
||||
once_cell = "1.21.1"
|
||||
tokio = { version = "1.44.1", features = ["full"] }
|
||||
libc = "0.2.171"
|
||||
openssl-sys = { version = "0.9", features = ["vendored"] }
|
||||
plist = "1.7.1"
|
||||
plist_plus = { version = "0.2.6", features = ["dynamic"] }
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ pub enum IdeviceErrorCode {
|
||||
IdeviceSuccess = 0,
|
||||
// Main library
|
||||
Socket = -1,
|
||||
Ssl = -2,
|
||||
SslSetup = -3,
|
||||
Tls = -2,
|
||||
TlsBuilderFailed = -3,
|
||||
Plist = -4,
|
||||
Utf8 = -5,
|
||||
UnexpectedResponse = -6,
|
||||
@@ -55,8 +55,8 @@ impl From<IdeviceError> for IdeviceErrorCode {
|
||||
fn from(err: IdeviceError) -> Self {
|
||||
match err {
|
||||
IdeviceError::Socket(_) => IdeviceErrorCode::Socket,
|
||||
IdeviceError::Ssl(_) => IdeviceErrorCode::Ssl,
|
||||
IdeviceError::SslSetup(_) => IdeviceErrorCode::SslSetup,
|
||||
IdeviceError::Rustls(_) => IdeviceErrorCode::Tls,
|
||||
IdeviceError::TlsBuilderFailed(_) => IdeviceErrorCode::TlsBuilderFailed,
|
||||
IdeviceError::Plist(_) => IdeviceErrorCode::Plist,
|
||||
IdeviceError::Utf8(_) => IdeviceErrorCode::Utf8,
|
||||
IdeviceError::UnexpectedResponse => IdeviceErrorCode::UnexpectedResponse,
|
||||
|
||||
Reference in New Issue
Block a user