diff options
author | Martin Szulecki | 2013-11-19 22:04:30 +0100 |
---|---|---|
committer | Nikias Bassen | 2013-11-19 22:04:30 +0100 |
commit | 669ac822c564c5a6358daa7a49f6d0b336591558 (patch) | |
tree | d43ba8b1d4bb3c7008b483fc8f1896f41797fdb1 /src/dfu.c | |
parent | 26f34f031287b232b45df00e566c356fb95c399a (diff) | |
download | idevicerestore-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |