From 01ee14c0fc71e2b84d1f489b9856f87b667ad521 Mon Sep 17 00:00:00 2001 From: Glenn Glazer Date: Fri, 19 Aug 2016 12:12:48 -0700 Subject: SL-323: put back mac addr hash --- indra/newview/CMakeLists.txt | 1 + indra/newview/lllogininstance.cpp | 8 ++++++++ 2 files changed, 9 insertions(+) (limited to 'indra/newview') diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt index 999165528a..7a0df8d207 100644 --- a/indra/newview/CMakeLists.txt +++ b/indra/newview/CMakeLists.txt @@ -2300,6 +2300,7 @@ if (LL_TESTS) set_source_files_properties( lllogininstance.cpp + llhasheduniqueid.cpp PROPERTIES LL_TEST_ADDITIONAL_LIBRARIES "${BOOST_SYSTEM_LIBRARY}" ) diff --git a/indra/newview/lllogininstance.cpp b/indra/newview/lllogininstance.cpp index b9e9c12aec..374efa2986 100644 --- a/indra/newview/lllogininstance.cpp +++ b/indra/newview/lllogininstance.cpp @@ -192,11 +192,19 @@ void LLLoginInstance::constructAuthParams(LLPointer user_credentia // (re)initialize the request params with creds. LLSD request_params = user_credential->getLoginParams(); + unsigned char hashed_unique_id_string[MD5HEX_STR_SIZE]; + if ( ! llHashedUniqueID(hashed_unique_id_string) ) + { + + LL_WARNS() << "Not providing a unique id in request params" << LL_ENDL; + + } request_params["start"] = construct_start_string(); request_params["agree_to_tos"] = false; // Always false here. Set true in request_params["read_critical"] = false; // handleTOSResponse request_params["last_exec_event"] = mLastExecEvent; request_params["last_exec_duration"] = mLastExecDuration; + request_params["mac"] = (char*)hashed_unique_id_string; request_params["version"] = LLVersionInfo::getVersion(); request_params["channel"] = LLVersionInfo::getChannel(); request_params["platform"] = mPlatform; -- cgit v1.2.3