summaryrefslogtreecommitdiffstats
path: root/src/userpref.c
AgeCommit message (Collapse)AuthorFilesLines
2013-04-25common: Move debug and userpref code into libinternalcommonGravatar Martin Szulecki1-1161/+0
2012-09-05Don't crash if $HOME is emptyGravatar Bastien Nocera1-1/+22
If both $XDG_CONFIG_HOME and $HOME are unset, we'd try to copy a NULL string, causing a crash. This is the environment systemd provides to its daemons, and that was causing upowerd to crash. http://libiphone.lighthouseapp.com/projects/27916-libiphone/tickets/273-patch-fix-segfault-when-running-with-home-unset#ticket-273-2 http://libiphone.lighthouseapp.com/projects/27916/tickets/265-userpref_get_config_dir-segfaults-when-home-is-undefined https://bugzilla.redhat.com/show_bug.cgi?id=834359
2012-03-22Mass replace UUID by UDID, which is the correct term for itGravatar Martin Szulecki1-26/+27
2012-03-19Add more debug output to userprefsGravatar Nikias Bassen1-12/+46
2012-03-19userprefs: fix 0x0d,0x0a config file parsing on win32Gravatar Nikias Bassen1-5/+11
2012-03-19Fix uninitialized variableGravatar Nikias Bassen1-1/+1
2012-03-19Fixed userprefs read/write on win32Gravatar Nikias Bassen1-3/+3
2012-03-19Do not write config every time (still using old format)Gravatar Nikias Bassen1-0/+2
2012-03-19Add OpenSSL supportGravatar Nikias Bassen1-34/+199
2012-03-19WIN32: mkdir takes only one argumentGravatar Nikias Bassen1-1/+10
2012-03-18Completely remove glib dependency.Gravatar Nikias Bassen1-88/+404
2011-03-31userpref: Fix a segfault that might occour if locally stored certs could not ↵Gravatar Martin Szulecki1-2/+4
be read userpref_get_file_contents() was stil attempting to set the data and size properties on the passed gnutls_datum_t even if g_file_get_contents() failed. This shoud fix a possible segfault in any code code using the pairing.
2010-05-28userpref: new internal function userpref_get_paired_uuidsGravatar Nikias Bassen1-0/+60
2010-03-16Complete documentation of public interface and fix a lot of bogus commentsGravatar Martin Szulecki1-15/+29
This change unifies the documentation comment syntax, fixes a few bad documentation comments and completes documentation where it was missing.
2010-01-29Global renames due to project rename to libimobiledeviceGravatar Nikias Bassen1-33/+33
2010-01-12Refactor and unify internal debug system for ease of use and verbosityGravatar Martin Szulecki1-2/+2
This introduces a new debug_info macro which automatically prints the calling function, file and line number information instead of having that information passed to every old log_debug_msg call.
2010-01-12Rename utils to debug as it does exactly that, contain debug codeGravatar Martin Szulecki1-1/+1
2010-01-12Add gstdio header to silence compiler warning about g_remove callGravatar Martin Szulecki1-0/+1
2010-01-08Add userpref helper to allow removal of the stored device public keyGravatar Martin Szulecki1-0/+24
2009-09-12Public API rework, extension and adaption to latest libusbmuxd-1.0 API.Gravatar Nikias Bassen1-3/+3
2009-08-04Invalid check for host_id in userpref_get_host_idGravatar Nikias Bassen1-1/+1
On a system without a previous pairing, libiphone fails to connect to the device: userpref_get_host_id: Using (null) as HostID The code checks if host_id is NULL but it needs to check if *host_id is NULL, otherwise it won't generate a new HostID. [#69 state:resolved] Signed-off-by: Matt Colyer <matt@colyer.name>
2009-07-28Fix potential memory corruption in calls to gnutls function on 64 bit archGravatar Nikias Bassen1-12/+20
[#60 state:resolved] Signed-off-by: Matt Colyer <matt@colyer.name>
2009-07-25Improve API of userpref systemGravatar Martin Szulecki1-80/+81
2009-07-24Improve debug output messages by using __func__ everywhere and adjust wordingGravatar Martin Szulecki1-3/+2
2009-04-12Use less secure random number generation so we can generate privateGravatar Jonathan Beck1-54/+270
keys on the fly. Drop libiphone-initconf.
2009-01-04Merge branch 'master' into plistGravatar Jonathan Beck1-6/+3
Conflicts: src/AFC.c src/lockdown.c src/lockdown.h src/plist.c src/plist.h
2009-01-02Fix function prototypesGravatar Christophe Fergeau1-3/+3
Add missing static, const, change function() to function(void)
2009-01-02Removed unused variablesGravatar Christophe Fergeau1-3/+0
2008-12-12Change from Base64 encoded buffers to real buffers. Base64 decoding/encoding ↵Gravatar Jonathan Beck1-7/+3
only happens in xml plists.
2008-10-25Handle debugging through utilitary functionsGravatar Jonathan Beck1-5/+3
2008-09-01Enforce a modified kr style.Gravatar Matt Colyer1-50/+65
Use "make indent" from now on before committing.
2008-08-22Handle known device through their UniqueDeviceID and use it as name to store ↵Gravatar Jonathan Beck1-104/+39
PEM device public key.
2008-08-21fixes config dir mode.Gravatar Jonathan Beck1-4/+5
2008-08-21g_io_channel_unref must be called after g_io_channel_shutdownGravatar Christophe Fergeau1-0/+4
2008-08-18Fixed bogus file permissions on the configuration directory.Gravatar Matt Colyer1-1/+1
2008-08-14Refactored and documented userpref.c.Gravatar Matt Colyer1-112/+193
2008-08-12fix length of known devicesGravatar Jonathan Beck1-1/+1
2008-08-11Fix compilation with gcc 4.3 -Wall -Werror -Wno-pointer-signGravatar Christophe Fergeau1-1/+2
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-11Fix buffer overflowGravatar Christophe Fergeau1-1/+1
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-11Add missing g_freeGravatar Christophe Fergeau1-2/+12
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-11Use g_file_get_contentsGravatar Christophe Fergeau1-21/+8
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-11Fix warnings about unused variablesGravatar Christophe Fergeau1-1/+0
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-05Zack's final changes to the pairing.Gravatar Matt Colyer1-5/+10
2008-08-05Store certificates and private keys as PEM files instead of storing them in ↵Gravatar Jonathan Beck1-81/+67
config file. Added functions to generate proper pairing request. Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-05Fix mem allocation in config initialization.Gravatar Jonathan Beck1-1/+1
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-05prepare config for pairingGravatar Jonathan Beck1-9/+221
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-05fixes some warningsGravatar Jonathan Beck1-1/+1
Signed-off-by: Matt Colyer <matt@colyer.name>
2008-08-04Zack's C. rewrite of usbmux (with a few additions by Matt Colyer).Gravatar Matt Colyer1-0/+2
2008-08-01I copied the wrong legal headers into the code. Opps.Gravatar Matt Colyer1-11/+12
2008-08-01A few cleanups, got rid of global afc variable.Gravatar Matt Colyer1-3/+3