]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
document DP_QC_DIGEST
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 1 Oct 2011 13:29:14 +0000 (13:29 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 1 Oct 2011 13:29:14 +0000 (13:29 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11381 d7cf8633-e32d-0410-b094-e92efae38249

dpdefs/dpextensions.qc

index d8f6ebd7126917df45cc9a31450055e3175cfc5a..6ca63e60e321b6339ad3e4da07dd69ed797c06b5 100644 (file)
@@ -664,6 +664,23 @@ float CVAR_TYPEFLAG_ENGINE = 8;
 float CVAR_TYPEFLAG_HASDESCRIPTION = 16;
 float CVAR_TYPEFLAG_READONLY = 32;
 
+//DP_QC_DIGEST
+//idea: motorsep, Spike
+//DarkPlaces implementation: divVerent
+//builtin definitions:
+string(string digest, string data, ...) digest_hex = #638;
+//description:
+//returns a given hex digest of given data
+//digest is always encoded in hexadecimal
+//only the "MD4" digest is always supported!
+//if the given digest is not supported, string_null is returned
+
+//DP_QC_DIGEST_SHA256
+//idea: motorsep, Spike
+//DarkPlaces implementation: divVerent
+//description:
+//"SHA256" is also an allowed digest type
+
 //DP_QC_EDICT_NUM
 //idea: 515
 //DarkPlaces implementation: LordHavoc