diff options
| author | 2010-01-13 00:10:03 +0100 | |
|---|---|---|
| committer | 2010-01-13 01:02:55 +0100 | |
| commit | 65346c9ddd92e6ea3650040d791a411b9ac308af (patch) | |
| tree | 9076bb41718b464a1842ef5ab17d5b0de4a91d0c /src/iphone.h | |
| parent | 4709c7301decf0fb275e6e0a9ad08c0afa4d774f (diff) | |
| download | libimobiledevice-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.h | 10 |
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 | ||
| 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,4 +48,7 @@ struct iphone_device_int { | |||
| 41 | void *conn_data; | 48 | void *conn_data; |
| 42 | }; | 49 | }; |
| 43 | 50 | ||
| 51 | iphone_error_t iphone_connection_enable_ssl(iphone_connection_t connection); | ||
| 52 | iphone_error_t iphone_connection_disable_ssl(iphone_connection_t connection); | ||
| 53 | |||
| 44 | #endif | 54 | #endif |
