Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions 3rdparty/omnisette/src/adi_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ pub trait ConfigurableADIProxy: ADIProxy {
pub const AKD_USER_AGENT: &str = "akd/1.0 CFNetwork/808.1.4";
pub const LOOKUP_CLIENT_INFO: &str =
"<MacBookPro13,2> <macOS;13.1;22C65> <com.apple.AuthKit/1 (com.apple.akd/1.0)>";
pub const CLIENT_INFO_HEADER: &str =
"<PC> <Windows;6.2(0,0);9200> <com.apple.AuthKit/1 (com.apple.iTunes/12.12.4.1)>";
pub const DS_ID: i64 = -2;
pub const IDENTIFIER_LENGTH: usize = 16;
pub type Identifier = [u8; IDENTIFIER_LENGTH];
Expand Down Expand Up @@ -234,7 +232,6 @@ impl dyn ADIProxy {
let response = client
.post(start_provisioning_url)
.body(sp_request)
.header("X-Mme-Client-Info", CLIENT_INFO_HEADER)
.send()
.await?
.plist()
Expand Down Expand Up @@ -268,7 +265,6 @@ impl dyn ADIProxy {
let response = client
.post(finish_provisioning_url)
.body(fp_request)
.header("X-Mme-Client-Info", CLIENT_INFO_HEADER)
.send()
.await?
.plist()
Expand Down Expand Up @@ -370,10 +366,6 @@ impl<ProxyType: ADIProxy + 'static> AnisetteHeadersProvider
"X-Apple-I-SRL-NO".to_string(),
adi_proxy.get_serial_number(),
);
headers.insert(
"X-Mme-Client-Info".to_string(),
CLIENT_INFO_HEADER.to_string(),
);
headers.insert(
"X-Mme-Device-Id".to_string(),
adi_proxy.get_device_identifier(),
Expand Down
5 changes: 2 additions & 3 deletions 3rdparty/omnisette/src/remote_anisette_v3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use std::{collections::HashMap, fs, io::Cursor, path::PathBuf};

use crate::adi_proxy::{CLIENT_INFO_HEADER, LOOKUP_CLIENT_INFO};
use crate::adi_proxy::LOOKUP_CLIENT_INFO;
use async_trait::async_trait;
use base64::Engine;
use base64::engine::general_purpose;
Expand Down Expand Up @@ -188,13 +188,12 @@ impl AnisetteClient {
pub async fn new(url: String) -> Result<AnisetteClient, AnisetteError> {
let path = format!("{}/v3/client_info", url);
let http_client = make_reqwest()?;
let mut client_info = http_client
let client_info = http_client
.get(path)
.send()
.await?
.json::<AnisetteClientInfo>()
.await?;
client_info.client_info = CLIENT_INFO_HEADER.to_string();
Ok(AnisetteClient { client_info, url })
}

Expand Down