summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-07-28 16:42:40 +0200
committerGravatar Nikias Bassen2012-07-28 16:42:40 +0200
commite2da5f0e79c9a63e12ef37d2fd087bcbff4c967d (patch)
tree9aab033537a0ac4809949ae4aa0553ae66f039a5 /src/idevicerestore.c
parenteaec785bac589c4d4a77cf72f72114688c2c1836 (diff)
downloadidevicerestore-e2da5f0e79c9a63e12ef37d2fd087bcbff4c967d.tar.gz
idevicerestore-e2da5f0e79c9a63e12ef37d2fd087bcbff4c967d.tar.bz2
tss: remove global use_apple_server symbol and use parameter instead
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r--src/idevicerestore.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index f33df1d..d38e672 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -45,8 +45,6 @@
#define VERSION_XML "version.xml"
-int use_apple_server;
-
static struct option longopts[] = {
{ "ecid", required_argument, NULL, 'i' },
{ "udid", required_argument, NULL, 'u' },
@@ -164,7 +162,6 @@ int main(int argc, char* argv[]) {
int shsh_only = 0;
int latest = 0;
char* shsh_dir = NULL;
- use_apple_server=1;
int result = 0;
// create an instance of our context
@@ -195,7 +192,7 @@ int main(int argc, char* argv[]) {
break;
case 's':
- use_apple_server=0;
+ client->tss_url = strdup("http://cydia.saurik.com/TSS/controller?action=2");
break;
case 'x':
@@ -1302,7 +1299,7 @@ int get_shsh_blobs(struct idevicerestore_client_t* client, uint64_t ecid, unsign
return -1;
}
- response = tss_send_request(request);
+ response = tss_send_request(request, client->tss_url);
if (response == NULL) {
info("ERROR: Unable to send TSS request\n");
plist_free(request);