diff options
Diffstat (limited to 'src/iphone.h')
| -rw-r--r-- | src/iphone.h | 18 |
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 | ||
| 33 | struct ssl_data_int { | ||
| 34 | gnutls_certificate_credentials_t certificate; | ||
| 35 | gnutls_session_t session; | ||
| 36 | }; | ||
| 37 | typedef struct ssl_data_int *ssl_data_t; | ||
| 38 | |||
| 33 | struct iphone_connection_int { | 39 | struct 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 | ||
| 38 | struct iphone_device_int { | 45 | struct iphone_device_int { |
| @@ -41,14 +48,7 @@ struct iphone_device_int { | |||
| 41 | void *conn_data; | 48 | void *conn_data; |
| 42 | }; | 49 | }; |
| 43 | 50 | ||
| 44 | iphone_error_t iphone_device_send_xml_plist(iphone_connection_t connection, plist_t plist); | 51 | iphone_error_t iphone_connection_enable_ssl(iphone_connection_t connection); |
| 45 | iphone_error_t iphone_device_send_binary_plist(iphone_connection_t connection, plist_t plist); | 52 | iphone_error_t iphone_connection_disable_ssl(iphone_connection_t connection); |
| 46 | iphone_error_t iphone_device_send_encrypted_xml_plist(gnutls_session_t ssl_session, plist_t plist); | ||
| 47 | iphone_error_t iphone_device_send_encrypted_binary_plist(gnutls_session_t ssl_session, plist_t plist); | ||
| 48 | |||
| 49 | iphone_error_t iphone_device_receive_plist_with_timeout(iphone_connection_t connection, plist_t *plist, unsigned int timeout); | ||
| 50 | iphone_error_t iphone_device_receive_plist(iphone_connection_t connection, plist_t *plist); | ||
| 51 | iphone_error_t iphone_device_receive_encrypted_plist_with_timeout(gnutls_session_t ssl_session, plist_t *plist, unsigned int timeout); | ||
| 52 | iphone_error_t iphone_device_receive_encrypted_plist(gnutls_session_t ssl_session, plist_t *plist); | ||
| 53 | 53 | ||
| 54 | #endif | 54 | #endif |
