summaryrefslogtreecommitdiffstats
path: root/src/dfu.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-11-19 22:04:30 +0100
committerGravatar Nikias Bassen2013-11-19 22:04:30 +0100
commit669ac822c564c5a6358daa7a49f6d0b336591558 (patch)
treed43ba8b1d4bb3c7008b483fc8f1896f41797fdb1 /src/dfu.c
parent26f34f031287b232b45df00e566c356fb95c399a (diff)
downloadidevicerestore-669ac822c564c5a6358daa7a49f6d0b336591558.tar.gz
idevicerestore-669ac822c564c5a6358daa7a49f6d0b336591558.tar.bz2
tss: Refactor TSS handlers for Image4 support and flexibility
Diffstat (limited to 'src/dfu.c')
-rw-r--r--src/dfu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dfu.c b/src/dfu.c
index 37fa2d4..5fdbfd5 100644
--- a/src/dfu.c
+++ b/src/dfu.c
@@ -166,7 +166,7 @@ int dfu_send_component(struct idevicerestore_client_t* client, plist_t build_ide
int flag = 1;
if (client->tss) {
- if (tss_get_entry_path(client->tss, component, &path) < 0) {
+ if (tss_response_get_path_by_entry(client->tss, component, &path) < 0) {
debug("NOTE: No path for component %s in TSS, will fetch from build_identity\n", component);
}
}
@@ -188,7 +188,7 @@ int dfu_send_component(struct idevicerestore_client_t* client, plist_t build_ide
if (!(client->flags & FLAG_CUSTOM) && (strcmp(component, "iBEC") == 0)) {
unsigned char* ticket = NULL;
unsigned int tsize = 0;
- if (tss_get_ticket(client->tss, &ticket, &tsize) < 0) {
+ if (tss_response_get_ap_ticket(client->tss, &ticket, &tsize) < 0) {
error("ERROR: Unable to get ApTicket from TSS request\n");
return -1;
}
@@ -379,7 +379,7 @@ int dfu_enter_recovery(struct idevicerestore_client_t* client, plist_t build_ide
if (nonce_changed && !(client->flags & FLAG_CUSTOM)) {
// Welcome iOS5. We have to re-request the TSS with our nonce.
plist_free(client->tss);
- if (get_shsh_blobs(client, build_identity, &client->tss) < 0) {
+ if (get_tss_response(client, build_identity, &client->tss) < 0) {
error("ERROR: Unable to get SHSH blobs for this device\n");
return -1;
}