summaryrefslogtreecommitdiffstats
path: root/daemon
AgeCommit message (Collapse)AuthorFilesLines
2013-09-17remove libusbmuxd sources and adapt source tree to use autotoolsGravatar Nikias Bassen10-2940/+0
libusbmuxd has been split off and is now managed in a separate repository. By the time of this commit, the repository is: git clone http://git.sukimashita.com/libusbmuxd.git
2012-01-14Fix detection for Apple TV 2 due to small interface detection bugGravatar Martin Szulecki1-1/+3
2011-03-15Bump PID range for iPad 2, iPhone 5 and their variantsv1.0.7Gravatar Martin S1-1/+1
2011-03-15Handle devices with swapped endpoint descriptorsGravatar Hector Martin1-8/+15
Reported by Adam Iglewski on an iPhone 2G running 1.1.4
2010-09-28Fix potential issue with USB transactions >=32k multiples of 16kv1.0.6Gravatar Hector Martin1-1/+1
2010-09-21Also bump the PID range in usb.h. Duh.Gravatar Hector Martin1-1/+1
2010-09-19Fixes for building libusbmuxd on OS XGravatar John Maguire1-0/+1
Adds include_directories(${OPT_INCLUDES}) for when libplist isn't in the default include directories. Uses /bin/echo instead of sh's echo as "echo -n" does not work on OS X's sh.
2010-06-17Fix segfault when device initialization failsGravatar Hector Martin1-0/+1
2010-06-17Remove spurious newline in messageGravatar Hector Martin1-1/+1
2010-06-13Abort processing for some client errors (instead of crashing)Gravatar Hector Martin1-0/+3
Missing 'return' statements caused the code to keep running on a deallocated client, which would cause the server to crash.
2010-06-12Actually enable the new protocolGravatar Hector Martin1-0/+1
2010-06-12These patches get usbmuxd compiling/working on FreeBSD. With minor changes, ↵Gravatar Jacob Myers1-1/+1
it could work on other BSD's also.
2010-05-26Add protocol version 1 (plist based) support using libplistGravatar Nikias Bassen2-13/+191
2010-05-26usbmuxd: rename notify_device to notify_device_add; added notify_device_removeGravatar Nikias Bassen1-4/+9
2010-05-25Detach kernel drivers before changing configurationsGravatar Hector Martin1-0/+20
This is especially useful when bConfigurationValue is 2, which tends to be a mixed HID/USB-Audio configuration that the kernel likes to use. Otherwise usbmuxd cannot change the configuration.
2010-05-18Parse out interface/endpoint descriptors instead of hardcoding themGravatar Hector Martin2-13/+53
This should make usbmuxd work with devices in recovery mode
2010-05-11Make max_payload unsigned toov1.0.4Gravatar Hector Martin1-1/+1
2010-05-11Fix aborts due to transmit window overflowGravatar Hector Martin1-1/+6
c0b02222 made conn->sendable unsigned. If the device reduces the window after we've sent too much data already, it can become negative, overflow, and cause connection aborts when we send too much data. Fix this by checking for this condition and setting conn->sendable to 0. Thanks to Thomas Jost and Nikias Bassen for debugging this issue.
2010-04-08Ignore SIGPIPE, otherwise usbmuxd might shut down on connection abortGravatar Nikias Bassen1-0/+1
2010-04-08OSX: add workaround for missing ppoll system callGravatar Nikias Bassen1-0/+15
2010-04-04Detect the iPad and let usbmuxd talk to itGravatar Martin Szulecki1-1/+1
2010-02-07Remove silly null statementv1.0.2Gravatar Hector Martin1-1/+1
2010-02-07Clean up CMakeLists (inspired by Gentoo patch)Gravatar Hector Martin1-2/+1
2010-02-01Don't crash on TCP junk during device initGravatar Hector Martin1-3/+9
2010-01-30Require explicit username to drop privsGravatar Hector Martin1-7/+11
2010-01-30Do not attempt to drop privs to rootGravatar Hector Martin1-24/+27
2010-01-24Clean up packet size types and add some paranoiaGravatar Hector Martin4-21/+35
None of this should fix an exploit, it's just healthy paranoia.
2010-01-24Security fix: check cumulative packet size for split device packetsGravatar Hector Martin1-0/+5
2010-01-24Use -Wall globallyGravatar Hector Martin1-1/+2
2009-12-07Get rid of SHORT_NOT_OK flag for USB sendsGravatar Hector Martin1-2/+0
This flag is useful for reads only (and we don't want it on our reads anyway). In DEBUG mode, the USB kernel driver is anal about this useless flag and reports an error.
2009-10-31Fix signal handling and work around a udev bugGravatar Hector Martin1-4/+20
Switch to ppoll() to avoid a race condition while handling signals (see the ppoll/pselect manpages) and also work around the udev bug that causes child processes to inherit udev's signal mask (which masks everything).
2009-10-31Fix USB pid range check: was trying to claim all Apple devicesGravatar Hector Martin1-1/+1
2009-10-28Add build time reminder about creating a userGravatar Hector Martin1-0/+6
2009-10-25Add missing license headers and make them consistentGravatar Hector Martin9-9/+19
2009-10-12Make some log messages more consistentGravatar Hector Martin1-4/+4
2009-10-12Downgrade "no connection for packet" message loglevel tooGravatar Hector Martin1-1/+1
Also happens after connection is closed by the host and the like, to be expected.
2009-10-12optimize: persist fdlist for duration of main_loopGravatar Hector Martin1-2/+3
constant malloc and realloc was wasting lots of time
2009-10-12optimize: considerable CPU usage was due to needless ops for unlogged messagesGravatar Hector Martin1-3/+3
2009-10-12Downgrade unknown client fd message loglevelGravatar Hector Martin1-1/+1
It can happen sometimes when the phone and the client close at the same time (during the same mainloop iteration) and the like, it's not important when it shows up during connection teardown.
2009-10-10Disable polling in udev mode, use udev to signal device discoveryGravatar Hector Martin3-16/+56
2009-10-03Require libusb-1.0.3 and hardcode explicit ZLP logicGravatar Hector Martin2-26/+0
1.0.3 has the 0-byte transaction fix. The saga continues on the libusb trac. Whenever they add the ZLP flag we can get rid of the 0-byte logic and just set it.
2009-09-23Match a range of supported USB IDs and make iPod Touch 64GB workGravatar Martin Szulecki2-10/+4
2009-09-08Fix compile under Darwin with more includes, also silences some warnings.Gravatar Nikias Bassen1-0/+1
2009-08-28usb-linux: use libusb_get_max_packet_size() instead of custom code.Gravatar Nikias Bassen1-17/+2
2009-08-26Add version information.Gravatar Nikias Bassen2-2/+2
2009-08-25Make usbmuxd_connect work again, MESSAGE_CONNECT processing was broken.Gravatar Nikias Bassen1-3/+3
2009-08-25Renamed directory 'usbmuxd' to more suitable 'daemon'.Gravatar Nikias Bassen10-0/+2604