diff options
| author | 2008-08-03 20:47:47 +0200 | |
|---|---|---|
| committer | 2008-08-05 23:28:10 -0700 | |
| commit | b9f9675e1e3978693bb2e7f66a7125473b3cb30e (patch) | |
| tree | ca582a51bce704bfb764e31b8ef65403b4e6fc86 /src/lockdown.h | |
| parent | b25fea997fc798e945dd7f19f8d0be0d8d3289d1 (diff) | |
| download | libimobiledevice-b9f9675e1e3978693bb2e7f66a7125473b3cb30e.tar.gz libimobiledevice-b9f9675e1e3978693bb2e7f66a7125473b3cb30e.tar.bz2 | |
Initial pairing implementation.
Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'src/lockdown.h')
| -rw-r--r-- | src/lockdown.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lockdown.h b/src/lockdown.h index 4abfe18..d24e770 100644 --- a/src/lockdown.h +++ b/src/lockdown.h | |||
| @@ -35,13 +35,19 @@ typedef struct { | |||
| 35 | int gtls_buffer_hack_len; | 35 | int gtls_buffer_hack_len; |
| 36 | } lockdownd_client; | 36 | } lockdownd_client; |
| 37 | 37 | ||
| 38 | int lockdownd_init(iPhone *phone, lockdownd_client **control); | ||
| 39 | |||
| 38 | lockdownd_client *new_lockdownd_client(iPhone *phone); | 40 | lockdownd_client *new_lockdownd_client(iPhone *phone); |
| 39 | int lockdownd_hello(lockdownd_client *control); | 41 | int lockdownd_hello(lockdownd_client *control); |
| 42 | int lockdownd_get_device_public_key(lockdownd_client *control, char **public_key); | ||
| 43 | int lockdownd_gen_pair_cert(char *public_key_b64, char **device_cert_b64, char **host_cert_b64, char **root_cert_b64); | ||
| 44 | int lockdownd_pair_device(lockdownd_client *control, char *public_key, char *host_id); | ||
| 40 | int lockdownd_recv(lockdownd_client *control, char **dump_data); | 45 | int lockdownd_recv(lockdownd_client *control, char **dump_data); |
| 41 | int lockdownd_send(lockdownd_client *control, char *raw_data, uint32 length); | 46 | int lockdownd_send(lockdownd_client *control, char *raw_data, uint32 length); |
| 42 | void lockdownd_close(lockdownd_client *control); | 47 | void lockdownd_close(lockdownd_client *control); |
| 43 | 48 | ||
| 44 | // SSL functions | 49 | // SSL functions |
| 50 | |||
| 45 | int lockdownd_start_SSL_session(lockdownd_client *control, const char *HostID); | 51 | int lockdownd_start_SSL_session(lockdownd_client *control, const char *HostID); |
| 46 | ssize_t lockdownd_securead(gnutls_transport_ptr_t transport, char *buffer, size_t length); | 52 | ssize_t lockdownd_securead(gnutls_transport_ptr_t transport, char *buffer, size_t length); |
| 47 | ssize_t lockdownd_secuwrite(gnutls_transport_ptr_t transport, char *buffer, size_t length); | 53 | ssize_t lockdownd_secuwrite(gnutls_transport_ptr_t transport, char *buffer, size_t length); |
