diff options
Diffstat (limited to 'src/lockdown.h')
| -rw-r--r-- | src/lockdown.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/lockdown.h b/src/lockdown.h index 9893e8e..1c83ab3 100644 --- a/src/lockdown.h +++ b/src/lockdown.h | |||
| @@ -32,29 +32,30 @@ | |||
| 32 | 32 | ||
| 33 | 33 | ||
| 34 | 34 | ||
| 35 | typedef struct lockdownd_client_s { | 35 | struct iphone_lckd_client_int { |
| 36 | usbmux_connection *connection; | 36 | usbmux_connection *connection; |
| 37 | gnutls_session_t *ssl_session; | 37 | gnutls_session_t *ssl_session; |
| 38 | int in_SSL; | 38 | int in_SSL; |
| 39 | char *gtls_buffer_hack; | 39 | char *gtls_buffer_hack; |
| 40 | int gtls_buffer_hack_len; | 40 | int gtls_buffer_hack_len; |
| 41 | } lockdownd_client; | 41 | }; |
| 42 | 42 | ||
| 43 | char *lockdownd_generate_hostid(); | 43 | char *lockdownd_generate_hostid(); |
| 44 | 44 | ||
| 45 | lockdownd_client *new_lockdownd_client(iPhone *phone); | 45 | iphone_lckd_client_t new_lockdownd_client(iphone_device_t phone); |
| 46 | int lockdownd_hello(lockdownd_client *control); | 46 | int lockdownd_hello(iphone_lckd_client_t control); |
| 47 | int lockdownd_get_device_uid(lockdownd_client *control, char **uid); | 47 | int lockdownd_get_device_uid(iphone_lckd_client_t control, char **uid); |
| 48 | int lockdownd_get_device_public_key(lockdownd_client *control, char **public_key); | 48 | int lockdownd_get_device_public_key(iphone_lckd_client_t control, char **public_key); |
| 49 | |||
| 49 | int lockdownd_gen_pair_cert(char *public_key_b64, char **device_cert_b64, char **host_cert_b64, char **root_cert_b64); | 50 | int lockdownd_gen_pair_cert(char *public_key_b64, char **device_cert_b64, char **host_cert_b64, char **root_cert_b64); |
| 50 | int lockdownd_pair_device(lockdownd_client *control, char *uid, char *host_id); | 51 | int lockdownd_pair_device(iphone_lckd_client_t control, char *public_key, char *host_id); |
| 51 | int lockdownd_recv(lockdownd_client *control, char **dump_data); | 52 | int lockdownd_recv(iphone_lckd_client_t control, char **dump_data); |
| 52 | int lockdownd_send(lockdownd_client *control, char *raw_data, uint32 length); | 53 | int lockdownd_send(iphone_lckd_client_t control, char *raw_data, uint32 length); |
| 53 | void lockdownd_close(lockdownd_client *control); | 54 | void lockdownd_close(iphone_lckd_client_t control); |
| 54 | 55 | ||
| 55 | // SSL functions | 56 | // SSL functions |
| 56 | 57 | ||
| 57 | int lockdownd_start_SSL_session(lockdownd_client *control, const char *HostID); | 58 | int lockdownd_start_SSL_session(iphone_lckd_client_t control, const char *HostID); |
| 58 | ssize_t lockdownd_securead(gnutls_transport_ptr_t transport, char *buffer, size_t length); | 59 | ssize_t lockdownd_securead(gnutls_transport_ptr_t transport, char *buffer, size_t length); |
| 59 | ssize_t lockdownd_secuwrite(gnutls_transport_ptr_t transport, char *buffer, size_t length); | 60 | ssize_t lockdownd_secuwrite(gnutls_transport_ptr_t transport, char *buffer, size_t length); |
| 60 | 61 | ||
