summaryrefslogtreecommitdiffstats
path: root/src/iphone.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-01-13 00:10:03 +0100
committerGravatar Martin Szulecki2010-01-13 01:02:55 +0100
commit65346c9ddd92e6ea3650040d791a411b9ac308af (patch)
tree9076bb41718b464a1842ef5ab17d5b0de4a91d0c /src/iphone.h
parent4709c7301decf0fb275e6e0a9ad08c0afa4d774f (diff)
downloadlibimobiledevice-65346c9ddd92e6ea3650040d791a411b9ac308af.tar.gz
libimobiledevice-65346c9ddd92e6ea3650040d791a411b9ac308af.tar.bz2
Move SSL code into iphone.c/iphone.h
Diffstat (limited to 'src/iphone.h')
-rw-r--r--src/iphone.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/iphone.h b/src/iphone.h
index 51f9c9d..2755349 100644
--- a/src/iphone.h
+++ b/src/iphone.h
@@ -30,9 +30,16 @@ enum connection_type {
30 CONNECTION_USBMUXD = 1 30 CONNECTION_USBMUXD = 1
31}; 31};
32 32
33struct ssl_data_int {
34 gnutls_certificate_credentials_t certificate;
35 gnutls_session_t session;
36};
37typedef struct ssl_data_int *ssl_data_t;
38
33struct iphone_connection_int { 39struct iphone_connection_int {
34 enum connection_type type; 40 enum connection_type type;
35 void *data; 41 void *data;
42 ssl_data_t ssl_data;
36}; 43};
37 44
38struct iphone_device_int { 45struct iphone_device_int {
@@ -41,4 +48,7 @@ struct iphone_device_int {
41 void *conn_data; 48 void *conn_data;
42}; 49};
43 50
51iphone_error_t iphone_connection_enable_ssl(iphone_connection_t connection);
52iphone_error_t iphone_connection_disable_ssl(iphone_connection_t connection);
53
44#endif 54#endif