aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qlicenseservice/request.h
diff options
context:
space:
mode:
authorSami Littow <sami.littow@qt.io>2023-04-14 08:54:38 +0300
committerSami Littow <sami.littow@qt.io>2023-04-19 14:36:08 +0300
commit481ae1cb9e52dfe198030e9a4a6e562005f04ca7 (patch)
tree4365c32ac61766da8d539c4eb60a31a4edcd900d /src/libs/qlicenseservice/request.h
parentb8e7c76ea05ab2ab1dbec0efe547ee2ff259e374 (diff)
Fix of a bug where daemon grants non-valid licenseHEADdev
(clitoolhandler.h) - Server response validity was only checked when requesting longterm reservation - Could have exploited with telnet - Server response JSON status field check moved to the beginning of method (HttpClient, Licenser classes) - Pass the REST endpoint to the HTTP client per request, rather than trying to guess it in HTTP client Change-Id: I13d05b33f1032a91d393e7315552f1b9d391142d Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Diffstat (limited to 'src/libs/qlicenseservice/request.h')
-rw-r--r--src/libs/qlicenseservice/request.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/qlicenseservice/request.h b/src/libs/qlicenseservice/request.h
index 7533e4e..1668c92 100644
--- a/src/libs/qlicenseservice/request.h
+++ b/src/libs/qlicenseservice/request.h
@@ -46,6 +46,7 @@ struct RequestInfo {
std::string email;
std::string payload;
std::string serverAddr;
+ std::string accessPoint;
uint64_t startTimestamp = 0; // used by QA-Tools only
uint64_t stopTimestamp = 0; // used by QA-Tools only
std::string runnerType; // "qa_tester" || "qa_exe", used by QA-Tools only