From 363098c083a8cd7acc6ca902c92ecdae0f3ef2fb Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 27 Nov 2010 14:12:57 +0100 Subject: Fix iOS 4.2 GnuTLS issue by passing a certificate in the handshake --- src/idevice.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/idevice.h') diff --git a/src/idevice.h b/src/idevice.h index a4ce251..231b3ab 100644 --- a/src/idevice.h +++ b/src/idevice.h @@ -22,6 +22,7 @@ #define IDEVICE_H #include +#include #include "libimobiledevice/libimobiledevice.h" @@ -30,8 +31,12 @@ enum connection_type { }; struct ssl_data_private { - gnutls_certificate_credentials_t certificate; + gnutls_certificate_credentials_t certificate; gnutls_session_t session; + gnutls_x509_privkey_t root_privkey; + gnutls_x509_crt_t root_cert; + gnutls_x509_privkey_t host_privkey; + gnutls_x509_crt_t host_cert; }; typedef struct ssl_data_private *ssl_data_t; -- cgit v1.1-32-gdbae