[Scummvm-cvs-logs] SF.net SVN: scummvm: [22109] scummvm/trunk/common/md5.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Sun Apr 23 10:20:01 CEST 2006
Revision: 22109
Author: fingolfin
Date: 2006-04-23 10:18:54 -0700 (Sun, 23 Apr 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22109&view=rev
Log Message:
-----------
Small tweak to allow turning off MD5 computation for debugging
Modified Paths:
--------------
scummvm/trunk/common/md5.cpp
Modified: scummvm/trunk/common/md5.cpp
===================================================================
--- scummvm/trunk/common/md5.cpp 2006-04-23 17:02:39 UTC (rev 22108)
+++ scummvm/trunk/common/md5.cpp 2006-04-23 17:18:54 UTC (rev 22109)
@@ -247,6 +247,10 @@
return false;
}
+#ifdef DISABLE_MD5
+ memset(digest, 0, 16);
+#else
+
if (!restricted || sizeof(buf) <= length)
readlen = sizeof(buf);
else
@@ -266,6 +270,7 @@
}
md5_finish(&ctx, digest);
+#endif
return true;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list