Skip to content
Snippets Groups Projects
Commit 4b50691f authored by rswindell's avatar rswindell
Browse files

Added support for hashes subjects.

parent febca9b9
No related branches found
No related tags found
No related merge requests found
...@@ -459,6 +459,7 @@ enum { ...@@ -459,6 +459,7 @@ enum {
SMB_HASH_SOURCE_BODY SMB_HASH_SOURCE_BODY
,SMB_HASH_SOURCE_MSG_ID ,SMB_HASH_SOURCE_MSG_ID
,SMB_HASH_SOURCE_FTN_ID ,SMB_HASH_SOURCE_FTN_ID
,SMB_HASH_SOURCE_SUBJECT
/* Add new ones here (max value of 31) */ /* Add new ones here (max value of 31) */
......
...@@ -264,6 +264,10 @@ hash_t** SMBCALL smb_msghashes(smbmsg_t* msg, const uchar* body, long source_mas ...@@ -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) (hash=smb_hashstr(msg->hdr.number, t, SMB_HASH_SOURCE_BODY, flags, body))!=NULL)
hashes[h++]=hash; 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); return(hashes);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment