Added system to block malware or illegal plugins (bug 5289, r=dvander).

This commit is contained in:
Asher Baker
2012-08-09 01:54:43 +01:00
parent ac6c162a13
commit de27cb8a2f
11 changed files with 730 additions and 2 deletions
+15 -1
View File
@@ -40,7 +40,7 @@
/** SourcePawn Engine API Version */
#define SOURCEPAWN_ENGINE_API_VERSION 4
#define SOURCEPAWN_ENGINE2_API_VERSION 3
#define SOURCEPAWN_ENGINE2_API_VERSION 4
#if !defined SOURCEMOD_BUILD
#define SOURCEMOD_BUILD
@@ -479,6 +479,20 @@ namespace SourcePawn
* @return Memory usage, in bytes.
*/
virtual size_t GetMemUsage() =0;
/**
* @brief Returns the MD5 hash of the plugin's P-Code.
*
* @return 16-byte buffer with MD5 hash of the plugin's P-Code.
*/
virtual unsigned char *GetCodeHash() =0;
/**
* @brief Returns the MD5 hash of the plugin's Data.
*
* @return 16-byte buffer with MD5 hash of the plugin's Data.
*/
virtual unsigned char *GetDataHash() =0;
};
/**