diff options
Diffstat (limited to 'src/lockdown.h')
-rw-r--r-- | src/lockdown.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/lockdown.h b/src/lockdown.h index a25e59d..ba291ec 100644 --- a/src/lockdown.h +++ b/src/lockdown.h | |||
@@ -1,7 +1,8 @@ | |||
1 | /* | 1 | /* |
2 | * lockdownd.h | 2 | * lockdown.h |
3 | * Defines lockdown stuff, like the client struct. | 3 | * Defines lockdown stuff, like the client struct. |
4 | * | 4 | * |
5 | * Copyright (c) 2014 Martin Szulecki All Rights Reserved. | ||
5 | * Copyright (c) 2008 Zach C. All Rights Reserved. | 6 | * Copyright (c) 2008 Zach C. All Rights Reserved. |
6 | * | 7 | * |
7 | * This library is free software; you can redistribute it and/or | 8 | * This library is free software; you can redistribute it and/or |
@@ -19,24 +20,25 @@ | |||
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
20 | */ | 21 | */ |
21 | 22 | ||
22 | #ifndef LOCKDOWND_H | 23 | #ifndef __LOCKDOWND_H |
23 | #define LOCKDOWND_H | 24 | #define __LOCKDOWND_H |
24 | |||
25 | #include <gnutls/gnutls.h> | ||
26 | 25 | ||
26 | #include "idevice.h" | ||
27 | #include "libimobiledevice/lockdown.h" | 27 | #include "libimobiledevice/lockdown.h" |
28 | #include "property_list_service.h" | 28 | #include "property_list_service.h" |
29 | 29 | ||
30 | #define LOCKDOWN_PROTOCOL_VERSION "2" | ||
31 | |||
30 | struct lockdownd_client_private { | 32 | struct lockdownd_client_private { |
31 | property_list_service_client_t parent; | 33 | property_list_service_client_t parent; |
32 | int ssl_enabled; | 34 | int ssl_enabled; |
33 | char *session_id; | 35 | char *session_id; |
34 | char *uuid; | ||
35 | char *label; | 36 | char *label; |
37 | idevice_t device; | ||
38 | unsigned char* cu_key; | ||
39 | unsigned int cu_key_len; | ||
36 | }; | 40 | }; |
37 | 41 | ||
38 | lockdownd_error_t lockdownd_get_device_public_key(lockdownd_client_t client, gnutls_datum_t * public_key); | 42 | lockdownd_error_t lockdown_check_result(plist_t dict, const char *query_match); |
39 | lockdownd_error_t lockdownd_gen_pair_cert(gnutls_datum_t public_key, gnutls_datum_t * device_cert, | ||
40 | gnutls_datum_t * host_cert, gnutls_datum_t * root_cert); | ||
41 | 43 | ||
42 | #endif | 44 | #endif |