Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sleuthkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Sleuthkit
Commits
84ec6b68
Commit
84ec6b68
authored
11 years ago
by
Richard Cordovano
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'sam/hashdb_sqlite' into tags_and_hashes
parents
fcf4c20e
3946aa12
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bindings/java/jni/dataModel_SleuthkitJNI.cpp
+17
-1
17 additions, 1 deletion
bindings/java/jni/dataModel_SleuthkitJNI.cpp
with
17 additions
and
1 deletion
bindings/java/jni/dataModel_SleuthkitJNI.cpp
+
17
−
1
View file @
84ec6b68
...
...
@@ -478,7 +478,23 @@ JNIEXPORT jstring JNICALL
return
env
->
NewStringUTF
(
none
);
}
else
{
TSK_HDB_INFO
*
db
=
m_hashDbs
.
at
(
dbHandle
-
1
);
if
((
db
!=
NULL
)
&&
(
db
->
idx_info
!=
NULL
))
{
if
(
db
==
NULL
)
{
setThrowTskCoreError
(
env
,
"Invalid database"
);
return
env
->
NewStringUTF
(
none
);
}
///@todo there isn't a db type for this (would be needed to get legacy index filename)
/*if(db->db_type == TSK_HDB_DBTYPE_NSRL_SHA1_ID) {
db->hash_type = TSK_HDB_HTYPE_SHA1_ID;
}*/
//else {
db
->
hash_type
=
TSK_HDB_HTYPE_MD5_ID
;
//}
// Call setup to populate the idx_info struct so we can get the filename
tsk_hdb_idxsetup
(
db
,
db
->
hash_type
);
if
(
db
->
idx_info
!=
NULL
)
{
snprintf
(
cpath
,
1024
,
"%"
PRIttocTSK
,
db
->
idx_info
->
idx_fname
);
jstring
jname
=
env
->
NewStringUTF
(
cpath
);
return
jname
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment