summaryrefslogtreecommitdiffstats
path: root/src/userpref.c
AgeCommit message (Collapse)AuthorFilesLines
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
2008-07-31Added a way to load HostID from a user specific config file.Gravatar Jonathan Beck1-0/+52
Signed-off-by: Matt Colyer <matt@colyer.name>