pub struct PairingFile {
pub device_certificate: CertificateDer<'static>,
pub host_private_key: Vec<u8>,
pub host_certificate: CertificateDer<'static>,
pub root_private_key: Vec<u8>,
pub root_certificate: CertificateDer<'static>,
pub system_buid: String,
pub host_id: String,
pub escrow_bag: Option<Vec<u8>>,
pub wifi_mac_address: String,
pub udid: Option<String>,
}Expand description
Represents a complete iOS device pairing record
Contains all cryptographic materials and identifiers needed for secure communication with an iOS device, including certificates, private keys, and device identifiers.
Fields§
§device_certificate: CertificateDer<'static>Device’s certificate in DER format
host_private_key: Vec<u8>Host’s private key in DER format
host_certificate: CertificateDer<'static>Host’s certificate in DER format
root_private_key: Vec<u8>Root CA’s private key in DER format
root_certificate: CertificateDer<'static>Root CA’s certificate in DER format
system_buid: StringSystem Build Unique Identifier
host_id: StringHost identifier
escrow_bag: Option<Vec<u8>>Escrow bag allowing for access while locked
wifi_mac_address: StringDevice’s WiFi MAC address
udid: Option<String>Device’s Unique Device Identifier (optional)
Implementations§
Source§impl PairingFile
impl PairingFile
Sourcepub fn read_from_file(path: impl AsRef<Path>) -> Result<Self, IdeviceError>
pub fn read_from_file(path: impl AsRef<Path>) -> Result<Self, IdeviceError>
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, IdeviceError>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, IdeviceError>
Sourcepub fn from_value(v: &Value) -> Result<Self, IdeviceError>
pub fn from_value(v: &Value) -> Result<Self, IdeviceError>
Trait Implementations§
Source§impl Clone for PairingFile
impl Clone for PairingFile
Source§fn clone(&self) -> PairingFile
fn clone(&self) -> PairingFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PairingFile
impl RefUnwindSafe for PairingFile
impl Send for PairingFile
impl Sync for PairingFile
impl Unpin for PairingFile
impl UnsafeUnpin for PairingFile
impl UnwindSafe for PairingFile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more