aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llstartup.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llstartup.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp
index ec45955..73aa9ba 100644
--- a/linden/indra/newview/llstartup.cpp
+++ b/linden/indra/newview/llstartup.cpp
@@ -977,8 +977,8 @@ bool idle_startup()
977 977
978 // create necessary directories 978 // create necessary directories
979 // *FIX: these mkdir's should error check 979 // *FIX: these mkdir's should error check
980 gDirUtilp->setLindenUserDir(gHippoGridManager->getCurrentGridNick(), firstname, lastname); 980 gDirUtilp->setViewerUserDir(gHippoGridManager->getCurrentGridNick(), firstname, lastname);
981 LLFile::mkdir(gDirUtilp->getLindenUserDir()); 981 LLFile::mkdir(gDirUtilp->getViewerUserDir());
982 982
983 // Set PerAccountSettingsFile to the default value. 983 // Set PerAccountSettingsFile to the default value.
984 gSavedSettings.setString("PerAccountSettingsFile", 984 gSavedSettings.setString("PerAccountSettingsFile",
@@ -1254,7 +1254,7 @@ bool idle_startup()
1254 1254
1255 char hashed_mac_string[MD5HEX_STR_SIZE]; /* Flawfinder: ignore */ 1255 char hashed_mac_string[MD5HEX_STR_SIZE]; /* Flawfinder: ignore */
1256 LLMD5 hashed_mac; 1256 LLMD5 hashed_mac;
1257 hashed_mac.update( gMACAddress, MAC_ADDRESS_BYTES ); 1257 hashed_mac.update( (const unsigned char*) "012345", MAC_ADDRESS_BYTES ); // Nope, LL ain't getting our MAC, and meta7 does not need it.
1258 hashed_mac.finalize(); 1258 hashed_mac.finalize();
1259 hashed_mac.hex_digest(hashed_mac_string); 1259 hashed_mac.hex_digest(hashed_mac_string);
1260 1260
@@ -2471,7 +2471,7 @@ bool idle_startup()
2471 } 2471 }
2472 } 2472 }
2473 // Either we want to show tutorial because this is the first login 2473 // Either we want to show tutorial because this is the first login
2474 // to a Linden Help Island or the user quit with the tutorial 2474 // to a grid Help Island or the user quit with the tutorial
2475 // visible. JC 2475 // visible. JC
2476 if (show_hud 2476 if (show_hud
2477 || gSavedSettings.getBOOL("ShowTutorial")) 2477 || gSavedSettings.getBOOL("ShowTutorial"))
@@ -3082,7 +3082,7 @@ std::string LLStartUp::loadPasswordFromDisk()
3082#if LL_DARWIN 3082#if LL_DARWIN
3083 UInt32 passwordLength; 3083 UInt32 passwordLength;
3084 char *passwordData; 3084 char *passwordData;
3085 OSStatus stat = SecKeychainFindGenericPassword(NULL, 10, "Imprudence", 0, NULL, &passwordLength, (void**)&passwordData, NULL); 3085 OSStatus stat = SecKeychainFindGenericPassword(NULL, 10, "meta-impy", 0, NULL, &passwordLength, (void**)&passwordData, NULL);
3086 if (stat == noErr) 3086 if (stat == noErr)
3087 { 3087 {
3088 if (passwordLength == HASHED_LENGTH) 3088 if (passwordLength == HASHED_LENGTH)
@@ -3103,7 +3103,7 @@ std::string LLStartUp::loadPasswordFromDisk()
3103 fclose(fp); 3103 fclose(fp);
3104 3104
3105 // Decipher with MAC address 3105 // Decipher with MAC address
3106 LLXORCipher cipher(gMACAddress, 6); 3106 LLXORCipher cipher(gMACAddress, 6); // The one and only legitimate use of the users MAC.
3107 cipher.decrypt(buffer, HASHED_LENGTH); 3107 cipher.decrypt(buffer, HASHED_LENGTH);
3108 3108
3109 buffer[HASHED_LENGTH] = '\0'; 3109 buffer[HASHED_LENGTH] = '\0';
@@ -3130,7 +3130,7 @@ void LLStartUp::savePasswordToDisk(const std::string& hashed_password)
3130{ 3130{
3131#if LL_DARWIN 3131#if LL_DARWIN
3132 SecKeychainItemRef keychainItem; 3132 SecKeychainItemRef keychainItem;
3133 OSStatus status = SecKeychainFindGenericPassword(NULL, 10, "Imprudence", 0, NULL, NULL, NULL, &keychainItem); 3133 OSStatus status = SecKeychainFindGenericPassword(NULL, 10, "meta-impy", 0, NULL, NULL, NULL, &keychainItem);
3134 if (status == noErr) 3134 if (status == noErr)
3135 { 3135 {
3136 SecKeychainItemModifyAttributesAndData(keychainItem, NULL, hashed_password.length(), hashed_password.c_str()); 3136 SecKeychainItemModifyAttributesAndData(keychainItem, NULL, hashed_password.length(), hashed_password.c_str());
@@ -3138,7 +3138,7 @@ void LLStartUp::savePasswordToDisk(const std::string& hashed_password)
3138 } 3138 }
3139 else 3139 else
3140 { 3140 {
3141 SecKeychainAddGenericPassword(NULL, 10, "Imprudence", 0, NULL, hashed_password.length(), hashed_password.c_str(), NULL); 3141 SecKeychainAddGenericPassword(NULL, 10, "meta-impy", 0, NULL, hashed_password.length(), hashed_password.c_str(), NULL);
3142 } 3142 }
3143#else 3143#else
3144 std::string filepath = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, 3144 std::string filepath = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS,
@@ -3155,7 +3155,7 @@ void LLStartUp::savePasswordToDisk(const std::string& hashed_password)
3155 3155
3156 LLStringUtil::copy((char*)buffer, hashed_password.c_str(), HASHED_LENGTH+1); 3156 LLStringUtil::copy((char*)buffer, hashed_password.c_str(), HASHED_LENGTH+1);
3157 3157
3158 LLXORCipher cipher(gMACAddress, 6); 3158 LLXORCipher cipher(gMACAddress, 6); // The one and only legitimate use of the users MAC.
3159 cipher.encrypt(buffer, HASHED_LENGTH); 3159 cipher.encrypt(buffer, HASHED_LENGTH);
3160 3160
3161 if (fwrite(buffer, HASHED_LENGTH, 1, fp) != 1) 3161 if (fwrite(buffer, HASHED_LENGTH, 1, fp) != 1)
@@ -3173,7 +3173,7 @@ void LLStartUp::deletePasswordFromDisk()
3173{ 3173{
3174#if LL_DARWIN 3174#if LL_DARWIN
3175 SecKeychainItemRef keychainItem; 3175 SecKeychainItemRef keychainItem;
3176 OSStatus status = SecKeychainFindGenericPassword(NULL, 10, "Imprudence", 0, NULL, NULL, NULL, &keychainItem); 3176 OSStatus status = SecKeychainFindGenericPassword(NULL, 10, "meta-impy", 0, NULL, NULL, NULL, &keychainItem);
3177 if (status == noErr) 3177 if (status == noErr)
3178 { 3178 {
3179 SecKeychainItemDelete(keychainItem); 3179 SecKeychainItemDelete(keychainItem);
@@ -3805,7 +3805,7 @@ void init_start_screen(S32 location_id)
3805 3805
3806 LL_DEBUGS("AppInit") << "Loading startup bitmap..." << LL_ENDL; 3806 LL_DEBUGS("AppInit") << "Loading startup bitmap..." << LL_ENDL;
3807 3807
3808 std::string temp_str = gDirUtilp->getLindenUserDir() + gDirUtilp->getDirDelimiter(); 3808 std::string temp_str = gDirUtilp->getViewerUserDir() + gDirUtilp->getDirDelimiter();
3809 3809
3810 if ((S32)START_LOCATION_ID_LAST == location_id) 3810 if ((S32)START_LOCATION_ID_LAST == location_id)
3811 { 3811 {