summaryrefslogtreecommitdiffstats
path: root/src/preflight.c
AgeCommit message (Collapse)AuthorFilesLines
2013-12-27preflight: check for device record before trying to read host idGravatar Nikias Bassen1-10/+15
2013-12-27preflight: replace idevice_event_* with thread safe implementationGravatar Nikias Bassen1-11/+13
idevice_event_subscribe() calls usbmuxd_subscribe() which will start a thread waiting for device add/remove events. But this implementation is not able to handle more than one "subscription". However the preflight worker will start a thread for _each_ device resulting in a really messed up situation if more than one device is attached at the same time. This fix will use usbmuxd's internal device_remove function calling a preflight callback to make this implementation thread safe.
2013-12-13add support for reading and writing config and pair record filesGravatar Nikias Bassen1-6/+5
2013-11-04preflight: Add messages to indicate start and finish of preflight processGravatar Martin Szulecki1-0/+9
2013-11-04preflight: Make device visible during trust dialog pairing and handle unplugGravatar Martin Szulecki1-5/+27
The usbmuxd implementation on Win/OS X does allow enumerating and accessing the device during the "trust dialog" pairing process. We now also exit the waiting loop during unplugging of a device while waiting for the trust dialog to be dismissed.
2013-11-04preflight: Add lockdownd prefix to name of set_untrusted_host_buid()Gravatar Martin Szulecki1-3/+3
2013-10-09preflight: define extern userpref_remove_device_recordGravatar Nikias Bassen1-0/+2
2013-10-09preflight: Free version string in all cases to prevent memory leakGravatar Martin Szulecki1-3/+11
2013-10-08preflight: plug small memory leakGravatar Nikias Bassen1-0/+2
2013-09-24preflight: don't wait for trust if device is at setup screenGravatar Nikias Bassen1-1/+6
2013-09-24preflight: handle invalid pair records properlyGravatar Nikias Bassen1-3/+17
2013-09-19preflight: Trigger new trust dialog if user denied pairing beforeGravatar Martin Szulecki1-0/+8
This changes allows to replug a device to trigger a new trust dialog if the user did deny the pairing before.
2013-09-19preflight: Use userpref_get_system_buid() instead of hardcoded pathGravatar Martin Szulecki1-4/+2
2013-09-19preflight: Allow pre iOS 6 devices to become visible if pairing failsGravatar Martin Szulecki1-6/+11
This allows any client to react and handle pairing errors which includes password protected devices and alike.
2013-09-19preflight: Fix some comments to comply to C89Gravatar Martin Szulecki1-4/+4
2013-09-19added preflight worker implementation to handle initial device pairingGravatar Nikias Bassen1-0/+271