summaryrefslogtreecommitdiffstats
path: root/src/idevice.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-11-27 14:12:57 +0100
committerGravatar Nikias Bassen2010-11-27 14:12:57 +0100
commit363098c083a8cd7acc6ca902c92ecdae0f3ef2fb (patch)
treec22775263249ba165cf3193314ed8649d17f0487 /src/idevice.h
parent139306caebdcc9e4383795227ca3662d484e04d5 (diff)
downloadlibimobiledevice-363098c083a8cd7acc6ca902c92ecdae0f3ef2fb.tar.gz
libimobiledevice-363098c083a8cd7acc6ca902c92ecdae0f3ef2fb.tar.bz2
Fix iOS 4.2 GnuTLS issue by passing a certificate in the handshake
Diffstat (limited to 'src/idevice.h')
-rw-r--r--src/idevice.h7
1 files changed, 6 insertions, 1 deletions
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 <gnutls/gnutls.h>
+#include <gnutls/x509.h>
#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;