diff options
| author | 2012-02-02 16:24:44 +0100 | |
|---|---|---|
| committer | 2012-02-02 16:24:44 +0100 | |
| commit | 182fd0b9993aec0f52fb22631ebf0e7abccb921d (patch) | |
| tree | e3e0307032296f63afde05764720294496b16b47 | |
| parent | 0f1764d69aad6befec56de7ecd221a413ed363db (diff) | |
| download | idevicerestore-182fd0b9993aec0f52fb22631ebf0e7abccb921d.tar.gz idevicerestore-182fd0b9993aec0f52fb22631ebf0e7abccb921d.tar.bz2 | |
added nonce and nonce_size parameters to get_shsh_blobs function
| -rw-r--r-- | src/idevicerestore.c | 6 | ||||
| -rw-r--r-- | src/idevicerestore.h | 2 | 
2 files changed, 4 insertions, 4 deletions
| diff --git a/src/idevicerestore.c b/src/idevicerestore.c index c4ec2b8..e447903 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -215,7 +215,7 @@ int main(int argc, char* argv[]) {  		}  		info("Found ECID %llu\n", (long long unsigned int)client->ecid); -		if (get_shsh_blobs(client, client->ecid, build_identity, &client->tss) < 0) { +		if (get_shsh_blobs(client, client->ecid, NULL, 0, build_identity, &client->tss) < 0) {  			error("ERROR: Unable to get SHSH blobs for this device\n");  			return -1;  		} @@ -552,12 +552,12 @@ plist_t build_manifest_get_build_identity(plist_t build_manifest, uint32_t ident  	return plist_copy(build_identity);  } -int get_shsh_blobs(struct idevicerestore_client_t* client, uint64_t ecid, plist_t build_identity, plist_t* tss) { +int get_shsh_blobs(struct idevicerestore_client_t* client, uint64_t ecid, unsigned char* nonce, int nonce_size, plist_t build_identity, plist_t* tss) {  	plist_t request = NULL;  	plist_t response = NULL;  	*tss = NULL; -	request = tss_create_request(build_identity, ecid, NULL, 0); +	request = tss_create_request(build_identity, ecid, nonce, nonce_size);  	if (request == NULL) {  		error("ERROR: Unable to create TSS request\n");  		return -1; diff --git a/src/idevicerestore.h b/src/idevicerestore.h index c34dc26..f30eb5f 100644 --- a/src/idevicerestore.h +++ b/src/idevicerestore.h @@ -37,7 +37,7 @@ int check_device(struct idevicerestore_client_t* client);  int get_ecid(struct idevicerestore_client_t* client, uint64_t* ecid);  int get_bdid(struct idevicerestore_client_t* client, uint32_t* bdid);  int get_cpid(struct idevicerestore_client_t* client, uint32_t* cpid); -int get_shsh_blobs(struct idevicerestore_client_t* client, uint64_t ecid, plist_t build_identity, plist_t* tss); +int get_shsh_blobs(struct idevicerestore_client_t* client, uint64_t ecid, unsigned char* nonce, int nonce_size, plist_t build_identity, plist_t* tss);  void build_manifest_get_version_information(plist_t build_manifest, char** product_version, char** product_build);  plist_t build_manifest_get_build_identity(plist_t build_manifest, uint32_t identity);  int build_manifest_get_build_count(plist_t build_manifest); | 
