libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ mobile_image_mounter_query_nonce()

LIBIMOBILEDEVICE_API mobile_image_mounter_error_t mobile_image_mounter_query_nonce ( mobile_image_mounter_client_t  client,
const char *  image_type,
unsigned char **  nonce,
unsigned int *  nonce_size 
)

Query a personalization nonce for the given image type, used for personalized disk images (iOS 17+).

This nonce is supposed to be added to the TSS request for the corresponding image.

Parameters
clientThe connected mobile_image_mounter client.
image_typeThe image_type to get the personalization nonce for, usually DeveloperDiskImage.
noncePointer that will be set to an allocated buffer with the nonce value.
nonce_sizePointer to an unsigned int that will receive the size of the nonce value.
Returns
MOBILE_IMAGE_MOUNTER_E_SUCCESS on success, or a MOBILE_IMAGE_MOUNTER_E_* error code on error.