diff options
Diffstat (limited to 'src/lockdown.h')
| -rw-r--r-- | src/lockdown.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/lockdown.h b/src/lockdown.h index 931623a..82ea01f 100644 --- a/src/lockdown.h +++ b/src/lockdown.h | |||
| @@ -26,24 +26,18 @@ | |||
| 26 | #include <string.h> | 26 | #include <string.h> |
| 27 | 27 | ||
| 28 | #include "libiphone/lockdown.h" | 28 | #include "libiphone/lockdown.h" |
| 29 | #include "property_list_service.h" | ||
| 29 | 30 | ||
| 30 | struct lockdownd_client_int { | 31 | struct lockdownd_client_int { |
| 31 | iphone_connection_t connection; | 32 | property_list_service_client_t parent; |
| 32 | gnutls_session_t ssl_session; | 33 | int ssl_enabled; |
| 33 | gnutls_certificate_credentials_t ssl_certificate; | ||
| 34 | int in_SSL; | ||
| 35 | char *session_id; | 34 | char *session_id; |
| 36 | char *uuid; | 35 | char *uuid; |
| 36 | char *label; | ||
| 37 | }; | 37 | }; |
| 38 | 38 | ||
| 39 | lockdownd_error_t lockdownd_get_device_public_key(lockdownd_client_t client, gnutls_datum_t * public_key); | 39 | lockdownd_error_t lockdownd_get_device_public_key(lockdownd_client_t client, gnutls_datum_t * public_key); |
| 40 | lockdownd_error_t lockdownd_gen_pair_cert(gnutls_datum_t public_key, gnutls_datum_t * device_cert, | 40 | lockdownd_error_t lockdownd_gen_pair_cert(gnutls_datum_t public_key, gnutls_datum_t * device_cert, |
| 41 | gnutls_datum_t * host_cert, gnutls_datum_t * root_cert); | 41 | gnutls_datum_t * host_cert, gnutls_datum_t * root_cert); |
| 42 | 42 | ||
| 43 | /* SSL functions */ | ||
| 44 | lockdownd_error_t lockdownd_start_ssl_session(lockdownd_client_t client, const char *HostID); | ||
| 45 | ssize_t lockdownd_securead(gnutls_transport_ptr_t transport, char *buffer, size_t length); | ||
| 46 | ssize_t lockdownd_secuwrite(gnutls_transport_ptr_t transport, char *buffer, size_t length); | ||
| 47 | |||
| 48 | |||
| 49 | #endif | 43 | #endif |
