From b7feed9f5a62833c1df3f503fd3693e2ed2e4738 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 7 Dec 2017 16:48:36 +0700 Subject: mobileactivation: Allow passing activation response headers as required for iOS 11.2+ When activating in session mode - which is required for newer iOS versions - we can now pass the activation response headers with the activation command. For iOS 11.2+ this is mandatory or the activation will fail. --- include/libimobiledevice/mobileactivation.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/libimobiledevice/mobileactivation.h b/include/libimobiledevice/mobileactivation.h index bb1f3f4..b7f8064 100644 --- a/include/libimobiledevice/mobileactivation.h +++ b/include/libimobiledevice/mobileactivation.h @@ -164,16 +164,18 @@ mobileactivation_error_t mobileactivation_activate(mobileactivation_client_t cli /** * Activates the device with the given activation record in 'session' mode. - * The activation record plist dictionary must be obtained using the + * The activation record plist must be obtained using the * activation protocol requesting from Apple's https webservice. * * @param client The mobileactivation client - * @param activation_record The activation record plist dictionary + * @param activation_record The activation record in plist format + * @param headers A plist dictionary with the activation response headers + * as returned from Apple's https webservice with the activation record * * @return MOBILEACTIVATION_E_SUCCESS on success, or an MOBILEACTIVATION_E_* * error code otherwise. */ -mobileactivation_error_t mobileactivation_activate_with_session(mobileactivation_client_t client, plist_t activation_record); +mobileactivation_error_t mobileactivation_activate_with_session(mobileactivation_client_t client, plist_t activation_record, plist_t headers); /** * Deactivates the device. -- cgit v1.1-32-gdbae