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 @@ /* - * lockdownd.h + * lockdown.h * Defines lockdown stuff, like the client struct. * + * Copyright (c) 2014 Martin Szulecki All Rights Reserved. * Copyright (c) 2008 Zach C. All Rights Reserved. * * This library is free software; you can redistribute it and/or @@ -19,24 +20,25 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef LOCKDOWND_H -#define LOCKDOWND_H - -#include <gnutls/gnutls.h> +#ifndef __LOCKDOWND_H +#define __LOCKDOWND_H +#include "idevice.h" #include "libimobiledevice/lockdown.h" #include "property_list_service.h" +#define LOCKDOWN_PROTOCOL_VERSION "2" + struct lockdownd_client_private { property_list_service_client_t parent; int ssl_enabled; char *session_id; - char *uuid; char *label; + idevice_t device; + unsigned char* cu_key; + unsigned int cu_key_len; }; -lockdownd_error_t lockdownd_get_device_public_key(lockdownd_client_t client, gnutls_datum_t * public_key); -lockdownd_error_t lockdownd_gen_pair_cert(gnutls_datum_t public_key, gnutls_datum_t * device_cert, - gnutls_datum_t * host_cert, gnutls_datum_t * root_cert); +lockdownd_error_t lockdown_check_result(plist_t dict, const char *query_match); #endif |