summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();