From 8262bf2271dd4a300720ecb28d866ee68900d045 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 17 Jul 2012 19:44:39 +0200 Subject: tss: Use appropriate @HostPlatformInfo value in TSS requests --- src/tss.c | 16 ++++++++++++++-- 1 file 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(); -- cgit v1.1-32-gdbae