diff options
author | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
commit | ce28e056c20bf2723f565bbf464b87781ec248a2 (patch) | |
tree | ef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/newview/lluserauth.cpp | |
parent | Second Life viewer sources 1.19.1.4b (diff) | |
download | meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2 meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz |
Second Life viewer sources 1.20.2
Diffstat (limited to 'linden/indra/newview/lluserauth.cpp')
-rw-r--r-- | linden/indra/newview/lluserauth.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/linden/indra/newview/lluserauth.cpp b/linden/indra/newview/lluserauth.cpp index 44df12c..9e040d2 100644 --- a/linden/indra/newview/lluserauth.cpp +++ b/linden/indra/newview/lluserauth.cpp | |||
@@ -66,8 +66,6 @@ static const char* PLATFORM_STRING = "Sol"; | |||
66 | #error("Unknown platform defined!") | 66 | #error("Unknown platform defined!") |
67 | #endif | 67 | #endif |
68 | 68 | ||
69 | LLUserAuth *gUserAuthp = NULL; | ||
70 | |||
71 | 69 | ||
72 | LLUserAuth::LLUserAuth() : | 70 | LLUserAuth::LLUserAuth() : |
73 | mTransaction(NULL), | 71 | mTransaction(NULL), |
@@ -78,8 +76,15 @@ LLUserAuth::LLUserAuth() : | |||
78 | 76 | ||
79 | LLUserAuth::~LLUserAuth() | 77 | LLUserAuth::~LLUserAuth() |
80 | { | 78 | { |
79 | reset(); | ||
80 | } | ||
81 | |||
82 | void LLUserAuth::reset() | ||
83 | { | ||
81 | delete mTransaction; | 84 | delete mTransaction; |
82 | mTransaction = NULL; | 85 | mTransaction = NULL; |
86 | mResponses.clear(); | ||
87 | mOptions.clear(); | ||
83 | } | 88 | } |
84 | 89 | ||
85 | 90 | ||
@@ -93,7 +98,6 @@ void LLUserAuth::authenticate( | |||
93 | BOOL skip_optional, | 98 | BOOL skip_optional, |
94 | BOOL accept_tos, | 99 | BOOL accept_tos, |
95 | BOOL accept_critical_message, | 100 | BOOL accept_critical_message, |
96 | const LLUUID& viewer_digest, | ||
97 | BOOL last_exec_froze, | 101 | BOOL last_exec_froze, |
98 | const std::vector<const char*>& requested_options, | 102 | const std::vector<const char*>& requested_options, |
99 | const std::string& hashed_mac, | 103 | const std::string& hashed_mac, |
@@ -123,7 +127,7 @@ void LLUserAuth::authenticate( | |||
123 | XMLRPC_VectorAppendString(params, "web_login_key", web_login_key.getString().c_str(), 0); | 127 | XMLRPC_VectorAppendString(params, "web_login_key", web_login_key.getString().c_str(), 0); |
124 | XMLRPC_VectorAppendString(params, "start", start, 0); | 128 | XMLRPC_VectorAppendString(params, "start", start, 0); |
125 | XMLRPC_VectorAppendString(params, "version", gCurrentVersion.c_str(), 0); // Includes channel name | 129 | XMLRPC_VectorAppendString(params, "version", gCurrentVersion.c_str(), 0); // Includes channel name |
126 | XMLRPC_VectorAppendString(params, "channel", gChannelName.c_str(), 0); | 130 | XMLRPC_VectorAppendString(params, "channel", gSavedSettings.getString("VersionChannelName").c_str(), 0); |
127 | XMLRPC_VectorAppendString(params, "platform", PLATFORM_STRING, 0); | 131 | XMLRPC_VectorAppendString(params, "platform", PLATFORM_STRING, 0); |
128 | XMLRPC_VectorAppendString(params, "mac", hashed_mac.c_str(), 0); | 132 | XMLRPC_VectorAppendString(params, "mac", hashed_mac.c_str(), 0); |
129 | // A bit of security through obscurity: id0 is volume_serial | 133 | // A bit of security through obscurity: id0 is volume_serial |
@@ -140,7 +144,6 @@ void LLUserAuth::authenticate( | |||
140 | { | 144 | { |
141 | XMLRPC_VectorAppendString(params, "read_critical", "true", 0); | 145 | XMLRPC_VectorAppendString(params, "read_critical", "true", 0); |
142 | } | 146 | } |
143 | XMLRPC_VectorAppendString(params, "viewer_digest", viewer_digest.asString().c_str(), 0); | ||
144 | XMLRPC_VectorAppendInt(params, "last_exec_event", (int) last_exec_froze); | 147 | XMLRPC_VectorAppendInt(params, "last_exec_event", (int) last_exec_froze); |
145 | 148 | ||
146 | // append optional requests in an array | 149 | // append optional requests in an array |
@@ -178,7 +181,6 @@ void LLUserAuth::authenticate( | |||
178 | BOOL skip_optional, | 181 | BOOL skip_optional, |
179 | BOOL accept_tos, | 182 | BOOL accept_tos, |
180 | BOOL accept_critical_message, | 183 | BOOL accept_critical_message, |
181 | const LLUUID& viewer_digest, | ||
182 | BOOL last_exec_froze, | 184 | BOOL last_exec_froze, |
183 | const std::vector<const char*>& requested_options, | 185 | const std::vector<const char*>& requested_options, |
184 | const std::string& hashed_mac, | 186 | const std::string& hashed_mac, |
@@ -210,7 +212,7 @@ void LLUserAuth::authenticate( | |||
210 | XMLRPC_VectorAppendString(params, "passwd", dpasswd.c_str(), 0); | 212 | XMLRPC_VectorAppendString(params, "passwd", dpasswd.c_str(), 0); |
211 | XMLRPC_VectorAppendString(params, "start", start, 0); | 213 | XMLRPC_VectorAppendString(params, "start", start, 0); |
212 | XMLRPC_VectorAppendString(params, "version", gCurrentVersion.c_str(), 0); // Includes channel name | 214 | XMLRPC_VectorAppendString(params, "version", gCurrentVersion.c_str(), 0); // Includes channel name |
213 | XMLRPC_VectorAppendString(params, "channel", gChannelName.c_str(), 0); | 215 | XMLRPC_VectorAppendString(params, "channel", gSavedSettings.getString("VersionChannelName").c_str(), 0); |
214 | XMLRPC_VectorAppendString(params, "platform", PLATFORM_STRING, 0); | 216 | XMLRPC_VectorAppendString(params, "platform", PLATFORM_STRING, 0); |
215 | XMLRPC_VectorAppendString(params, "mac", hashed_mac.c_str(), 0); | 217 | XMLRPC_VectorAppendString(params, "mac", hashed_mac.c_str(), 0); |
216 | // A bit of security through obscurity: id0 is volume_serial | 218 | // A bit of security through obscurity: id0 is volume_serial |
@@ -227,7 +229,6 @@ void LLUserAuth::authenticate( | |||
227 | { | 229 | { |
228 | XMLRPC_VectorAppendString(params, "read_critical", "true", 0); | 230 | XMLRPC_VectorAppendString(params, "read_critical", "true", 0); |
229 | } | 231 | } |
230 | XMLRPC_VectorAppendString(params, "viewer_digest", viewer_digest.asString().c_str(), 0); | ||
231 | XMLRPC_VectorAppendInt(params, "last_exec_event", (int) last_exec_froze); | 232 | XMLRPC_VectorAppendInt(params, "last_exec_event", (int) last_exec_froze); |
232 | 233 | ||
233 | // append optional requests in an array | 234 | // append optional requests in an array |
@@ -432,3 +433,4 @@ BOOL LLUserAuth::getOptions(const char* name, options_t& options) const | |||
432 | } | 433 | } |
433 | 434 | ||
434 | 435 | ||
436 | |||