diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-08 18:35:12 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-08 18:35:12 +0000 |
commit | 2c320e44e3f02bc823d8fa273e3382f00d2bea4b (patch) | |
tree | 516ae54c7fc79f63a72ec21ce45f28bc547dbaec /src/libmime/images.h | |
parent | f449e295fd9b11acdff158a091a4086dd34e6837 (diff) | |
download | rspamd-2c320e44e3f02bc823d8fa273e3382f00d2bea4b.tar.gz rspamd-2c320e44e3f02bc823d8fa273e3382f00d2bea4b.zip |
[Rework] Rework images fuzzy hashes algorithm
Diffstat (limited to 'src/libmime/images.h')
-rw-r--r-- | src/libmime/images.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libmime/images.h b/src/libmime/images.h index 1b46954e0..01d0afd22 100644 --- a/src/libmime/images.h +++ b/src/libmime/images.h @@ -2,7 +2,6 @@ #define IMAGES_H_ #include "config.h" -#include "cryptobox.h" struct html_image; struct rspamd_task; @@ -19,13 +18,13 @@ enum rspamd_image_type { 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; guint32 width; guint32 height; + gboolean is_normalized; + guint64 fuzzy_sig[32]; }; /* |