diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-08 17:17:08 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-08 17:47:44 +0000 |
commit | c245ec1df1d9e53dd0f4f28239688d40bc3d9d28 (patch) | |
tree | be7cb1da09a371b60ae2d8e2a3060c81fafcb02e /src/libmime/images.h | |
parent | 0b2fdd92b52b4fa37437ad03e7dfb82d796930a9 (diff) | |
download | rspamd-c245ec1df1d9e53dd0f4f28239688d40bc3d9d28.tar.gz rspamd-c245ec1df1d9e53dd0f4f28239688d40bc3d9d28.zip |
[Feature] Implement new algorithm for fuzzy hashes of images
Diffstat (limited to 'src/libmime/images.h')
-rw-r--r-- | src/libmime/images.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libmime/images.h b/src/libmime/images.h index 35833b6af..1b46954e0 100644 --- a/src/libmime/images.h +++ b/src/libmime/images.h @@ -2,6 +2,7 @@ #define IMAGES_H_ #include "config.h" +#include "cryptobox.h" struct html_image; struct rspamd_task; @@ -19,6 +20,7 @@ struct rspamd_image { struct rspamd_mime_part *parent; GByteArray *data; GArray *normalized_data; + guchar fuzzy_sig[rspamd_cryptobox_HASHBYTES]; const gchar *filename; struct html_image *html_image; enum rspamd_image_type type; |