summaryrefslogtreecommitdiffstats
path: root/src/tss.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-07-17 19:44:39 +0200
committerGravatar Nikias Bassen2012-07-17 19:44:39 +0200
commit8262bf2271dd4a300720ecb28d866ee68900d045 (patch)
treeb1774e6f1fff687b02667b12209eff3497301619 /src/tss.c
parent705f7984fad06ab2ae3a13f5c74f2e79c5d79780 (diff)
downloadidevicerestore-8262bf2271dd4a300720ecb28d866ee68900d045.tar.gz
idevicerestore-8262bf2271dd4a300720ecb28d866ee68900d045.tar.bz2
tss: Use appropriate @HostPlatformInfo value in TSS requests
Diffstat (limited to 'src/tss.c')
-rw-r--r--src/tss.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/tss.c b/src/tss.c
index 62df0a4..98b651c 100644
--- a/src/tss.c
+++ b/src/tss.c
@@ -90,7 +90,13 @@ plist_t tss_create_request(plist_t build_identity, uint64_t ecid, unsigned char*
plist_dict_insert_item(tss_request, "@APTicket", plist_new_bool(1));
plist_dict_insert_item(tss_request, "@BBTicket", plist_new_bool(1));
plist_dict_insert_item(tss_request, "@HostIpAddress", plist_new_string("192.168.0.1"));
- plist_dict_insert_item(tss_request, "@HostPlatformInfo", plist_new_string("mac"));
+ plist_dict_insert_item(tss_request, "@HostPlatformInfo",
+#ifdef WIN32
+ plist_new_string("windows")
+#else
+ plist_new_string("mac")
+#endif
+ );
plist_dict_insert_item(tss_request, "@Locality", plist_new_string("en_US"));
char* guid = generate_guid();
if (guid) {
@@ -217,7 +223,13 @@ plist_t tss_create_baseband_request(plist_t build_identity, uint64_t ecid, uint6
plist_t tss_request = plist_new_dict();
plist_dict_insert_item(tss_request, "@BBTicket", plist_new_bool(1));
plist_dict_insert_item(tss_request, "@HostIpAddress", plist_new_string("192.168.0.1"));
- plist_dict_insert_item(tss_request, "@HostPlatformInfo", plist_new_string("mac"));
+ plist_dict_insert_item(tss_request, "@HostPlatformInfo",
+#ifdef WIN32
+ plist_new_string("windows")
+#else
+ plist_new_string("mac")
+#endif
+ );
plist_dict_insert_item(tss_request, "@Locality", plist_new_string("en_US"));
char* guid = generate_guid();