diff options
Diffstat (limited to 'src/lockdown.h')
| -rw-r--r-- | src/lockdown.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lockdown.h b/src/lockdown.h index 185d27a..1e193f6 100644 --- a/src/lockdown.h +++ b/src/lockdown.h | |||
| @@ -24,6 +24,7 @@ | |||
| 24 | 24 | ||
| 25 | #include <gnutls/gnutls.h> | 25 | #include <gnutls/gnutls.h> |
| 26 | #include <string.h> | 26 | #include <string.h> |
| 27 | |||
| 27 | #include "libiphone/lockdown.h" | 28 | #include "libiphone/lockdown.h" |
| 28 | 29 | ||
| 29 | struct lockdownd_client_int { | 30 | struct lockdownd_client_int { |
| @@ -33,13 +34,14 @@ struct lockdownd_client_int { | |||
| 33 | char session_id[40]; | 34 | char session_id[40]; |
| 34 | }; | 35 | }; |
| 35 | 36 | ||
| 36 | iphone_error_t lockdownd_get_device_public_key(lockdownd_client_t client, gnutls_datum_t * public_key); | 37 | lockdownd_error_t lockdownd_get_device_public_key(lockdownd_client_t client, gnutls_datum_t * public_key); |
| 37 | iphone_error_t lockdownd_gen_pair_cert(gnutls_datum_t public_key, gnutls_datum_t * device_cert, | 38 | lockdownd_error_t lockdownd_gen_pair_cert(gnutls_datum_t public_key, gnutls_datum_t * device_cert, |
| 38 | gnutls_datum_t * host_cert, gnutls_datum_t * root_cert); | 39 | gnutls_datum_t * host_cert, gnutls_datum_t * root_cert); |
| 39 | 40 | ||
| 40 | // SSL functions | 41 | /* SSL functions */ |
| 41 | iphone_error_t lockdownd_start_ssl_session(lockdownd_client_t client, const char *HostID); | 42 | lockdownd_error_t lockdownd_start_ssl_session(lockdownd_client_t client, const char *HostID); |
| 42 | ssize_t lockdownd_securead(gnutls_transport_ptr_t transport, char *buffer, size_t length); | 43 | ssize_t lockdownd_securead(gnutls_transport_ptr_t transport, char *buffer, size_t length); |
| 43 | ssize_t lockdownd_secuwrite(gnutls_transport_ptr_t transport, char *buffer, size_t length); | 44 | ssize_t lockdownd_secuwrite(gnutls_transport_ptr_t transport, char *buffer, size_t length); |
| 44 | 45 | ||
| 46 | |||
| 45 | #endif | 47 | #endif |
