Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
4b50691f
Commit
4b50691f
authored
16 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Added support for hashes subjects.
parent
febca9b9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/smblib/smbdefs.h
+1
-0
1 addition, 0 deletions
src/smblib/smbdefs.h
src/smblib/smbhash.c
+4
-0
4 additions, 0 deletions
src/smblib/smbhash.c
with
5 additions
and
0 deletions
src/smblib/smbdefs.h
+
1
−
0
View file @
4b50691f
...
...
@@ -459,6 +459,7 @@ enum {
SMB_HASH_SOURCE_BODY
,
SMB_HASH_SOURCE_MSG_ID
,
SMB_HASH_SOURCE_FTN_ID
,
SMB_HASH_SOURCE_SUBJECT
/* Add new ones here (max value of 31) */
...
...
This diff is collapsed.
Click to expand it.
src/smblib/smbhash.c
+
4
−
0
View file @
4b50691f
...
...
@@ -264,6 +264,10 @@ hash_t** SMBCALL smb_msghashes(smbmsg_t* msg, const uchar* body, long source_mas
(
hash
=
smb_hashstr
(
msg
->
hdr
.
number
,
t
,
SMB_HASH_SOURCE_BODY
,
flags
,
body
))
!=
NULL
)
hashes
[
h
++
]
=
hash
;
if
(
msg
->
subj
!=
NULL
&&
(
source_mask
&
(
1
<<
SMB_HASH_SOURCE_SUBJECT
))
&&
(
hash
=
smb_hashstr
(
msg
->
hdr
.
number
,
t
,
SMB_HASH_SOURCE_SUBJECT
,
flags
,
msg
->
subj
))
!=
NULL
)
hashes
[
h
++
]
=
hash
;
return
(
hashes
);
}
...
...
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