diff options
author | Nikias Bassen | 2012-07-17 19:44:39 +0200 |
---|---|---|
committer | Nikias Bassen | 2012-07-17 19:44:39 +0200 |
commit | 8262bf2271dd4a300720ecb28d866ee68900d045 (patch) | |
tree | b1774e6f1fff687b02667b12209eff3497301619 /src | |
parent | 705f7984fad06ab2ae3a13f5c74f2e79c5d79780 (diff) | |
download | idevicerestore-8262bf2271dd4a300720ecb28d866ee68900d045.tar.gz idevicerestore-8262bf2271dd4a300720ecb28d866ee68900d045.tar.bz2 |
tss: Use appropriate @HostPlatformInfo value in TSS requests
Diffstat (limited to 'src')
-rw-r--r-- | src/tss.c | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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(); |