summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2013-09-19userpref: fix leak and possible endless recursion in mkdir_with_parentsGravatar Nikias Bassen1-7/+4
2013-09-19utils: make buffer_write_to_filename overwrite instead of append to existing ↵Gravatar Nikias Bassen1-3/+1
files
2013-09-19notification_proxy: handle error conditions in notification polling threadGravatar Nikias Bassen1-4/+14
2013-09-19property_list_service: handle timeout condition on receiveGravatar Nikias Bassen2-1/+5
this adds the new error code PROPERTY_LIST_SERVICE_E_TIMEOUT that occurs if the given timeout is reached when trying to receive data.
2013-09-17lockdownd: remove unused udid variable in reconnect functionGravatar Nikias Bassen1-4/+0
2013-09-17userpref: Add missing argument docs for device_record_get_certs_as_pem()Gravatar Martin Szulecki1-0/+1
2013-09-17lockdown: Refactor pair record generation/loading logic a bit for efficiencyGravatar Martin Szulecki1-42/+47
The current code always requests the public key and set's the SystemBUID, even if a pair record already exists which has these values ready. The change moves logic to only do that during generation of new certificates.
2013-09-17lockdown: Fix debug message during reconnect to show correct udidGravatar Martin Szulecki1-1/+1
2013-09-17lockdown: Fix generation of x509 subject key identifier extension for GnuTLSGravatar Martin Szulecki1-7/+12
2013-09-17Make sure to re-use the DeviceCertificate instead of generating a new one ↵Gravatar Nikias Bassen3-10/+30
every time This prevented iTunes from using a pairing made by libimobiledevice giving an error that the device sent invalid data.
2013-09-17lockdown: Add missing x509 extensions to match other platforms using GnuTLSGravatar Martin Szulecki1-0/+8
2013-09-17Fix broken build of GnuTLS and silence two compiler warningsGravatar Martin Szulecki3-5/+5
2013-09-17lockdown: Add missing x509 extensions to match other platforms using OpenSSLGravatar Martin Szulecki1-2/+18
2013-09-17userpref: Add copyright referenceGravatar Martin Szulecki2-0/+2
2013-09-17idevicepair: Port to use the new userpref API and add systembuid commandGravatar Martin Szulecki1-17/+32
2013-09-17lockdown: Allow starting services without the need for a running SSL sessionGravatar Martin Szulecki1-2/+2
2013-09-17Refactor userpref logic to use plist format and implement trust dialog handlingGravatar Martin Szulecki6-409/+579
iOS 7 introduced a new pairing workflow which increases security by showing a trust dialog to the user before pairing with the host is allowed. The userpref system was refactored to use the native plist format, too. Configuration files of the native implementations are used on each platform. Former configuration files are no longer in use and can be deleted.
2013-09-17idevice: Add udid attribute to idevice_connection_t for referencing devicesGravatar Martin Szulecki2-0/+7
2013-09-17common: Add helpers to read and write plist filesGravatar Martin Szulecki2-0/+106
2013-09-16afc: fix some return types (afc_error_t vs. idevice_error_t)Gravatar Nikias Bassen1-4/+4
2013-09-13tools: fix GnuTLS build by adding missing libgcrypt build flagsGravatar Nikias Bassen1-2/+2
2013-09-11filerelaytest: Variable can not be declared inside for loop on non C99 modeGravatar Martin Szulecki1-6/+6
2013-09-11Added the option to filerelaytest to pass sources on the command line.Gravatar Aaron Burghardt1-2/+16
2013-09-07make variables for package dependencies, synchronize these with .pc fileGravatar Elan Ruusamäe2-4/+12
2013-08-19webinspector: Implement support for partial messages when sending or receivingGravatar Martin Szulecki2-42/+125
The protocol appears to split plist payload on 8096 bytes boundries into multiple WIRPartialMessage messages. Now partial messages are correctly decoded during receiving and split automatically when sending large messages by the implementation.
2013-08-08idevicebackup2: Implement support for encrypted backups in Unback commandGravatar Aaron Burghardt2-1/+15
Allows to specify a password for the Unback request. It is also sent in the main message, not in an options dictionary.
2013-08-07idevice: Export SSL control functions for idevice_connection_tGravatar Martin Szulecki2-3/+2
2013-08-05service: Make generic service public to enable external service implementationsGravatar Martin Szulecki3-31/+70
2013-08-05Implement *_start_service() helper to simplify creation of service clientsGravatar Martin Szulecki26-0/+280
2013-08-05Add public *_SERVICE_NAME defines for each serviceGravatar Martin Szulecki13-0/+26
2013-07-19Update README with latest code, ticket tracker and IRC URLsGravatar Martin Szulecki1-2/+9
2013-07-19syslog_relay: Add doc comments for syslog_relay(_start|_stop)_capture()Gravatar Martin Szulecki1-0/+26
2013-07-18Update NEWS with latest changesGravatar Martin Szulecki1-0/+20
2013-07-18installation_proxy: Fix another two memory leaksGravatar Martin Szulecki1-0/+4
2013-07-16Fix memory leaks in instproxy_client_get_path_for_bundle_identifier()Gravatar Martin Szulecki1-0/+10
2013-07-15userpref: correctly NULL-terminate arguments in string_concat callsGravatar Nikias Bassen1-2/+2
2013-07-13common: Fix malformed binary debug message dumpingGravatar Martin Szulecki1-1/+1
2013-07-13common: Fix WIN32 portability for recent userpref security fixGravatar Martin Szulecki1-1/+6
2013-07-13common: Implement stpcpy() replacement for systems lacking itGravatar Martin Szulecki2-0/+26
2013-07-13configure.ac: Simply check for asprintf and vasprintfGravatar Martin Szulecki1-10/+1
2013-07-02Bug #331 - Don't create a /tmp/root directory insecurelyGravatar Federico Mena Quintero1-29/+76
When finding the user's home directory to generate a subdirectory in $HOME/.config, we would fall back to /tmp if there were no environment variables for HOME or XDG_CONFIG_HOME. Since libimobiledevice gets used by upower, and since upowerd runs as root, this would cause a /tmp/root directory to be created insecurely, leaving upowerd vulnerable to a symlink attack. Now we fall back to getpwuid_r() to find the user's home directory if it is not provided in environment variables - this is the case when upowerd gets run via systemd, for example. The result is that we'll end up creating /root/.config, a safe directory, since regular users cannot create symlinks in /root. In the future we'll need a way for libimobiledevice to find where to store its pairing data on behalf of the console user, rather than writing it to /root. http://libiphone.lighthouseapp.com/projects/27916-libiphone/tickets/331-insecure-tmp-directory-use
2013-07-02common: Add utils.[ch] with a string_concat() functionGravatar Federico Mena Quintero3-1/+114
Instead of doing malloc() and repeated strcat(), which is an O(n^2) way to concatenate multiple strings, we define a single O(total_len) function that uses stpcpy(). This will also make the rest of the code more legible and safer.
2013-07-01cython: Remove erroneous free()Gravatar Dawn K. Isabel1-2/+0
2013-06-30 Fixed leaked plist uint which is passed to ↵Gravatar Aaron Burghardt1-1/+3
mobilebackup2_send_status_response().
2013-06-30Fixed multiple occurrences of memory leaks when empty plist dicts are passed ↵Gravatar Aaron Burghardt1-5/+13
to mobilebackup2_send_status_response().
2013-06-30Fixed leaked lockdowns client object in do_post_notification().Gravatar Aaron Burghardt1-0/+1
2013-06-30Fixed memory leak in mb2_status_check_snapshot_state() by freeing the string ↵Gravatar Aaron Burghardt1-0/+1
returned from plist_get_string_val().
2013-06-30Fixed memory leak by creating empty plist dict for iTunes settings only when ↵Gravatar Aaron Burghardt1-2/+2
it can’t be retrieved from the lockdown connection. That mimics the leaking implementation, but maybe it should be an error.
2013-06-30Fixed memory leak in lockdownd_gen_pair_cert() by freeing X509_EXTENSION ↵Gravatar Aaron Burghardt1-0/+1
object when using OpenSSL.
2013-06-30Fixed memory leak in lockdownd_gen_pair_cert() when getting cert data using ↵Gravatar Aaron Burghardt1-2/+5
OpenSSL.