Replace openssl with rustls

This commit is contained in:
Jackson Coxson
2025-04-05 14:10:41 -06:00
parent 031f54bab7
commit 21939ae34a
8 changed files with 342 additions and 314 deletions

View File

@@ -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"] }

View File

@@ -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,