summaryrefslogtreecommitdiff
path: root/indra/newview/llscripteditorws.h
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2025-09-29 15:12:14 -0700
committerRider Linden <rider@lindenlab.com>2025-10-07 09:19:40 -0700
commit26268f714dc799f94a8e7f3adc66e2d4c1260d65 (patch)
tree0c4336f55621e430ad04bee4126f205319b7e02b /indra/newview/llscripteditorws.h
parente750c58a0e73c9363f649e42a47ad430f65c169b (diff)
Implemented simple challenge on handshake, fixed issue with closing a connection.
Diffstat (limited to 'indra/newview/llscripteditorws.h')
-rw-r--r--indra/newview/llscripteditorws.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/indra/newview/llscripteditorws.h b/indra/newview/llscripteditorws.h
index 7112320c57..2c3ae31e8d 100644
--- a/indra/newview/llscripteditorws.h
+++ b/indra/newview/llscripteditorws.h
@@ -71,11 +71,6 @@ public:
void onOpen() override;
void onClose() override;
- /**
- * @brief Send session disconnect message to the external editor
- * @param reason Numeric reason code for the disconnect (default 0 for normal closure)
- * @param message Human-readable disconnect message (default "Goodbye")
- */
void sendDisconnect(S32 reason = 0, const std::string& message = "Goodbye");
private:
@@ -85,6 +80,7 @@ private:
* @param result The response data from the client containing client information
*/
void handleHandshakeResponse(const LLSD& result);
+ std::string generateChallenge();
LLScriptEdContainer* getEditor() const;
std::shared_ptr<LLScriptEditorWSServer> getServer() const;
@@ -99,6 +95,8 @@ private:
std::string mScriptLanguage; ///< Programming language of the script (lsl, luau, etc.)
string_set_t mLanguages; ///< Set of supported scripting languages
string_set_t mFeatures; ///< Active client features (live_sync, compilation, etc.)
+ LLUUID mChallenge;
+ std::string mChallengeFile; ///< Temporary file used for challenge-response verification
static U32 sNextConnectionID;
};