summaryrefslogtreecommitdiffstats
path: root/src/lockdown.c
AgeCommit message (Collapse)AuthorFilesLines
2009-12-07fix lockdownd_pair returning success on errorGravatar Nikias Bassen1-3/+2
This fixes a bug where lockdown_check_result() might return -1 and lockdownd_pair() still returns success. Thanks to dborca for spotting this.
2009-12-07better handling of session_idGravatar Nikias Bassen1-21/+26
This will change session_id out of the lockdownd_client_int struct to a pointer instead of using a buffer of fixed size. The session_id is allocated anyway by libplist when reading it from the plist received from the device, so why don't just use it? [#94 state:resolved] Signed-off-by: Matt Colyer <matt@colyer.name>
2009-12-07fix signature of lockdownd_stop_sessionGravatar Nikias Bassen1-3/+3
This removes the session_id parameter from lockdownd_stop_session because the session_id is stored in the lockdownd_client_int structure anyway.
2009-11-30Evaluate EnableSessionSSL key on session startupGravatar Nikias Bassen1-2/+18
This is required if the device does not send the EnableSessionSSL:true key-value pair in the answer to the StartSession request. [#92 state:resolved] Signed-off-by: Matt Colyer <matt@colyer.name>
2009-11-19set ssl_certificate to NULL in lockdownd_client_newGravatar Nikias Bassen1-0/+1
[#87 state:resolved]
2009-11-17simplify gnutls_session_t useGravatar Christophe Fergeau1-19/+18
gnutls_session_t is already a pointer, we don't need to manipulate a gnutls_session_t* [#87 state:resolved] Signed-off-by: Matt Colyer <matt@colyer.name>
2009-11-17don't leak memory allocated for gnutls credentialsGravatar Christophe Fergeau1-6/+6
2009-11-11Finish migration to latest plist API.Gravatar Jonathan Beck1-53/+22
[#77 state:resolved] Signed-off-by: Matt Colyer <matt@colyer.name>
2009-10-13Update to latest libplist API.Gravatar Jonathan Beck1-55/+29
Signed-off-by: Matt Colyer <matt@colyer.name> [#77 state:resolved]
2009-09-12Public API rework, extension and adaption to latest libusbmuxd-1.0 API.Gravatar Nikias Bassen1-12/+14
2009-08-01Avoid invalid memory accesses in lockdownd_client_new()Gravatar Bastien Nocera1-1/+1
Valgrind complains: ==2678== Conditional jump or move depends on uninitialised value(s) ==2678== at 0x3ACD40646C: lockdownd_client_new (lockdown.c:662) ==2678== by 0x405BA6: g_vfs_afc_volume_new (afc-volume.c:113) ==2678== by 0x406541: g_vfs_afc_monitor_device_added (afc-volume-monitor.c:46) ==2678== by 0x4066B1: g_vfs_afc_volume_monitor_constructor (afc-volume-monitor.c:173) ==2678== by 0x3A7FE11A38: g_object_newv (in /lib64/libgobject-2.0.so.0.2000.4) ==2678== by 0x3A7FE12584: g_object_new_valist (in /lib64/libgobject-2.0.so.0.2000.4) ==2678== by 0x3A7FE126DB: g_object_new (in /lib64/libgobject-2.0.so.0.2000.4) ==2678== by 0x408AD5: monitor_try_create (gvfsproxyvolumemonitordaemon.c:1651) ==2678== by 0x408C20: g_vfs_proxy_volume_monitor_daemon_main (gvfsproxyvolumemonitordaemon.c:1694) ==2678== by 0x37E881EA2C: (below main) (in /lib64/libc-2.10.1.so) ==2678== Uninitialised value was created by a stack allocation ==2678== at 0x405B00: g_vfs_afc_volume_new (afc-volume.c:138)
2009-07-28Fix potential memory corruption in calls to gnutls function on 64 bit archGravatar Nikias Bassen1-3/+5
[#60 state:resolved] Signed-off-by: Matt Colyer <matt@colyer.name>
2009-07-25Conform to protocol and add session id argument to lockdownd_stop_session()Gravatar Martin Szulecki1-3/+3
2009-07-25Update lockdown API and introduce new error codesGravatar Martin Szulecki1-149/+156
2009-07-25Improve API of userpref systemGravatar Martin Szulecki1-20/+38
2009-07-24Use iphone_device_get_uuid() not lockdown, for less overhead where possibleGravatar Martin Szulecki1-11/+10
2009-07-24Improve debug output messages by using __func__ everywhere and adjust wordingGravatar Martin Szulecki1-51/+44
2009-07-15Implement lockdown set_value, remove_value and enter_recovery request APIGravatar Martin Szulecki1-4/+159
2009-07-10Use new plist_copy instead of serialization workaround in lockdownd_et_value()Gravatar Martin Szulecki1-11/+1
2009-07-07Cleanup lockdown request API and fix docs, tools, bindings and exportsGravatar Martin Szulecki1-417/+361
2009-06-08lockdown: fix receive of large TLS-encapsulated plistsGravatar Nikias Bassen1-8/+12
Signed-off-by: Martin Szulecki <opensuse@sukimashita.com>
2009-05-19lockdown: Check for gnutls errors and silence compiler warnings. general: ↵Gravatar Nikias Bassen1-28/+42
Removed some commented-out code. [#39 state:resolved] Signed-off-by: Matt Colyer <matt@colyer.name>
2009-05-18Make use of usbmuxd and remove libusb dependenciesGravatar Nikias Bassen1-12/+13
Signed-off-by: Matt Colyer <matt@colyer.name>
2009-05-10NotificationProxy support added.0.9.0Gravatar Nikias Bassen1-0/+13
[#27 state:resolved] Signed-off-by: Matt Colyer <matt@colyer.name>
2009-04-23Detect unknown HostId in StartSession an trigger Pair again if needed.Gravatar Jonathan Beck1-1/+54
2009-04-23Revert my previous change to accept Jonathan's fixes.Gravatar Matt Colyer1-1/+1
2009-04-23Remove libiphone-initconf reference in the README.Gravatar Matt Colyer1-1/+1
[#38 state:resolved]
2009-04-23Fix receive of plists larger than a packet for lockdown and MobileSyncGravatar Martin Szulecki1-10/+20
[#35 state:resolved] Signed-off-by: Matt Colyer <matt@colyer.name>
2009-04-19Make sure start_service returns an error if it fails to start the serviceGravatar Martin Szulecki1-15/+21
[#34 state:resolved] Signed-off-by: Matt Colyer <matt@colyer.name>
2009-04-12Use less secure random number generation so we can generate privateGravatar Jonathan Beck1-75/+85
keys on the fly. Drop libiphone-initconf.
2009-03-24Merge branch 'master' of git://github.com/MattColyer/libiphone into contact_syncGravatar Jonathan Beck1-70/+46
Conflicts: Makefile.am configure.ac src/AFC.h src/NotificationProxy.c src/lockdown.c
2009-03-23Remove lockdown gnutls buffer hack [#1 state:resolved]Gravatar Nikias Bassen1-64/+42
Signed-off-by: Matt Colyer <matt@colyer.name>
2009-01-29Update to latest libplist API.Gravatar Jonathan Beck1-9/+9
2009-01-29Merge branch 'master' into contact_syncGravatar Jonathan Beck1-10/+6
Conflicts: src/Makefile.am src/iphone.c src/lockdown.c src/lockdown.h src/utils.c
2009-01-13Removed fprintf, use the debug message method.Gravatar Matt Colyer1-9/+9
2009-01-12Update lockdownd transfer function to take abstract plist as argument.Gravatar Jonathan Beck1-330/+287
Simplify code accordingly. Use new libplist API to make code cleaner.
2009-01-09Perform proper goodby on lockdown shutdown.Gravatar Nikias Bassen1-6/+172
2009-01-08Implement skeleton of MobileSync protocol (handshake and goodbye).Gravatar Jonathan Beck1-9/+7
2009-01-08Merge branch 'nikias' into plistGravatar Jonathan Beck1-6/+195
Conflicts: src/lockdown.c
2009-01-08Perform proper goodby on lockdown shutdown.Gravatar Nikias Bassen1-6/+172
2009-01-04Merge branch 'master' into plistGravatar Jonathan Beck1-3/+2
Conflicts: src/AFC.c src/lockdown.c src/lockdown.h src/plist.c src/plist.h
2009-01-02Fix indent issues.Gravatar Matt Colyer1-1/+2
2009-01-02Fix function prototypesGravatar Christophe Fergeau1-3/+3
Add missing static, const, change function() to function(void)
2009-01-02Add missing #include "utils.h"Gravatar Christophe Fergeau1-0/+1
2008-12-13fork out plist stuff in libplist and migrate libiphone to use it.Gravatar Jonathan Beck1-59/+71
2008-12-12Change from Base64 encoded buffers to real buffers. Base64 decoding/encoding ↵Gravatar Jonathan Beck1-62/+81
only happens in xml plists.
2008-12-12Fix some bugs in binary plist generation.Gravatar Jonathan Beck1-57/+48
2008-12-11move stuff around to make code more organized.Gravatar Jonathan Beck1-27/+0
2008-12-08cleanup binary parsing and move stuff around.Gravatar Jonathan Beck1-1/+1
2008-12-01finish new plist API migration.Gravatar Jonathan Beck1-93/+90