summaryrefslogtreecommitdiffstats
path: root/include/libimobiledevice
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2016-11-04 02:11:39 +0100
committerGravatar Nikias Bassen2016-11-04 02:11:39 +0100
commit23069d10341ce637fdad7321d447c53752dba48c (patch)
treecf5066bc1a2c21dc222bb97a975ba5fecb10f138 /include/libimobiledevice
parent8c37b9ca13211c197f3452356b73114c39f549fd (diff)
downloadlibimobiledevice-23069d10341ce637fdad7321d447c53752dba48c.tar.gz
libimobiledevice-23069d10341ce637fdad7321d447c53752dba48c.tar.bz2
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.
Diffstat (limited to 'include/libimobiledevice')
0 files changed, 0 insertions, 0 deletions