diff options
author | Nikias Bassen | 2016-11-04 02:11:39 +0100 |
---|---|---|
committer | Nikias Bassen | 2016-11-04 02:11:39 +0100 |
commit | 23069d10341ce637fdad7321d447c53752dba48c (patch) | |
tree | cf5066bc1a2c21dc222bb97a975ba5fecb10f138 /src/debugserver.h | |
parent | 8c37b9ca13211c197f3452356b73114c39f549fd (diff) | |
download | libimobiledevice-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 'src/debugserver.h')
0 files changed, 0 insertions, 0 deletions