/// <summary> /// Validates if the device is paired with the given HostID. If successful the /// specified host will become trusted host of the device indicated by the /// lockdownd preference named TrustedHostAttached. Otherwise the host must be /// paired using lockdownd_pair() first. /// </summary> /// <param name="client"> /// The lockdown client /// </param> /// <param name="pair_record"> /// The pair record to validate pairing with. If NULL is /// passed, then the pair record is read from the internal pairing record /// management. /// </param> /// <returns> /// LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client is NULL, /// LOCKDOWN_E_PLIST_ERROR if the pair_record certificates are wrong, /// LOCKDOWN_E_PAIRING_FAILED if the pairing failed, /// LOCKDOWN_E_PASSWORD_PROTECTED if the device is password protected, /// LOCKDOWN_E_INVALID_HOST_ID if the device does not know the caller's host id /// </returns> public virtual LockdownError lockdownd_validate_pair(LockdownClientHandle client, LockdownPairRecordHandle pairRecord) { return(LockdownNativeMethods.lockdownd_validate_pair(client, pairRecord)); }