Commit Graph

48 Commits

Author SHA1 Message Date
Christophe Fergeau 2f2b8d7ea5 Fix warnings about unused variables
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-11 09:32:59 -07:00
Zach C 020d7c23b1 Adds seeking, directory creation and improves file writing. Also various other cleanups.
Implements creating directories as well as writing and deleting files in iFuse.

Signed-off-by: Matthew Colyer <mcolyer@mcolyer-laptop.(none)>
2008-08-10 17:24:32 -07:00
Matt Colyer 4c3f86499f Added cleanup when closing a file, probably needs a bit more throughness
but its a start.

Added a missing unlock call so you can read a file more than once.
2008-08-07 00:00:12 -07:00
Matt Colyer 1c6aa3dd8a Fixed the data corruption, it turns out that there is a maximum length
that you can request in an AFC packet 2^16.
2008-08-06 23:47:20 -07:00
Zach C bef6559660 Adds locking and fixes a minor bug in mux_recv
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-06 21:04:09 -07:00
Matt Colyer d81a3c5c41 Finish converting over to doxygen.
(I thought there was more documentation there but apparently we need to add
some)
2008-08-06 00:10:25 -07:00
Matt Colyer 2dcc296d92 Fixed Zach's name. I feel dumb, sorry about that. 2008-08-05 23:50:28 -07:00
Matt Colyer 25e85bf536 Zack's final changes to the pairing. 2008-08-05 23:28:10 -07:00
Jonathan Beck 4b558a53f6 Store certificates and private keys as PEM files instead of storing them in config file. Added functions to generate proper pairing request.
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-05 23:28:10 -07:00
Jonathan Beck 20a6f8797a Initialize certificate structure before importing.
Fix return code in lockdownd_init.

Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-05 23:28:10 -07:00
Jonathan Beck 890ac04a0b Fix mem allocation in config initialization.
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-05 23:28:10 -07:00
Jonathan Beck b9f9675e1e Initial pairing implementation.
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-05 23:28:10 -07:00
Jonathan Beck b25fea997f Added function to handle <data> tag in dict.
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-05 23:28:10 -07:00
Jonathan Beck 9fa57190be Update Makefile so initconf is built.
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-05 23:28:10 -07:00
Jonathan Beck ffcde5e545 added utility to generate config file (ssl keys and cert)
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-05 23:28:10 -07:00
Jonathan Beck c58482a7db prepare config for pairing
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-05 23:28:10 -07:00
Jonathan Beck b6ed54477c fixes some warnings
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-05 23:28:10 -07:00
Matt Colyer dceb48d274 Added beginnings of doxygen documentation to the library. 2008-08-05 10:08:02 -07:00
Matt Colyer 62bcedced8 Zack's C. rewrite of usbmux (with a few additions by Matt Colyer). 2008-08-04 23:41:56 -07:00
Martin Aumueller 294f6080e7 Print libusb errors during usb_bulk_read/write.
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-04 23:04:15 -07:00
Martin Aumueller fe2cb86652 Print strerror of negated return values after failed usb_bulk_write/read.
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-04 23:02:47 -07:00
Martin Aumueller 279222bdb5 Don't use iPhone after freeing it.
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-04 23:00:37 -07:00
Martin Aumueller 07fcebbb5e Don't crash when afc_get_dirlist returns NULL.
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-04 23:00:21 -07:00
Martin Aumueller ab40a42f43 Don't ignore mux_recv errors silently.
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-04 22:54:20 -07:00
Martin Aumueller 9698bafc78 Print libusb errors during usb_bulk_read/write.
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-04 22:53:44 -07:00
Matt Colyer 4750a54def Added ability to get files larger than a single USB packet size. 2008-08-03 17:27:44 -07:00
Matt Colyer 579ca1bda0 I copied the wrong legal headers into the code. Opps. 2008-08-01 09:34:52 -07:00
Matt Colyer 42f4922fa0 Removed old build script. 2008-08-01 08:48:22 -07:00
Matt Colyer f492fa820b A few cleanups, got rid of global afc variable. 2008-08-01 08:46:16 -07:00
Jonathan Beck d05ae22635 Added a way to load HostID from a user specific config file.
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-07-31 21:54:16 -07:00
Matt Colyer bbd289b44c Enabled actual version checking in the configure script. 2008-07-31 09:24:59 -07:00
Martin Aumueller 829f1ce047 Initialize pointer to NULL so it can be safely be freed.
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-07-31 09:04:08 -07:00
Martin Aumueller 3a659016bb Don't access freed memory.
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-07-31 09:03:01 -07:00
Matt Colyer 41bc8af628 Fixed a typo in the previous commit. 2008-07-30 23:56:03 -07:00
Matt Colyer 47d60e2b9f Added documentation and licensing information. 2008-07-30 23:50:39 -07:00
Matt Colyer d4c28088e8 Made the iPhone cleanup after itself. 2008-07-30 23:09:38 -07:00
Matt Colyer a5c2119e51 Fixed a return that was supposed to be there (thanks to Martin who pointed it out). 2008-07-30 23:05:38 -07:00
Martin Aumueller c9adedcc6e ifuse_init has to return a void* (fuse 2.7.2 on hardy heron)
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-07-30 21:31:09 -07:00
Martin Aumueller 2a406b92bc Apparently missing parens (with respect to string length calculation).
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-07-30 21:29:59 -07:00
Martin Aumueller db67cbb96c Added iPhone 3G USB product id.
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-07-30 21:26:59 -07:00
Zach C 9e745d1801 Fixed a slight bug if datalen == bytes in usbmux.c 2008-07-30 20:38:36 -07:00
Jonathan Beck 1f81e7f15d Added missing autoheaders call.
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-07-30 20:27:51 -07:00
Matt Colyer ed6e6e57a8 Added beginnings of a fuse fs, right now it's read only and terribly fragile. 2008-07-30 09:42:15 -07:00
Matt Colyer 3dc130f304 Autotooled the project with very basic versioning support. 2008-07-29 10:13:37 -07:00
Matt Colyer 6039e5bbfc Removed unnecessary constants, now it works with gnutls 1.6.3. 2008-07-29 09:35:50 -07:00
Jonathan Beck fb54273d91 Added support for GNU TLS 2.0.4. 2008-07-29 01:16:19 -07:00
Zach C 0f4aeb11ab Version 0.09, added ability to talk to 2.0 firmware. 2008-07-29 01:13:51 -07:00
Zach C e2ff112835 First released version, 0.089. 2008-07-29 01:11:02 -07:00