summaryrefslogtreecommitdiffstats
path: root/include/libimobiledevice/lockdown.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2015-07-15 07:22:37 +0200
committerGravatar Nikias Bassen2015-07-15 07:22:37 +0200
commitf268393d4e447ac901879bee751d7350c495fed2 (patch)
tree63ba8aef9ddc77f98c4432241692f14f81afc439 /include/libimobiledevice/lockdown.h
parente1cac25e632955da0c3aeb2f16f49c5a1687f81c (diff)
downloadlibimobiledevice-f268393d4e447ac901879bee751d7350c495fed2.tar.gz
libimobiledevice-f268393d4e447ac901879bee751d7350c495fed2.tar.bz2
lockdown: Add new lockdownd_pair_with_options() function
Diffstat (limited to 'include/libimobiledevice/lockdown.h')
-rw-r--r--include/libimobiledevice/lockdown.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/libimobiledevice/lockdown.h b/include/libimobiledevice/lockdown.h
index 46792a6..0e48eef 100644
--- a/include/libimobiledevice/lockdown.h
+++ b/include/libimobiledevice/lockdown.h
@@ -295,6 +295,25 @@ lockdownd_error_t lockdownd_receive(lockdownd_client_t client, plist_t *plist);
295 */ 295 */
296lockdownd_error_t lockdownd_pair(lockdownd_client_t client, lockdownd_pair_record_t pair_record); 296lockdownd_error_t lockdownd_pair(lockdownd_client_t client, lockdownd_pair_record_t pair_record);
297 297
298 /**
299 * Pairs the device using the supplied pair record and passing the given options.
300 *
301 * @param client The lockdown client
302 * @param pair_record The pair record to use for pairing. If NULL is passed, then
303 * the pair records from the current machine are used. New records will be
304 * generated automatically when pairing is done for the first time.
305 * @param options The pairing options to pass. Can be NULL for no options.
306 * @param response If non-NULL a pointer to lockdownd's response dictionary is returned.
307 * The caller is responsible to free the response dictionary with plist_free().
308 *
309 * @return LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client is NULL,
310 * LOCKDOWN_E_PLIST_ERROR if the pair_record certificates are wrong,
311 * LOCKDOWN_E_PAIRING_FAILED if the pairing failed,
312 * LOCKDOWN_E_PASSWORD_PROTECTED if the device is password protected,
313 * LOCKDOWN_E_INVALID_HOST_ID if the device does not know the caller's host id
314 */
315lockdownd_error_t lockdownd_pair_with_options(lockdownd_client_t client, lockdownd_pair_record_t pair_record, plist_t options, plist_t *response);
316
298/** 317/**
299 * Validates if the device is paired with the given HostID. If successful the 318 * Validates if the device is paired with the given HostID. If successful the
300 * specified host will become trusted host of the device indicated by the 319 * specified host will become trusted host of the device indicated by the