diff options
author | Jonathan Beck | 2008-08-19 23:29:43 +0200 |
---|---|---|
committer | Jonathan Beck | 2008-08-31 19:27:20 +0200 |
commit | 21d5d4ac4b4bd419e0d8752147464984497c98ec (patch) | |
tree | 7edcb52dff793f5728653cf42d3b1854f3e2c181 /src/lockdown.h | |
parent | 89050631439f71ad652e68b59020f8801e100e45 (diff) | |
download | libplist-21d5d4ac4b4bd419e0d8752147464984497c98ec.tar.gz libplist-21d5d4ac4b4bd419e0d8752147464984497c98ec.tar.bz2 |
migrate lockdown.c
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 @@ -typedef struct lockdownd_client_s { +struct iphone_lckd_client_int { usbmux_connection *connection; gnutls_session_t *ssl_session; int in_SSL; char *gtls_buffer_hack; int gtls_buffer_hack_len; -} lockdownd_client; +}; char *lockdownd_generate_hostid(); -lockdownd_client *new_lockdownd_client(iPhone *phone); -int lockdownd_hello(lockdownd_client *control); -int lockdownd_get_device_uid(lockdownd_client *control, char **uid); -int lockdownd_get_device_public_key(lockdownd_client *control, char **public_key); +iphone_lckd_client_t new_lockdownd_client(iphone_device_t phone); +int lockdownd_hello(iphone_lckd_client_t control); +int lockdownd_get_device_uid(iphone_lckd_client_t control, char **uid); +int lockdownd_get_device_public_key(iphone_lckd_client_t control, char **public_key); + int lockdownd_gen_pair_cert(char *public_key_b64, char **device_cert_b64, char **host_cert_b64, char **root_cert_b64); -int lockdownd_pair_device(lockdownd_client *control, char *uid, char *host_id); -int lockdownd_recv(lockdownd_client *control, char **dump_data); -int lockdownd_send(lockdownd_client *control, char *raw_data, uint32 length); -void lockdownd_close(lockdownd_client *control); +int lockdownd_pair_device(iphone_lckd_client_t control, char *public_key, char *host_id); +int lockdownd_recv(iphone_lckd_client_t control, char **dump_data); +int lockdownd_send(iphone_lckd_client_t control, char *raw_data, uint32 length); +void lockdownd_close(iphone_lckd_client_t control); // SSL functions -int lockdownd_start_SSL_session(lockdownd_client *control, const char *HostID); +int lockdownd_start_SSL_session(iphone_lckd_client_t control, const char *HostID); ssize_t lockdownd_securead(gnutls_transport_ptr_t transport, char *buffer, size_t length); ssize_t lockdownd_secuwrite(gnutls_transport_ptr_t transport, char *buffer, size_t length); |