diff options
| author | 2008-12-13 12:21:03 +0100 | |
|---|---|---|
| committer | 2008-12-13 12:21:03 +0100 | |
| commit | 3fdd24aea06a9bf38d9d34fb8bccbb7023ed3100 (patch) | |
| tree | 1080d26eca01c885efb33f3f98821a981a25e8b4 /src/lockdown.h | |
| parent | 3d8ba053deeacd74e621469d3d45d1db38ee411a (diff) | |
| download | libplist-3fdd24aea06a9bf38d9d34fb8bccbb7023ed3100.tar.gz libplist-3fdd24aea06a9bf38d9d34fb8bccbb7023ed3100.tar.bz2 | |
Fork libiphone and remove anything non plist specific.
Update library and make related files acordingly .
Diffstat (limited to 'src/lockdown.h')
| -rw-r--r-- | src/lockdown.h | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/src/lockdown.h b/src/lockdown.h deleted file mode 100644 index 8b3dd41..0000000 --- a/src/lockdown.h +++ /dev/null | |||
| @@ -1,62 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * lockdown.h | ||
| 3 | * Defines lockdown stuff, like the client struct. | ||
| 4 | * | ||
| 5 | * Copyright (c) 2008 Zach C. All Rights Reserved. | ||
| 6 | * | ||
| 7 | * This library is free software; you can redistribute it and/or | ||
| 8 | * modify it under the terms of the GNU Lesser General Public | ||
| 9 | * License as published by the Free Software Foundation; either | ||
| 10 | * version 2.1 of the License, or (at your option) any later version. | ||
| 11 | * | ||
| 12 | * This library is distributed in the hope that it will be useful, | ||
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 15 | * Lesser General Public License for more details. | ||
| 16 | * | ||
| 17 | * You should have received a copy of the GNU Lesser General Public | ||
| 18 | * License along with this library; if not, write to the Free Software | ||
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 20 | */ | ||
| 21 | |||
| 22 | #ifndef LOCKDOWND_H | ||
| 23 | #define LOCKDOWND_H | ||
| 24 | |||
| 25 | #include "usbmux.h" | ||
| 26 | #include "plist.h" | ||
| 27 | |||
| 28 | #include <gnutls/gnutls.h> | ||
| 29 | #include <string.h> | ||
| 30 | #include <libiphone/libiphone.h> | ||
| 31 | |||
| 32 | |||
| 33 | |||
| 34 | |||
| 35 | struct iphone_lckd_client_int { | ||
| 36 | iphone_umux_client_t connection; | ||
| 37 | gnutls_session_t *ssl_session; | ||
| 38 | int in_SSL; | ||
| 39 | char *gtls_buffer_hack; | ||
| 40 | int gtls_buffer_hack_len; | ||
| 41 | }; | ||
| 42 | |||
| 43 | iphone_lckd_client_t new_lockdownd_client(iphone_device_t phone); | ||
| 44 | iphone_error_t lockdownd_hello(iphone_lckd_client_t control); | ||
| 45 | iphone_error_t lockdownd_generic_get_value(iphone_lckd_client_t control, char *req_key, char *req_string, | ||
| 46 | gnutls_datum_t * value); | ||
| 47 | iphone_error_t lockdownd_get_device_uid(iphone_lckd_client_t control, char **uid); | ||
| 48 | iphone_error_t lockdownd_get_device_public_key(iphone_lckd_client_t control, gnutls_datum_t * public_key); | ||
| 49 | |||
| 50 | iphone_error_t lockdownd_gen_pair_cert(gnutls_datum_t public_key, gnutls_datum_t * device_cert, | ||
| 51 | gnutls_datum_t * host_cert, gnutls_datum_t * root_cert); | ||
| 52 | iphone_error_t lockdownd_pair_device(iphone_lckd_client_t control, char *uid, char *host_id); | ||
| 53 | void lockdownd_close(iphone_lckd_client_t control); | ||
| 54 | |||
| 55 | // SSL functions | ||
| 56 | |||
| 57 | iphone_error_t lockdownd_start_SSL_session(iphone_lckd_client_t control, const char *HostID); | ||
| 58 | ssize_t lockdownd_securead(gnutls_transport_ptr_t transport, char *buffer, size_t length); | ||
| 59 | ssize_t lockdownd_secuwrite(gnutls_transport_ptr_t transport, char *buffer, size_t length); | ||
| 60 | |||
| 61 | |||
| 62 | #endif | ||
