68 Commits

Author SHA1 Message Date
Nikias Bassen 23069d1034 userpref: [GnuTLS] Fix pairing record generation and improve error handling
In newer GnuTLS versions the parameters supplied to
gnutls_x509_privkey_import_rsa_raw() are actually checked for somewhat
sane values. Since we were passing the same values for all parameters,
this check fails and the device certificate is never generated.
However due to missing checks the pairing record was saved anyway, with
an empty device certificate. This led to TLS errors during communication,
leading to the "GnuTLS: Error in pull function" error message appearing
and the communication to fail.
This commit fixes the issue by passing some sane values, and also improves
the overall error handling during generation of the paring record.
2016-11-04 02:11:39 +01:00
Jay Freeman (saurik) 18811d92c9 userpref: Remove obsoleted function userpref_has_pair_record()
Since pair records are meanwhile handled by usbmuxd there is no need to check
for the existence of a pair record on disk. Asking usbmuxd for a pair record of
a given UDID is sufficient to know if it exists or not.
2016-07-27 02:46:47 -07:00
BALATON Zoltan 35b0543ec2 idevicebackup: fix some timestamps that are relative to the Mac epoch instead of Unix one 2016-04-01 22:53:13 +02:00
Joshua Hill df1f5c4d70 common: [security fix] Make sure sockets only listen locally 2015-12-29 22:27:17 +01:00
Nikias Bassen 40f7dd0649 common: Add missing gnutls/openssl CFLAGS to Makefile.am 2015-10-09 15:43:22 +02:00
Martin Szulecki 24ce2e27b4 Remove trailing whitespace errors from all files 2015-01-28 01:27:59 +01:00
Martin Szulecki f3c4db4f30 thread: Introduce thread_new and thread_free to cover handle leaks on WIN32 2015-01-13 00:14:55 +01:00
Martin Szulecki 3afdda798f common: Convert int16_t macro error types of userpref module into enum 2015-01-12 16:51:52 +01:00
Martin Szulecki 83c45ae97f Replace () with (void) in libinternalcommon and tools for consistency 2014-12-08 00:28:33 +01:00
Martin Szulecki e229e28cb3 debug: Fix linking failure on OS X by keeping debug level symbol internal
This change keeps the debug level symbol within the internal convenience
library and makes it accessible using an internal helper. This fixes
linking, prevents new exported symbols and finally allows proper control
of enabling debug messages.
2014-10-27 02:40:14 +01:00
Martin Szulecki 1e86eab358 debug: Fix symbol locality for linker so debug messages are printed again 2014-10-26 16:40:55 +01:00
Martin Szulecki 9418c9957a common: Remove obsolete symbol hiding macros from userpref module 2014-10-26 16:32:36 +01:00
BALATON Zoltan 8dc5f5ad7f Supress printing very long plists in debug output 2014-10-26 14:17:43 +01:00
Martin Szulecki 2f32ff99f9 common: Move size format helper to utils and use it in idevicebackup tools 2014-10-22 22:21:06 +02:00
Martin Szulecki 57538472cb common: Move string_toupper() helper to utils and use it in idevicebackup tools 2014-10-22 22:21:06 +02:00
Martin Szulecki 067c7c6826 common: Share idevicebackup helper string_build_path() from utils 2014-10-22 22:21:06 +02:00
Martin Szulecki 744ffa6da4 common: Change stpcpy() signature code style slightly 2014-10-22 22:21:06 +02:00
Martin Szulecki 2fe46acbbb common: Fix distcheck target 2014-10-03 16:29:42 +02:00
Martin Szulecki 4c4bbd31f5 Avoid exporting non-public symbols 2014-10-03 16:29:42 +02:00
Nikias Bassen 06d1e2c22a common: Fix Win32 linking by adding ws2_32 to libraries 2014-09-13 03:15:38 +02:00
Nikias Bassen 191186a39c userpref: Fix wrong documentation about return values of userpref_read_system_buid()
Also, add a debug message that will print the actual error code.
2014-08-06 23:11:38 +02:00
Nikias Bassen 99d83b9017 common/utils: Silence compiler warning about ignored return value from fread() 2014-08-06 03:07:35 +02:00
Martin Szulecki 179bd81273 Silence compiler warning about format strings using PRIu64 2014-05-21 15:31:53 +02:00
Nikias Bassen 4563ad4d2e ideviceinfo: Move plist print helper code to common 2014-05-21 11:56:51 +02:00
Nikias Bassen 2598ee6a63 common: Add missing libusbmuxd_CFLAGS and libusbmuxd_LIBS to Makefile.am 2014-05-20 20:04:59 +02:00