aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lluserauth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/lluserauth.cpp')
-rw-r--r--linden/indra/newview/lluserauth.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/linden/indra/newview/lluserauth.cpp b/linden/indra/newview/lluserauth.cpp
index 4b554a9..1513175 100644
--- a/linden/indra/newview/lluserauth.cpp
+++ b/linden/indra/newview/lluserauth.cpp
@@ -4,6 +4,7 @@
4 * 4 *
5 * Copyright (c) 2003-2007, Linden Research, Inc. 5 * Copyright (c) 2003-2007, Linden Research, Inc.
6 * 6 *
7 * Second Life Viewer Source Code
7 * The source code in this file ("Source Code") is provided by Linden Lab 8 * The source code in this file ("Source Code") is provided by Linden Lab
8 * to you under the terms of the GNU General Public License, version 2.0 9 * to you under the terms of the GNU General Public License, version 2.0
9 * ("GPL"), unless you have obtained a separate licensing agreement 10 * ("GPL"), unless you have obtained a separate licensing agreement
@@ -34,6 +35,7 @@
34 35
35#include "lldir.h" 36#include "lldir.h"
36#include "llversion.h" 37#include "llversion.h"
38#include "viewer.h"
37#include "llviewerbuild.h" 39#include "llviewerbuild.h"
38#include "llviewercontrol.h" 40#include "llviewercontrol.h"
39#include "llxmlrpctransaction.h" 41#include "llxmlrpctransaction.h"
@@ -118,14 +120,11 @@ void LLUserAuth::authenticate(
118 XMLRPC_VectorAppendString(params, "passwd", dpasswd.c_str(), 0); 120 XMLRPC_VectorAppendString(params, "passwd", dpasswd.c_str(), 0);
119 XMLRPC_VectorAppendString(params, "start", start, 0); 121 XMLRPC_VectorAppendString(params, "start", start, 0);
120 char buffer[MAX_STRING]; /* Flawfinder: ignore */ 122 char buffer[MAX_STRING]; /* Flawfinder: ignore */
121 snprintf(buffer, MAX_STRING, "%d", LL_VERSION_MAJOR); /* Flawfinder: ignore */ 123 // the version is treated as a single string
122 XMLRPC_VectorAppendString(params, "major", buffer, 0); 124 snprintf(buffer, MAX_STRING, "%d.%d.%d.%d",
123 snprintf(buffer, MAX_STRING, "%d", LL_VERSION_MINOR); /* Flawfinder: ignore */ 125 LL_VERSION_MAJOR, LL_VERSION_MINOR, LL_VERSION_PATCH, LL_VIEWER_BUILD); /* Flawfinder: ignore */
124 XMLRPC_VectorAppendString(params, "minor", buffer, 0); 126 XMLRPC_VectorAppendString(params, "version", buffer, 0);
125 snprintf(buffer, MAX_STRING, "%d", LL_VERSION_PATCH); /* Flawfinder: ignore */ 127 XMLRPC_VectorAppendString(params, "channel", gChannelName.c_str(), 0);
126 XMLRPC_VectorAppendString(params, "patch", buffer, 0);
127 snprintf(buffer, MAX_STRING, "%d", LL_VIEWER_BUILD); /* Flawfinder: ignore */
128 XMLRPC_VectorAppendString(params, "build", buffer, 0);
129 XMLRPC_VectorAppendString(params, "platform", PLATFORM_STRING, 0); 128 XMLRPC_VectorAppendString(params, "platform", PLATFORM_STRING, 0);
130 XMLRPC_VectorAppendString(params, "mac", hashed_mac.c_str(), 0); 129 XMLRPC_VectorAppendString(params, "mac", hashed_mac.c_str(), 0);
131 // A bit of security through obscurity: id0 is volume_serial 130 // A bit of security through obscurity: id0 is volume_serial