aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api/s_security.h
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2017-01-28 16:24:25 +0000
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-03-13 23:56:05 +0100
commita50d07d39a76053328846d82a32bac61468bb16f (patch)
tree4103d0f4b4f9ede76bba90d49a475b901f3fec64 /src/script/cpp_api/s_security.h
parent92b45b2a189b703fc7cfc8ddbc09a7ad563a13bc (diff)
downloadminetest-a50d07d39a76053328846d82a32bac61468bb16f.tar.gz
minetest-a50d07d39a76053328846d82a32bac61468bb16f.tar.bz2
minetest-a50d07d39a76053328846d82a32bac61468bb16f.zip
[CSM] Improve security for client-sided mods (#5100)
Diffstat (limited to 'src/script/cpp_api/s_security.h')
-rw-r--r--src/script/cpp_api/s_security.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/cpp_api/s_security.h b/src/script/cpp_api/s_security.h
index 6876108e8..f0eef00bb 100644
--- a/src/script/cpp_api/s_security.h
+++ b/src/script/cpp_api/s_security.h
@@ -41,8 +41,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
class ScriptApiSecurity : virtual public ScriptApiBase
{
public:
+ int backupGlobals(lua_State *L);
// Sets up security on the ScriptApi's Lua state
void initializeSecurity();
+ void initializeSecurityClient();
// Checks if the Lua state has been secured
static bool isSecure(lua_State *L);
// Loads a file as Lua code safely (doesn't allow bytecode).