summaryrefslogtreecommitdiffstats
path: root/src/lockdown.h
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-08-03 20:47:47 +0200
committerGravatar Matt Colyer2008-08-05 23:28:10 -0700
commitb9f9675e1e3978693bb2e7f66a7125473b3cb30e (patch)
treeca582a51bce704bfb764e31b8ef65403b4e6fc86 /src/lockdown.h
parentb25fea997fc798e945dd7f19f8d0be0d8d3289d1 (diff)
downloadlibplist-b9f9675e1e3978693bb2e7f66a7125473b3cb30e.tar.gz
libplist-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.h6
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 {
int gtls_buffer_hack_len;
} lockdownd_client;
+int lockdownd_init(iPhone *phone, lockdownd_client **control);
+
lockdownd_client *new_lockdownd_client(iPhone *phone);
int lockdownd_hello(lockdownd_client *control);
+int lockdownd_get_device_public_key(lockdownd_client *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 *public_key, 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);
// SSL functions
+
int lockdownd_start_SSL_session(lockdownd_client *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);