diff options
author | Martin Szulecki | 2009-07-25 02:40:25 +0200 |
---|---|---|
committer | Martin Szulecki | 2009-07-25 02:40:25 +0200 |
commit | f5e9d76ebd74999512ab73f44fabba86879b1c1f (patch) | |
tree | 9e01e1b8bda52c04c31c5334805a530403713e08 /src/lockdown.h | |
parent | d11abfb48218a37d9c66831ebec8b0a736d5385f (diff) | |
download | libimobiledevice-f5e9d76ebd74999512ab73f44fabba86879b1c1f.tar.gz libimobiledevice-f5e9d76ebd74999512ab73f44fabba86879b1c1f.tar.bz2 |
Update lockdown API and introduce new error codes
Diffstat (limited to 'src/lockdown.h')
-rw-r--r-- | src/lockdown.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lockdown.h b/src/lockdown.h index 185d27a..1e193f6 100644 --- a/src/lockdown.h +++ b/src/lockdown.h @@ -24,6 +24,7 @@ #include <gnutls/gnutls.h> #include <string.h> + #include "libiphone/lockdown.h" struct lockdownd_client_int { @@ -33,13 +34,14 @@ struct lockdownd_client_int { char session_id[40]; }; -iphone_error_t lockdownd_get_device_public_key(lockdownd_client_t client, gnutls_datum_t * public_key); -iphone_error_t lockdownd_gen_pair_cert(gnutls_datum_t public_key, gnutls_datum_t * device_cert, +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); -// SSL functions -iphone_error_t lockdownd_start_ssl_session(lockdownd_client_t client, const char *HostID); +/* SSL functions */ +lockdownd_error_t lockdownd_start_ssl_session(lockdownd_client_t client, const char *HostID); ssize_t lockdownd_securead(gnutls_transport_ptr_t transport, char *buffer, size_t length); ssize_t lockdownd_secuwrite(gnutls_transport_ptr_t transport, char *buffer, size_t length); + #endif |