aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llappviewermacosx.cpp
diff options
context:
space:
mode:
authorDavid Seikel2011-03-03 21:50:24 +1000
committerDavid Seikel2011-03-03 21:50:24 +1000
commitec5012c0a76a606c43e5f9fcf4a959251a503f6d (patch)
treee8a3192b093a042a0b27ea154886453c00f06364 /linden/indra/newview/llappviewermacosx.cpp
parentOne half of a crude attempt at providing IRC support. (diff)
downloadmeta-impy-ec5012c0a76a606c43e5f9fcf4a959251a503f6d.zip
meta-impy-ec5012c0a76a606c43e5f9fcf4a959251a503f6d.tar.gz
meta-impy-ec5012c0a76a606c43e5f9fcf4a959251a503f6d.tar.bz2
meta-impy-ec5012c0a76a606c43e5f9fcf4a959251a503f6d.tar.xz
Privacy issue - Don't send private data across the 'net.
Yes, this makes the meta-impy viewer non compliant with LL's TPVP, we don't care this is a viewer for the meta grid. We care about privacy. We have our own effective methods of implementing bans.
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llappviewermacosx.cpp22
1 files changed, 1 insertions, 21 deletions
diff --git a/linden/indra/newview/llappviewermacosx.cpp b/linden/indra/newview/llappviewermacosx.cpp
index 5496e5b..ee4648f 100644
--- a/linden/indra/newview/llappviewermacosx.cpp
+++ b/linden/indra/newview/llappviewermacosx.cpp
@@ -419,27 +419,7 @@ std::string LLAppViewerMacOSX::generateSerialNumber()
419 char serial_md5[MD5HEX_STR_SIZE]; // Flawfinder: ignore 419 char serial_md5[MD5HEX_STR_SIZE]; // Flawfinder: ignore
420 serial_md5[0] = 0; 420 serial_md5[0] = 0;
421 421
422 // JC: Sample code from http://developer.apple.com/technotes/tn/tn1103.html 422 // Don't do anything, serious privacy breach to leak internal identifying numbers out to the 'net.
423 CFStringRef serialNumber = NULL;
424 io_service_t platformExpert = IOServiceGetMatchingService(kIOMasterPortDefault,
425 IOServiceMatching("IOPlatformExpertDevice"));
426 if (platformExpert) {
427 serialNumber = (CFStringRef) IORegistryEntryCreateCFProperty(platformExpert,
428 CFSTR(kIOPlatformSerialNumberKey),
429 kCFAllocatorDefault, 0);
430 IOObjectRelease(platformExpert);
431 }
432
433 if (serialNumber)
434 {
435 char buffer[MAX_STRING]; // Flawfinder: ignore
436 if (CFStringGetCString(serialNumber, buffer, MAX_STRING, kCFStringEncodingASCII))
437 {
438 LLMD5 md5( (unsigned char*)buffer );
439 md5.hex_digest(serial_md5);
440 }
441 CFRelease(serialNumber);
442 }
443 423
444 return serial_md5; 424 return serial_md5;
445} 425}