Update HashDb class for SleuthkitJNI API change

This commit is contained in:
Richard Cordovano 2013-11-09 11:41:50 -05:00
parent d1f3be1fba
commit 68c857f587

View File

@ -192,12 +192,7 @@ public class HashDb implements Comparable<HashDb> {
AbstractFile file = (AbstractFile)content;
// TODO: Add support for SHA-1 and SHA-256 hashes.
if (null != file.getMd5Hash()) {
if (type == KnownFilesType.NSRL) {
result = SleuthkitJNI.lookupInNSRLDatabase(file.getMd5Hash());
}
else {
result = SleuthkitJNI.lookupInHashDatabase(file.getMd5Hash(), handle);
}
result = SleuthkitJNI.lookupInHashDatabase(file.getMd5Hash(), handle);
}
}
return result;