| 1 |
/* |
| 2 |
* lockdown.h |
| 3 |
* Defines lockdown stuff, like the client struct. |
| 4 |
* |
| 5 |
* Copyright (c) 2014 Martin Szulecki All Rights Reserved. |
| 6 |
* Copyright (c) 2008 Zach C. All Rights Reserved. |
| 7 |
* |
| 8 |
* This library is free software; you can redistribute it and/or |
| 9 |
* modify it under the terms of the GNU Lesser General Public |
| 10 |
* License as published by the Free Software Foundation; either |
| 11 |
* version 2.1 of the License, or (at your option) any later version. |
| 12 |
* |
| 13 |
* This library is distributed in the hope that it will be useful, |
| 14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 |
* Lesser General Public License for more details. |
| 17 |
* |
| 18 |
* You should have received a copy of the GNU Lesser General Public |
| 19 |
* License along with this library; if not, write to the Free Software |
| 20 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 |
*/ |
| 22 |
|
| 23 |
#ifndef __LOCKDOWND_H |
| 24 |
#define __LOCKDOWND_H |
| 25 |
|
| 26 |
#include "idevice.h" |
| 27 |
#include "libimobiledevice/lockdown.h" |
| 28 |
#include "property_list_service.h" |
| 29 |
|
| 30 |
#define LOCKDOWN_PROTOCOL_VERSION "2" |
| 31 |
|
| 32 |
struct lockdownd_client_private { |
| 33 |
property_list_service_client_t parent; |
| 34 |
int ssl_enabled; |
| 35 |
char *session_id; |
| 36 |
char *label; |
| 37 |
idevice_t device; |
| 38 |
unsigned char* cu_key; |
| 39 |
unsigned int cu_key_len; |
| 40 |
}; |
| 41 |
|
| 42 |
lockdownd_error_t lockdown_check_result(plist_t dict, const char *query_match); |
| 43 |
|
| 44 |
#endif |