Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
xchatty committed Jun 18, 2011
1 parent 5513911 commit 7325c0d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 0 additions & 2 deletions FILEFORMAT
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ last updated on 14 Jan 2009.
14 Jan 2009 - Initial version (jk)




3. FILE HEADER

The first line of the file is a header, like this:
Expand Down
17 changes: 10 additions & 7 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ moved them all to the SourceForge Feature Request Tracker.
See https://sourceforge.net/tracker/?group_id=67079&atid=516781
for all current TODO items.

$Id$
==

Below is what we've done:
Expand All @@ -14,20 +13,24 @@ Below is what we've done:
4 - add an output mode to the multihash program that exactly matches the output mode of the single hash md5deep, sha1deep, etc. This was done by using md5deep's output functions directly.
5 - add a mode to the multihash program that exactly matches the command-line options, and have that mode be the default when the command name changes. This was done by using md5deep's command line parser.
1 - Continue migration to C++ everywhere.
2 - change state to a C++ class.
3 - Remove the current_file stuff from state to create another C++ class.
4 - Have hash() function take the file being hashed and a place to put it.
1 - Start replacing char * arrays with stl::string. Consider replacing TCHAR strings with vector<TCHAR>.
2 - remove hashtable object for the STL red-black table.

Below is what's planned:

2 - change state to a C++ class.
3 - Remove the current file stuff from state to create another C++ class.
4 - Have hash() function take the file being hashed and a place to put it.
1 - migrate all hash databases to a single
5 - migrate to multi-threaded producer/consumer architecture with the file searching (dig) being the producer and hash() being the consumer. This will require a bunch of locks added.
6 - Add "-j" option to control how many threads; -j0 turns off threading.
7 - a file pattern that specifies what files are hashed.

What's on hold (reason: why change code that currently works?)
1 - Start replacing char * arrays with stl::string. Consider replacing TCHAR strings with vector<TCHAR>.
2 - remove hashtable object for the STL red-black table.
================
Test cases:
- An audit file with one hash different and the other the
- An audit file with the MD5 hash changed to simulate a partial hash.
- An audit file with the length changed to simulate a partial hash.
- An audit file with with 1 million entries.

what is mode_barename?
3 changes: 2 additions & 1 deletion hashdeep/hashlist.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// $Id$

/** audit.cpp
/** hashlist.cpp
* Contains the logic for performing the audit.
* Also has implementation of the hashlist, searching, etc.
* Formerly this code was in audit.cpp and match.cpp.
*/

#include "main.h"
Expand Down

0 comments on commit 7325c0d

Please sign in to comment.