summaryrefslogtreecommitdiffstats
path: root/src/iphone.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/iphone.h')
-rw-r--r--src/iphone.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/iphone.h b/src/iphone.h
index 7ffc811..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,14 +48,7 @@ struct iphone_device_int {
41 void *conn_data; 48 void *conn_data;
42}; 49};
43 50
44iphone_error_t iphone_device_send_xml_plist(iphone_connection_t connection, plist_t plist); 51iphone_error_t iphone_connection_enable_ssl(iphone_connection_t connection);
45iphone_error_t iphone_device_send_binary_plist(iphone_connection_t connection, plist_t plist); 52iphone_error_t iphone_connection_disable_ssl(iphone_connection_t connection);
46iphone_error_t iphone_device_send_encrypted_xml_plist(gnutls_session_t ssl_session, plist_t plist);
47iphone_error_t iphone_device_send_encrypted_binary_plist(gnutls_session_t ssl_session, plist_t plist);
48
49iphone_error_t iphone_device_receive_plist_with_timeout(iphone_connection_t connection, plist_t *plist, unsigned int timeout);
50iphone_error_t iphone_device_receive_plist(iphone_connection_t connection, plist_t *plist);
51iphone_error_t iphone_device_receive_encrypted_plist_with_timeout(gnutls_session_t ssl_session, plist_t *plist, unsigned int timeout);
52iphone_error_t iphone_device_receive_encrypted_plist(gnutls_session_t ssl_session, plist_t *plist);
53 53
54#endif 54#endif